modm API documentation
modm::GpioInput Class Reference

#include <modm/architecture/interface/gpio.hpp>

Inheritance diagram for modm::GpioInput:
modm::Gpio modm::GpioIO modm::GpioExpanderPin< GpioExpander, expander, pin > modm::platform::GpioStatic< detail::DataUnused >

Public Types

enum  Direction { In = 0, Out = 1, InOut = 2, Special = 3 }
 Declares the direction of a GPIO.
 

Static Public Member Functions

static void setInput ()
 configure pin as input
 
static bool read ()
 read input
 

Static Public Attributes

static constexpr Direction direction = Direction::In
 Declares the Pin direction.
 
static constexpr bool High = true
 
static constexpr bool Low = false
 

Detailed Description

Input interface of an I/O pin.

The pin is not automatically set as an input after startup, so remember to call setInput() after startup!

Member Data Documentation

constexpr bool modm::Gpio::Low = false
inheritedstaticconstexpr

These constants refer to the logical state of the GPIO. The physical state is determined by the configuration and external connection.


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