ChibiOS/HAL  6.1.0
CANTxFrame Struct Reference

CAN transmission frame. More...

#include <hal_can_lld.h>

Collaboration diagram for CANTxFrame:
Collaboration graph

Data Fields

uint8_t DLC:4
 Data length. More...
 
uint8_t RTR:1
 Frame type. More...
 
uint8_t IDE:1
 Identifier type. More...
 
uint32_t SID:11
 Standard identifier. More...
 
uint32_t EID:29
 Extended identifier. More...
 
uint8_t data8 [8]
 Frame data. More...
 
uint16_t data16 [4]
 Frame data. More...
 
uint32_t data32 [2]
 Frame data. More...
 

Detailed Description

CAN transmission frame.

Note
Accessing the frame data as word16 or word32 is not portable because machine data endianness, it can be still useful for a quick filling.

Definition at line 96 of file hal_can_lld.h.

Field Documentation

uint8_t CANTxFrame::DLC

Data length.

Definition at line 98 of file hal_can_lld.h.

uint8_t CANTxFrame::RTR

Frame type.

Definition at line 99 of file hal_can_lld.h.

uint8_t CANTxFrame::IDE

Identifier type.

Definition at line 100 of file hal_can_lld.h.

uint32_t CANTxFrame::SID

Standard identifier.

Definition at line 102 of file hal_can_lld.h.

uint32_t CANTxFrame::EID

Extended identifier.

Definition at line 103 of file hal_can_lld.h.

uint8_t CANTxFrame::data8[8]

Frame data.

Definition at line 108 of file hal_can_lld.h.

uint16_t CANTxFrame::data16[4]

Frame data.

Definition at line 109 of file hal_can_lld.h.

uint32_t CANTxFrame::data32[2]

Frame data.

Definition at line 110 of file hal_can_lld.h.