|
| enum | Direction { INPUT
, OUTPUT
} |
◆ open()
| int Gpio::open |
( |
unsigned int | pin, |
|
|
Direction | direction, |
|
|
bool | unexport = true ) |
◆ close()
Closes a currently open GPIO
◆ read()
Read the GPIO value.
- Returns
- the GPIO value
◆ set()
◆ clear()
◆ write()
| void Gpio::write |
( |
bool | value | ) |
|
|
inline |
Write an output value
- Parameters
-
◆ enabled()
Check if the GPIO is enabled.
- Returns
- true if enabled, false otherwise
◆ getBankAddress()
| uint32_t Gpio::getBankAddress |
( |
unsigned int | bank | ) |
|
|
static |
A utility function to return the base address of a Gpio bank.
The documentation for this class was generated from the following file: