|
| enum | InputType { InputType::Floating = 0x0,
InputType::PullUp = 0x1,
InputType::PullDown = 0x2
} |
| |
| enum | OutputSpeed {
Low = 0,
Medium = 0x1,
High = 0x3,
MHz2 = Low,
MHz10 = Medium,
MHz50 = High
} |
| |
| enum | OutputType { OutputType::PushPull = 0x0,
OutputType::OpenDrain = 0x1
} |
| |
| enum | Port {
A = 0,
B = 1,
C = 2,
D = 3,
F = 5
} |
| | The Port a Gpio Pin is connected to.
|
| |
|
|
static void | setOutput () |
| |
|
static void | setOutput (bool status) |
| |
|
static void | setOutput (OutputType type, OutputSpeed speed=OutputSpeed::MHz50) |
| |
|
static void | configure (OutputType type, OutputSpeed speed=OutputSpeed::MHz50) |
| |
|
static void | setInput () |
| |
|
static void | setInput (InputType type) |
| |
|
static void | setAnalogInput () |
| |
|
static void | configure (InputType type) |
| |
|
static void | set () |
| |
|
static void | set (bool status) |
| |
|
static void | reset () |
| |
|
static void | toggle () |
| |
|
static void | lock () |
| |
|
static void | disconnect () |
| |
|
|
static constexpr uint8_t | width = sizeof...(Gpios) |
| |
|
static constexpr uint8_t | number_of_ports = numberOfPorts() |
| |
|
|
static constexpr uint16_t | inverted (uint8_t id) |
| |
|
static constexpr uint16_t | mask (uint8_t id) |
| |
|
static constexpr uint32_t | mask2 (uint8_t id, uint8_t value=0b11) |
| |
|
static constexpr uint8_t | numberOfPorts () |
| |
|
| static constexpr uint16_t | inverteds [5] |
| |
| static constexpr uint16_t | masks [5] |
| |
| Enum Values | Documentation |
|---|
| Floating | floating on input
|
| PullUp | pull-up on input
|
| PullDown | pull-down on input
|
| Enum Values | Documentation |
|---|
| PushPull | push-pull on output
|
| OpenDrain | open-drain on output
|
template<class... Gpios>
| constexpr uint16_t modm::platform::GpioSet< Gpios >::inverteds[5] |
|
staticprotectedconstexpr |
Initial value:{
(((Gpios::port == Port::A and Gpios::isInverted) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::B and Gpios::isInverted) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::C and Gpios::isInverted) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::D and Gpios::isInverted) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::F and Gpios::isInverted) ? Gpios::mask : 0) | ...),
}
template<class... Gpios>
| constexpr uint16_t modm::platform::GpioSet< Gpios >::masks[5] |
|
staticprotectedconstexpr |
Initial value:{
(((Gpios::port == Port::A) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::B) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::C) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::D) ? Gpios::mask : 0) | ...),
(((Gpios::port == Port::F) ? Gpios::mask : 0) | ...),
}
The documentation for this class was generated from the following file: