semf
|
Interface for all classes receiving ticks like DigitalInPolling
or SoftwareTimer
.
More...
#include <tickreceiver.h>
Public Member Functions | |
virtual | ~TickReceiver ()=default |
virtual void | tick ()=0 |
Is called by every tick. Is called periodically e.g. by a Timer object. More... | |
Public Member Functions inherited from semf::LinkedList< T >::Node | |
virtual | ~Node ()=default |
T * | next () const |
Returns a pointer to the next element in a list. More... | |
void | setNext (T *next) |
Sets a pointer to the next element in a list. More... | |
T * | previous () const |
Returns a pointer to the previous element in a list. More... | |
void | setPrevious (T *previous) |
Sets a pointer to the previous element in a list. More... | |
bool | isInAList () |
Returns if a node is part of a LinkedList . More... | |
Interface for all classes receiving ticks like DigitalInPolling
or SoftwareTimer
.
The tick function must be called e.g. in Timer
or TimeBase
class periodically. One period is one tick.
Because of TickReceiver
is a LinkedList::Node
every TickReceiver
object can be handled in a LinkedList
like it is done in TimerBase
.
Definition at line 28 of file tickreceiver.h.
|
virtualdefault |
|
pure virtual |
Is called by every tick. Is called periodically e.g. by a Timer
object.
Implemented in semf::DebouncedDigitalInPolling, semf::DigitalInPolling, and semf::SoftwareTimer.