modm API documentation
|
Public Types | |
enum | InputTrigger : uint8_t { InputTrigger::LowLevel = 0b00, InputTrigger::BothEdges = 0b01, InputTrigger::FallingEdge = 0b10, InputTrigger::RisingEdge = 0b11 } |
Each External Interrupt can be configured to trigger on these conditions. More... | |
enum | InputType : uint8_t { InputType::Floating, InputType::PullUp } |
Each Input Pin can be configured in one of these states. More... | |
enum | OutputType : uint8_t { OutputType::PushPull } |
enum | Port { B, C, D, E, F } |
Available ports on this device. | |
enum | Signal { BitBang, Ain0, Clk0, Cts, Hwb, Icp, In0, In1, In10, In11, In12, In13, In4, In5, In6, In8, In9, Miso, Mosi, Oca, Ocb, Occ, Ocd, Pdi, Pdo, Rts, Rxd, Sck, Scl, Sda, Ss, T, Tck, Tdo, Tms, Txd, Xck, _oca, _ocb, _ocd } |
Static Public Member Functions | |
static void | setOutput () |
static void | setOutput (bool status) |
static void | setOutput (OutputType) |
static void | configure (OutputType) |
static void | setInput () |
static void | setInput (InputType type) |
static void | configure (InputType type) |
static void | set () |
static void | set (bool status) |
static void | reset () |
static void | toggle () |
Static Public Attributes | |
static constexpr uint8_t | width = sizeof...(Gpios) |
static constexpr uint8_t | number_of_ports = numberOfPorts() |
Static Protected Member Functions | |
static constexpr uint8_t | inverted (uint8_t id) |
static constexpr uint8_t | mask (uint8_t id) |
static constexpr uint8_t | numberOfPorts () |
Static Protected Attributes | |
static constexpr uint8_t | inverteds [5] |
static constexpr uint8_t | masks [5] |
|
inheritedstrong |
|
inheritedstrong |
|
inheritedstrong |
|
staticprotectedconstexpr |
|
staticprotectedconstexpr |