Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
InvertedGpio< PIN > Class Template Reference

Creates a hardware GPIO adaptor that inverts the pin state. More...

#include <GpioWrapper.hxx>

Static Public Member Functions

static void hw_init ()
 
static void hw_set_to_safe ()
 
static void set (bool value)
 
static bool get ()
 
static void toggle ()
 
static bool is_output ()
 
static void set_output (bool o)
 
static constexpr const Gpioinstance ()
 

Detailed Description

template<class PIN>
class InvertedGpio< PIN >

Creates a hardware GPIO adaptor that inverts the pin state.

Definition at line 113 of file GpioWrapper.hxx.

Member Function Documentation

◆ get()

template<class PIN >
static bool InvertedGpio< PIN >::get ( )
inlinestatic

Definition at line 119 of file GpioWrapper.hxx.

◆ hw_init()

template<class PIN >
static void InvertedGpio< PIN >::hw_init ( )
inlinestatic

Definition at line 115 of file GpioWrapper.hxx.

◆ hw_set_to_safe()

template<class PIN >
static void InvertedGpio< PIN >::hw_set_to_safe ( )
inlinestatic

Definition at line 116 of file GpioWrapper.hxx.

◆ instance()

template<class PIN >
static constexpr const Gpio * InvertedGpio< PIN >::instance ( )
inlinestaticconstexpr
Returns
the static Gpio object instance controlling this pin.

Definition at line 126 of file GpioWrapper.hxx.

◆ is_output()

template<class PIN >
static bool InvertedGpio< PIN >::is_output ( )
inlinestatic

Definition at line 122 of file GpioWrapper.hxx.

◆ set()

template<class PIN >
static void InvertedGpio< PIN >::set ( bool  value)
inlinestatic

Definition at line 118 of file GpioWrapper.hxx.

◆ set_output()

template<class PIN >
static void InvertedGpio< PIN >::set_output ( bool  o)
inlinestatic

Definition at line 123 of file GpioWrapper.hxx.

◆ toggle()

template<class PIN >
static void InvertedGpio< PIN >::toggle ( )
inlinestatic

Definition at line 121 of file GpioWrapper.hxx.


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