|
modm API documentation
|
Public Typedefs | |
| using | Direction = modm::Gpio::Direction |
| using | Type = GpioStatic< GpioData > |
| using | Output = Type |
| using | Input = Type |
| using | IO = Type |
| using | Data = GpioData |
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 } |
| Available ports on this device. | |
| enum | Signal { BitBang, Acmp0, Acmp1, Acmp2, Acmp3, Acmpn0, Acmpn1, Acmpn2, Acmpn3, D2a, Icp1a, Icp1b, In0, In1, In10, In2, In3, In4, In5, In6, In7, In8, In9, Miso, Mosi, Oc0a, Oc0b, Oc1a, Oc1b, Pscin0, Pscin1, Pscin2, Pscout0a, Pscout0b, Pscout1a, Pscout1b, Pscout2a, Pscout2b, Rxlin, Sck, Ss, T0, T1, Txlin } |
Static Public Member Functions | |
| static void | setOutput () |
| static void | setOutput (bool status) |
| static void | setOutput (OutputType type) |
| static void | configure (OutputType type) |
| static void | set () |
| static void | set (bool status) |
| static void | reset () |
| static bool | isSet () |
| static void | toggle () |
| static void | setInput () |
| static void | setInput (InputType type) |
| static void | configure (InputType type) |
| static bool | read () |
| static Direction | getDirection () |
| static void | disconnect () |
Static Public Attributes | |
| static constexpr Direction | direction = Direction::InOut |
| static constexpr bool | isInverted = false |
Static Protected Member Functions | |
| static constexpr volatile uint8_t * | gport () |
| static constexpr volatile uint8_t * | gpin () |
| static constexpr volatile uint8_t * | gddr () |
Static Protected Attributes | |
| static constexpr uint8_t | mask = (1 << pin) |
Friends | |
| template<class... Gpios> | |
| class | GpioSet |
|
inheritedstrong |
|
inheritedstrong |
|
inheritedstrong |