Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
Loading...
Searching...
No Matches
MockGpio Class Reference
Inheritance diagram for MockGpio:
Collaboration diagram for MockGpio:

Public Member Functions

void setLevel (bool level) override
 Set GPIO output level.
 
bool getLevel () const override
 Get current GPIO output level.
 
const std::vector< bool > & getLevelHistory () const
 
void clearHistory ()
 
- Public Member Functions inherited from IGpioOutput
virtual ~IGpioOutput ()=default
 
virtual ~IGpioOutput ()=default
 

Member Function Documentation

◆ clearHistory()

void MockGpio::clearHistory ( )
inline

◆ getLevel()

bool MockGpio::getLevel ( ) const
inlineoverridevirtual

Get current GPIO output level.

Returns
true if HIGH, false if LOW

Implements IGpioOutput.

◆ getLevelHistory()

const std::vector< bool > & MockGpio::getLevelHistory ( ) const
inline

◆ setLevel()

void MockGpio::setLevel ( bool  high)
inlineoverridevirtual

Set GPIO output level.

Parameters
hightrue for HIGH, false for LOW

Implements IGpioOutput.


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