Midnight Sun Firmware
Loading...
Searching...
No Matches
Boot_CanMessage

CAN message structure. More...

#include <bootloader_can.h>

Public Attributes

uint32_t id
 
uint8_t extended
 
size_t dlc
 
union {
   uint64_t   data
 
   uint32_t   data_u32 [2]
 
   uint16_t   data_u16 [4]
 
   uint8_t   data_u8 [8]
 
}; 
 

Detailed Description

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

Member Data Documentation

◆ data

uint64_t data

Raw data in the form of 8 bytes

◆ data_u16

uint16_t data_u16[4]

Data split in 2 bytes partitions

◆ data_u32

uint32_t data_u32[2]

Data split in 4 bytes partitions

◆ data_u8

uint8_t data_u8[8]

Data split in 1 byte partitions

◆ dlc

size_t dlc

Data length Code

◆ extended

uint8_t extended

Extended ID Flag

◆ id

uint32_t id

CAN ID


The documentation for this struct was generated from the following file: