LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
DummyPinWithReadHigh Struct Reference

#include <DummyGPIO.h>

Inheritance diagram for DummyPinWithReadHigh:
Collaboration diagram for DummyPinWithReadHigh:

Static Public Member Functions

static bool get ()
 
static bool is_output ()
 
static constexpr const Gpio * instance ()
 
static void hw_init ()
 Initializes the hardware to the required settings.
 
static void hw_set_to_safe ()
 
static void set (bool value)
 Sets the output pin to a given level.
 
static void toggle ()
 Toggles the output pin level.
 
static void set_hw ()
 Sets to "hardware" function.
 
static void set_output ()
 Sets to "GPIO out" function.
 
static void set_input ()
 Sets to "GPIO in" function.
 

Detailed Description

GPIO Pin definition structure with no actual pin behind it. All writes to this pin will be silently ignored. Reads will always return false.

Definition at line 105 of file DummyGPIO.h.

Member Function Documentation

◆ get()

static bool DummyPinWithReadHigh::get ( )
inlinestatic
Returns
the input pin level.

Definition at line 108 of file DummyGPIO.h.

◆ hw_set_to_safe()

static void DummyPin::hw_set_to_safe ( )
inlinestaticinherited

Resets the hardware to a mode that is safe when there is no software running. This uaully means turning off outputs that consume power.

Definition at line 50 of file DummyGPIO.h.

◆ instance()

static constexpr const Gpio * DummyPinWithReadHigh::instance ( )
inlinestaticconstexpr
Returns
the static Gpio instance.

Definition at line 120 of file DummyGPIO.h.

◆ is_output()

static bool DummyPinWithReadHigh::is_output ( )
inlinestatic
Returns
true if this is an output pin, false if an input pin.

Definition at line 114 of file DummyGPIO.h.


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