|
modm API documentation
|
Public Types | |
| enum | InputType { InputType::Floating = 0x0, InputType::PullUp = 0x1, InputType::PullDown = 0x2 } |
| enum | OutputSpeed { Low = 0, Medium = 0x1, High = 0x2, OutputSpeed::VeryHigh = 0x3, MHz2 = Low, MHz25 = Medium, MHz50 = High, MHz100 = VeryHigh } |
| enum | OutputType { OutputType::PushPull = 0x0, OutputType::OpenDrain = 0x1 } |
| enum | Port { A = 0, B = 1, C = 2, D = 3, E = 4, F = 5, G = 6, H = 7 } |
| The Port a Gpio Pin is connected to. | |
Static Public Member Functions | |
| 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 Public Attributes | |
| static constexpr uint8_t | width = sizeof...(Gpios) |
| static constexpr uint8_t | number_of_ports = numberOfPorts() |
Static Protected Attributes | |
| static constexpr uint16_t | inverteds [8] |
| static constexpr uint16_t | masks [8] |
|
inheritedstrong |
|
inheritedstrong |
|
inheritedstrong |
|
staticprotectedconstexpr |
|
staticprotectedconstexpr |