10#ifndef SEMF_INPUT_DIGITALIN_DIGITALIN_H_
11#define SEMF_INPUT_DIGITALIN_DIGITALIN_H_
Base class for having access to the level state of a digital input.
DigitalIn(const DigitalIn &other)=delete
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.
Interfaces for having access to the level state of a digital input.
virtual ~DigitalIn()=default