56 for (
unsigned i=0;i<
len;++i) {
58 PRINT(
"data["<<i<<
"] = 0x"<<std::hex<<(
unsigned)
data[i]);
uint16_t cob_id
Message ID aka COB-ID.
uint8_t len
Message's length (0 to 8)
uint8_t get_function_code() const
Extracts the function code from the COB-ID.
uint8_t get_node_id() const
Extracts the node id from the COB-ID.
uint8_t rtr
Remote transmission request (0 if it's not an RTR message, 1 if it is an RTR message) ...
uint8_t data[8]
Data bytes.
void print() const
Prints the message to command line.