Midnight Sun Firmware
|
CAN message structure. More...
#include <can_msg.h>
Public Attributes | |
CanId | id |
bool | extended |
size_t | dlc |
union { | |
uint64_t data | |
uint32_t data_u32 [2] | |
uint16_t data_u16 [4] | |
uint8_t data_u8 [8] | |
}; | |
CAN message structure.
CAN ID is subjected to arbitration where lower ID's are given higher priority Extended ID flag indicates a 29-bit ID or an 11-bit ID Data length code ias 4 bit value indicating the number of bytes in the payload CAN Frames hold 8 bytes of data at most
uint64_t data |
Raw data in the form of 8 bytes
uint16_t data_u16[4] |
Data split in 2 bytes partitions
uint32_t data_u32[2] |
Data split in 4 bytes partitions
uint8_t data_u8[8] |
Data split in 1 byte partitions
size_t dlc |
Data length Code
bool extended |
Extended ID Flag
CanId id |
CAN ID