|
VLCB
|
#include <Controller.h>
Public Member Functions | |
| VlcbMessage ()=default | |
| VlcbMessage (uint8_t len, uint8_t data[]) | |
| Construct a message from existing data. | |
| VlcbMessage (VlcbOpCodes opc) | |
| Construct a message and populate the message OP-code. | |
| VlcbMessage & | addData (byte b) |
| Add a data byte to the message. | |
| VlcbMessage & | add2Bytes (unsigned int n) |
| Add a number as two bytes of data to the message. | |
| VlcbMessage & | addNN (unsigned int nn) |
| Add a node number (two bytes) to the message. | |
| VlcbMessage & | addEN (unsigned int en) |
| Add an event number (two bytes) to the message. | |
| VlcbMessage & | addNNEN (byte nn_en[EE_HASH_BYTES]) |
| Add an event identifier (NN/EN) to the message. | |
Public Attributes | |
| uint8_t | len |
| uint8_t | data [8] |
VLCB message type.
Describes messages send and received from other nodes on the LCB.
Construct the VlcbMessage object directly from a set of data bytes or use functions to add one data item to the message at a time.
Example:
|
default |
|
inline |
Construct a message from existing data.
|
inlineexplicit |
Construct a message and populate the message OP-code.
| VlcbMessage & VLCB::VlcbMessage::addData | ( | byte | b | ) |
Add a data byte to the message.
| VlcbMessage & VLCB::VlcbMessage::add2Bytes | ( | unsigned int | n | ) |
Add a number as two bytes of data to the message.
|
inline |
Add a node number (two bytes) to the message.
|
inline |
Add an event number (two bytes) to the message.
| VlcbMessage & VLCB::VlcbMessage::addNNEN | ( | byte | nn_en[EE_HASH_BYTES] | ) |
Add an event identifier (NN/EN) to the message.
| uint8_t VLCB::VlcbMessage::len |
| uint8_t VLCB::VlcbMessage::data[8] |