Implements a struct representing a can message. More...
#include <tCanMessage.h>
Public Member Functions | |
tCanMessage & | operator= (const tCanMessage &other) |
tCanMessage (unsigned param_id=0, unsigned char param_dlc=0, unsigned char param_rtr=0, const unsigned char *param_data=0) | |
tCanMessage (const tCanMessage &other) | |
Public Attributes | |
unsigned char | data [8] |
unsigned char | dlc |
unsigned | id |
unsigned char | rtr |
Implements a struct representing a can message.
This struct implements a can message type with components id, dlc, rtr and data.
Definition at line 43 of file tCanMessage.h.
icl_hardware::can::tCanMessage::tCanMessage | ( | unsigned | param_id = 0 , |
unsigned char | param_dlc = 0 , |
||
unsigned char | param_rtr = 0 , |
||
const unsigned char * | param_data = 0 |
||
) |
Creates a CAN message from scratch.
Definition at line 30 of file tCanMessage.cpp.
icl_hardware::can::tCanMessage::tCanMessage | ( | const tCanMessage & | other | ) |
Creates a CAN message as a copy of another CAN message.
Definition at line 49 of file tCanMessage.cpp.
tCanMessage & icl_hardware::can::tCanMessage::operator= | ( | const tCanMessage & | other | ) |
Assigns another CAN message to this message.
Definition at line 64 of file tCanMessage.cpp.
unsigned char icl_hardware::can::tCanMessage::data[8] |
Definition at line 51 of file tCanMessage.h.
unsigned char icl_hardware::can::tCanMessage::dlc |
Definition at line 49 of file tCanMessage.h.
unsigned icl_hardware::can::tCanMessage::id |
Definition at line 45 of file tCanMessage.h.
unsigned char icl_hardware::can::tCanMessage::rtr |
Definition at line 50 of file tCanMessage.h.