Commanders
Arduino buttons/bus library
|
#include "Commander.hpp"
Public Member Functions | |
Commander () | |
virtual void | PriorityLoop () |
virtual void | beforeFirstLoop () |
virtual unsigned long | loop () |
Static Public Member Functions | |
static void | CommanderPriorityLoops () |
static void | BeforeFirstLoops () |
static unsigned long | loops () |
This is the base class for all the commanders.
DO NOT INSTANCIATE THIS CLASS !
A commander is a class with a loop function which is able to raise events for a source. Each commander is an item into a linked list of commanders. There is one and only one Commander of a given type during a library session.
|
inline |
Default constructor.
|
inlinevirtual |
This function will be called after sketch Setup(), but before the first call to loop(). It will be called only one time.
Reimplemented in ButtonsCommanderClass.
|
static |
This function will call all BeforeFirstLoop() in sequence.
|
static |
This function will call all PriorityLoop() in sequence.
|
inlinevirtual |
Main loop of this commander.
Reimplemented in DccCommanderClass, CANCommanderClass, ButtonsCommanderClass, and I2CCommanderClass.
|
static |
This function will call all loop() in sequence.
|
inlinevirtual |
Priority loop function. A commander can need more call to its loop than normal. The priority loop functions of all the commanders will be called before any commander loop.
Reimplemented in DccCommanderClass.