Astra MCU SDK Peripheral Driver Library
Loading...
Searching...
No Matches
can_rx_frame_t Struct Reference

Receive frame container returned to RX callbacks. More...

#include <can.h>

Data Fields

union { 
   can_rx_classic_header_t   classic 
   can_rx_fd_header_t   fd 
   uint32_t   raw [CAN_RX_HEADER_RAW_WORDS] 
header
uint8_t data [CAN_MAX_DATA_LENGTH]
uint8_t reserved [CAN_RX_DESCRIPTOR_RESERVED_BYTES]

Detailed Description

Receive frame container returned to RX callbacks.

Field Documentation

◆ classic

can_rx_classic_header_t can_rx_frame_t::classic

Classical CAN header

◆ fd

can_rx_fd_header_t can_rx_frame_t::fd

CAN FD header

◆ raw

uint32_t can_rx_frame_t::raw[CAN_RX_HEADER_RAW_WORDS]

Debug/raw descriptor access only

◆ data

uint8_t can_rx_frame_t::data[CAN_MAX_DATA_LENGTH]

Frame data payload

◆ reserved

uint8_t can_rx_frame_t::reserved[CAN_RX_DESCRIPTOR_RESERVED_BYTES]

Reserved for cache-line aligned descriptor arrays