modm API documentation
modm::platform::GpioOpenDrain< Pin > Class Template Reference

#include <modm/platform/gpio/open_drain.hpp>

Inheritance diagram for modm::platform::GpioOpenDrain< Pin >:

Public Typedefs

using IO = GpioOpenDrain< typename Pin::IO >
 
using Output = IO
 
using Input = IO
 
using Type = typename Pin::Type
 

Public Types

enum  OutputType { PushPull, OpenDrain }
 

Static Public Member Functions

static void setInput ()
 
static void setInput (Gpio::InputType type)
 
static void configure (Gpio::InputType type)
 
static void setOutput ()
 
static void setOutput (OutputType)
 
static void setOutput (bool status)
 
static void set ()
 maps to setInput(InputType::Floating) or setInput(InputType::PullUp)
 
static void reset ()
 maps to setOutput(::modm::Gpio::Low)
 
static void set (bool status)
 
static bool isSet ()
 
static modm::Gpio::Direction getDirection ()
 

Static Public Attributes

static constexpr modm::Gpio::Direction direction = modm::Gpio::Direction::Out
 

Detailed Description

template<class Pin>
class modm::platform::GpioOpenDrain< Pin >

Gpio OpenDrain template, which remaps the behavior of the Gpio pin to simulate an open-drain output (with internal pullups if needed).

See also
BitBangI2cMaster

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