|
VLCB
|
Main object in VLCB. Coordinates transport, ui, configuration and services. More...
#include <Controller.h>
Public Member Functions | |
| Controller (Configuration *conf) | |
| Controller (Configuration *conf, std::initializer_list< Service * > services) | |
| void | setServices (std::initializer_list< Service * > services) |
| Configuration * | getModuleConfig () const |
| void | setName (const char *mname) |
| const ArrayHolder< Service * > & | getServices () |
| void | updateParamFlags () |
| assign the module parameter set | |
| void | setParamFlag (VlcbParamFlags flag, bool set) |
| Parameters & | getParams () |
| unsigned char | getParam (VlcbParams param) const |
| bool | sendMessage (const VlcbMessage *msg) |
| void | begin () |
| Initialise VLCB. | |
| bool | sendMessageWithNN (VlcbOpCodes opc) |
| bool | sendMessageWithNN (VlcbOpCodes opc, byte b1) |
| bool | sendMessageWithNN (VlcbOpCodes opc, byte b1, byte b2) |
| bool | sendMessageWithNN (VlcbOpCodes opc, byte b1, byte b2, byte b3) |
| bool | sendMessageWithNN (VlcbOpCodes opc, byte b1, byte b2, byte b3, byte b4) |
| bool | sendMessageWithNN (VlcbOpCodes opc, byte b1, byte b2, byte b3, byte b4, byte b5) |
| bool | sendWRACK () |
| send a WRACK (write acknowledge) message | |
| bool | sendCMDERR (byte cerrno) |
| send a CMDERR (command error) message | |
| void | sendGRSP (VlcbOpCodes opCode, byte serviceType, byte errCode) |
| void | sendDGN (byte serviceIndex, byte diagCode, unsigned int counter) |
| byte | getModuleCANID () const |
| void | process () |
| main Controller message processing procedure | |
| void | indicateMode (VlcbModeParams mode) |
| set the Controller LEDs to indicate the current mode | |
| void | indicateActivity () |
| void | putAction (const Action &action) |
| void | putAction (ACTION action) |
| bool | pendingAction () |
| bool | pendingTasks () |
| void | messageActedOn () |
| unsigned int | getMessagesActedOn () |
| const CircularBuffer< Action, ACTION_QUEUE_SIZE > & | getActionQueue () const |
| void | addTimedResponseTask (TimedResponse::Task *task) |
Main object in VLCB. Coordinates transport, ui, configuration and services.
| VLCB::Controller::Controller | ( | Configuration * | conf | ) |
| VLCB::Controller::Controller | ( | Configuration * | conf, |
| std::initializer_list< Service * > | services ) |
construct a Controller object with a Configuration object that the user provides. note that this Configuration object must have a lifetime longer than the Controller object.
| void VLCB::Controller::setServices | ( | std::initializer_list< Service * > | services | ) |
|
inline |
|
inline |
|
inline |
| void VLCB::Controller::updateParamFlags | ( | ) |
assign the module parameter set
| void VLCB::Controller::setParamFlag | ( | VlcbParamFlags | flag, |
| bool | set ) |
|
inline |
|
inline |
| bool VLCB::Controller::sendMessage | ( | const VlcbMessage * | msg | ) |
| void VLCB::Controller::begin | ( | ) |
Initialise VLCB.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool VLCB::Controller::sendWRACK | ( | ) |
send a WRACK (write acknowledge) message
| bool VLCB::Controller::sendCMDERR | ( | byte | cerrno | ) |
send a CMDERR (command error) message
| void VLCB::Controller::sendGRSP | ( | VlcbOpCodes | opCode, |
| byte | serviceType, | ||
| byte | errCode ) |
| void VLCB::Controller::sendDGN | ( | byte | serviceIndex, |
| byte | diagCode, | ||
| unsigned int | counter ) |
|
inline |
| void VLCB::Controller::process | ( | ) |
main Controller message processing procedure
| void VLCB::Controller::indicateMode | ( | VlcbModeParams | mode | ) |
set the Controller LEDs to indicate the current mode
| void VLCB::Controller::indicateActivity | ( | ) |
| void VLCB::Controller::putAction | ( | const Action & | action | ) |
| void VLCB::Controller::putAction | ( | ACTION | action | ) |
| bool VLCB::Controller::pendingAction | ( | ) |
| bool VLCB::Controller::pendingTasks | ( | ) |
| void VLCB::Controller::messageActedOn | ( | ) |
|
inline |
|
inline |
| void VLCB::Controller::addTimedResponseTask | ( | TimedResponse::Task * | task | ) |