modm API documentation
modm::platform::GpioStatic< GpioData > Class Template Reference
Inheritance diagram for modm::platform::GpioStatic< GpioData >:
modm::platform::Gpio

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  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
}
 The Port a Gpio Pin is connected to.
 

Static Public Member Functions

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 Public Attributes

static constexpr Direction direction = Direction::InOut
 
static constexpr bool isInverted = false
 

Friends

template<class... Gpios>
class GpioSet
 

Member Enumeration Documentation

enum modm::platform::Gpio::InputType
inheritedstrong
Enum ValuesDocumentation
Floating 

floating on input

PullUp 

pull-up on input

PullDown 

pull-down on input

enum modm::platform::Gpio::OutputSpeed
inheritedstrong
Enum ValuesDocumentation
VeryHigh 

30 pF (80 MHz Output max speed on 15 pF)

enum modm::platform::Gpio::OutputType
inheritedstrong
Enum ValuesDocumentation
PushPull 

push-pull on output

OpenDrain 

open-drain on output


The documentation for this class was generated from the following file: