29 m_inverted = inverted;
bool isInverted() const override
Returns of the pin level logic is inverted.
Gpio & gpio() const
Returns the pointer to the GPIO to check the status from.
void setInverted(bool inverted) override
Configures the inversion of the input reading.
DigitalIn(Gpio &gpio, bool inverted=false)
Constructor.
State state() const override
Returns the level status of the hardware pin.
Interface class for using a GPIO pin of the microcontroller.
virtual bool state() const =0
Returns the current state of the pin.