modm API documentation
modm::platform::GpioSet< Gpios > Class Template Reference
Inheritance diagram for modm::platform::GpioSet< Gpios >:
modm::platform::Gpio

Public Types

enum  DriveStrength { mA_2 = 0, mA_4 = 1, mA_8 = 2, mA_12 = 3 }
 
enum  InputTrigger : uint32_t {
  None = 0x00u, LowLevel = 0x01u, HighLevel = 0x02u, BothLevels = LowLevel | HighLevel,
  FallingEdge = 0x04u, RisingEdge = 0x08u, BothEdges = FallingEdge | RisingEdge, All = BothLevels | BothEdges
}
 
enum  InputType { InputType::Floating = 0x0, InputType::PullUp = 0x1, InputType::PullDown = 0x2 }
 
enum  OutputSpeed { Slow = 0, Fast = 1 }
 
enum  OutputType { PushPull }
 
enum  Port { Bank0, Qspi }
 
enum  SlewRate : uint8_t { Slow = 0, Fast = 1 }
 

Public Member Functions

 MODM_FLAGS32 (InputTrigger)
 

Static Public Member Functions

static void setOutput ()
 
static void setOutput (bool status)
 
static void setOutput (OutputType type, OutputSpeed speed=OutputSpeed::Slow)
 
static void configure (OutputType, OutputSpeed speed=OutputSpeed::Slow)
 
static void setInput ()
 
static void setInput (InputType type)
 
static void configure (InputType type)
 
static void setSlewRate (SlewRate rate)
 
static void set ()
 
static void set (bool status)
 
static void reset ()
 
static void toggle ()
 
static void disconnect ()
 

Static Public Attributes

static constexpr uint8_t width = sizeof...(Gpios)
 
static constexpr uint8_t number_of_ports = numberOfPorts()
 

Static Protected Member Functions

static constexpr uint32_t inverted (uint8_t id)
 
static constexpr uint32_t mask (uint8_t id)
 

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


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