|
VLCB
|
Base class for teaching services. More...
#include <AbstractEventTeachingService.h>
Public Member Functions | |
| void | setEventValidator (byte(*func)(int nn, int en, byte evNum, byte evVal)) |
| virtual Data | getServiceData () override |
| Return Data bytes specific for the implementing service. The meaning of each data byte is defined in the service specification. | |
| void | enableLearn () |
| void | inhibitLearn () |
| Public Member Functions inherited from VLCB::Service | |
| void | setController (Controller *ctrl) |
| Set a pointer to the controller object for use in implementing class. | |
| virtual void | begin () |
| This optional method is called at the beginning of the Arduino sketch. Define this method for the service to do any setup required at the beginning. | |
| virtual VlcbServiceTypes | getServiceID () const =0 |
| Return a unique ID for this service. | |
| virtual byte | getServiceVersionID () const =0 |
| Return the version of the service specification implemented by this service. | |
| virtual void | process () |
| This method that be called regularly from the VLCB core to let the service perform regular tasks. | |
| virtual void | processAction (const Action &action) |
| Called when there is an action available. | |
| virtual void | reportDiagnostics (byte serviceIndex, byte diagnosticsCode) |
| Report a given diagnostic value. | |
| virtual int | getDiagnosticCount () |
| report how many diagnostics this service supports. | |
Protected Member Functions | |
| void | handleMessage (const VlcbMessage *msg) |
| Protected Member Functions inherited from VLCB::Service | |
| bool | isThisNodeNumber (unsigned int nodeNumber) |
| Helper function to decide if a given node number is the same as that assigned to this node. | |
Protected Attributes | |
| bool | bLearn = false |
| byte(* | validatorFunc )(int nn, int en, byte evNum, byte evVal) = nullptr |
| unsigned int | diagEventsTaught = 0 |
| Protected Attributes inherited from VLCB::Service | |
| Controller * | controller |
| Pointer to the Controller object that can be used by implementing classes. | |
Base class for teaching services.
Provides common implementation for all teaching services.
|
inline |
Register a callback handler that validates that events taught to this module comply with rules for this module.
|
overridevirtual |
Return Data bytes specific for the implementing service. The meaning of each data byte is defined in the service specification.
Reimplemented from VLCB::Service.
| void VLCB::AbstractEventTeachingService::enableLearn | ( | ) |
| void VLCB::AbstractEventTeachingService::inhibitLearn | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |