Definition GpioMock.hpp:10
void mockSetInputPhysical(bool physicalValue)
Use this to pretend to be an external signal changing the state of an input GPIO. This sets the physi...
Definition GpioMock.cpp:72
void configurePinBasedOnSettings() override
Configure the pin based on the current settings.
Definition GpioMock.cpp:55
void setLogicMode(LogicMode logicMode) override
Set the logic mode of the GPIO.
Definition GpioMock.cpp:47
void callInterruptHandlerIfNeeded(bool oldLogicalValue, bool oldPhysicalValue, bool newLogicalValue, bool newPhysicalValue)
Helper function to determine and call the interrupt handler if needed. Calculates if it needs to be c...
Definition GpioMock.cpp:92
void mockSetInput(bool logicalValue)
Use this to pretend to be an external signal changing the state of an input GPIO. This sets the logic...
Definition GpioMock.cpp:59
bool getPhysical() const override
Get the physical value of the GPIO.
Definition GpioMock.cpp:30
~GpioMock()
Destroy the GPIO. Does nothing.
Definition GpioMock.cpp:15
void configureInterrupt(InterruptMode interruptMode, std::function< void()> callback) override
Configure an interrupt on the GPIO.
Definition GpioMock.cpp:41
void setPhysical(bool value) override
Set the physical value of the GPIO.
Definition GpioMock.cpp:17
bool m_logicalValue
Definition GpioMock.hpp:123
LogicMode
Definition IGpio.hpp:20
virtual bool get() const
Definition IGpio.cpp:31
InterruptMode
Definition IGpio.hpp:34
Direction
Definition IGpio.hpp:10