|
| constexpr | MCP23017Gpio (MCP23017 *const parent, unsigned port, unsigned pin) |
| |
| void | set () const override |
| | Sets the GPIO output pin to high.
|
| |
| void | clr () const override |
| | Clears the GPIO output pin to low.
|
| |
| void | write (Value new_state) const override |
| | Writes a GPIO output pin (set or clear to a specific state).
|
| |
| Value | read () const override |
| | Retrieves the current Value of a GPIO input pin.
|
| |
| void | set_direction (Direction dir) const override |
| | Sets the GPIO direction.
|
| |
| Direction | direction () const override |
| | Gets the GPIO direction.
|
| |
| constexpr | Gpio () |
| | Constructor.
|
| |
| void | write (bool new_state) const |
| | Writes a GPIO output pin (set or clear to a specific state).
|
| |
| bool | is_set () const |
| | Tests the GPIO input pin to see if it is set.
|
| |
| bool | is_clr () const |
| | Tests the GPIO input pin to see if it is clear.
|
| |
|
| enum | Value : bool { CLR = false
, SET = true
, VLOW = CLR
, VHIGH = SET
} |
| | Defines the options for GPIO level. More...
|
| |
| enum class | Direction { DINPUT
, DOUTPUT
} |
| | Defines the options for GPIO direction. More...
|
| |
Definition at line 269 of file MCP23017Gpio.hxx.
◆ MCP23017Gpio()
| constexpr MCP23017Gpio::MCP23017Gpio |
( |
MCP23017 *const |
parent, |
|
|
unsigned |
port, |
|
|
unsigned |
pin |
|
) |
| |
|
inlineconstexpr |
◆ clr()
| void MCP23017Gpio::clr |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ direction()
◆ read()
| Value MCP23017Gpio::read |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieves the current Value of a GPIO input pin.
- Returns
- SET if currently high, CLR if currently low.
Implements Gpio.
Definition at line 307 of file MCP23017Gpio.hxx.
◆ set()
| void MCP23017Gpio::set |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ set_direction()
| void MCP23017Gpio::set_direction |
( |
Direction |
dir | ) |
const |
|
inlineoverridevirtual |
◆ write()
| void MCP23017Gpio::write |
( |
Value |
new_state | ) |
const |
|
inlineoverridevirtual |
Writes a GPIO output pin (set or clear to a specific state).
- Parameters
-
| new_state | the desired output state. See Value. |
Implements Gpio.
Definition at line 289 of file MCP23017Gpio.hxx.
◆ parent_
◆ pinBit_
| const uint8_t MCP23017Gpio::pinBit_ |
|
private |
◆ port_
| const uint8_t MCP23017Gpio::port_ |
|
private |
The documentation for this class was generated from the following file: