ChibiOS/HAL  6.1.0
CANRxFrame Struct Reference

CAN received frame. More...

#include <hal_can_lld.h>

Collaboration diagram for CANRxFrame:
Collaboration graph

Data Fields

uint8_t FMI
 Filter id. More...
 
uint16_t TIME
 Time stamp. More...
 
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 received 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 119 of file hal_can_lld.h.

Field Documentation

uint8_t CANRxFrame::FMI

Filter id.

Definition at line 121 of file hal_can_lld.h.

uint16_t CANRxFrame::TIME

Time stamp.

Definition at line 122 of file hal_can_lld.h.

uint8_t CANRxFrame::DLC

Data length.

Definition at line 123 of file hal_can_lld.h.

uint8_t CANRxFrame::RTR

Frame type.

Definition at line 124 of file hal_can_lld.h.

uint8_t CANRxFrame::IDE

Identifier type.

Definition at line 125 of file hal_can_lld.h.

uint32_t CANRxFrame::SID

Standard identifier.

Definition at line 127 of file hal_can_lld.h.

uint32_t CANRxFrame::EID

Extended identifier.

Definition at line 128 of file hal_can_lld.h.

uint8_t CANRxFrame::data8[8]

Frame data.

Definition at line 133 of file hal_can_lld.h.

uint16_t CANRxFrame::data16[4]

Frame data.

Definition at line 134 of file hal_can_lld.h.

uint32_t CANRxFrame::data32[2]

Frame data.

Definition at line 135 of file hal_can_lld.h.