#include <modm/architecture/interface/gpio.hpp>
|
enum | Direction { In = 0,
Out = 1,
InOut = 2,
Special = 3
} |
| Declares the direction of a GPIO.
|
|
|
static void | setInput () |
| configure pin as input
|
|
static bool | read () |
| read input
|
|
|
static constexpr Direction | direction = Direction::In |
| Declares the Pin direction.
|
|
static constexpr bool | High = true |
|
static constexpr bool | Low = false |
|
Input interface of an I/O pin.
The pin is not automatically set as an input after startup, so remember to call setInput()
after startup!
constexpr bool modm::Gpio::Low = false |
|
inheritedstaticconstexpr |
These constants refer to the logical state of the GPIO. The physical state is determined by the configuration and external connection.
The documentation for this class was generated from the following file: