|
using | Direction = ::modm::Gpio::Direction |
|
using | Type = GpioStatic< GpioData > |
|
using | Output = Type |
|
using | Input = Type |
|
using | IO = Type |
|
using | Data = GpioData |
|
|
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,
F = 5
} |
| The Port a Gpio Pin is connected to.
|
|
|
static void | setAlternateFunction (uint8_t af) |
|
static void | setAnalogInput () |
| Enable Analog Mode which is needed to use this pin as an ADC input.
|
|
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 | set () |
|
static void | set (bool status) |
|
static void | reset () |
|
static bool | isSet () |
|
static bool | toggle () |
|
static void | setInput () |
|
static void | setInput (InputType type) |
|
static void | configure (InputType type) |
|
static bool | read () |
|
static Direction | getDirection () |
|
static void | lock () |
|
static void | disconnect () |
|
|
static constexpr Direction | direction = Direction::InOut |
|
static constexpr bool | isInverted = false |
|
|
template<class... Gpios> |
class | GpioSet |
|
Enum Values | Documentation |
---|
Floating | floating on input
|
PullUp | pull-up on input
|
PullDown | pull-down on input
|
Enum Values | Documentation |
---|
VeryHigh | 30 pF (80 MHz Output max speed on 15 pF)
|
Enum Values | Documentation |
---|
PushPull | push-pull on output
|
OpenDrain | open-drain on output
|
The documentation for this class was generated from the following file: