10#ifndef SEMF_INPUT_DIGITALIN_DIGITALINPOLLING_H_
11#define SEMF_INPUT_DIGITALIN_DIGITALINPOLLING_H_
Base class for having access to the level state of a digital input.
Gpio & gpio() const
Returns the pointer to the GPIO to check the status from.
Class for reading a digital input in polling mode.
State state() const override
Returns the level status of the hardware pin.
DigitalInPolling(const DigitalInPolling &other)=delete
void setState(State state)
Sets the hardware pin status internally.
DigitalInPolling(Gpio &gpio, bool inverted=false)
Constructor.
virtual ~DigitalInPolling()=default
Interface class for using a GPIO pin of the microcontroller.
Interface for all classes receiving ticks like DigitalInPolling or SoftwareTimer.
A TimeBase is the bridge between e.g. a hardware timer (interrupt service routine) and TickReceiver o...