HPM SDK
HPMicro Software Development Kit
mcan_tx_event_fifo_elem_struct Union Reference

TX Event Fifo Element Structure. More...

#include <hpm_mcan_drv.h>

Data Fields

struct {
   union {
      struct {
         uint32_t   ext_id: 29
 
         uint32_t   rtr: 1
 
         uint32_t   extend_id: 1
 
         uint32_t   error_state_indicator: 1
 
      } 
 
      struct {
         uint32_t   std_id: 11
 
      } 
 
   } 
 
   union {
      uint16_t   tx_timestamp
 
      struct {
         uint16_t   tx_timestamp_pointer: 4
 
         uint16_t   tx_timestamp_captured: 1
 
      } 
 
   } 
 
   struct {
      uint16_t   dlc: 4
 
      uint16_t   bitrate_switch: 1
 
      uint16_t   canfd_frame: 1
 
      uint16_t   event_type: 2
 
      uint16_t   message_marker: 8
 
   } 
 
}; 
 
uint32_t words [2]
 

Detailed Description

TX Event Fifo Element Structure.

Field Documentation

◆ 

struct { ... }

◆ bitrate_switch

uint16_t mcan_tx_event_fifo_elem_struct::bitrate_switch

Bitrate Switch flag

◆ canfd_frame

uint16_t mcan_tx_event_fifo_elem_struct::canfd_frame

CANFD frame

◆ dlc

uint16_t mcan_tx_event_fifo_elem_struct::dlc

Data length code

◆ error_state_indicator

uint32_t mcan_tx_event_fifo_elem_struct::error_state_indicator

Error State Indicator

◆ event_type

uint16_t mcan_tx_event_fifo_elem_struct::event_type

Event type

◆ ext_id

uint32_t mcan_tx_event_fifo_elem_struct::ext_id

CAN Identifier

◆ extend_id

uint32_t mcan_tx_event_fifo_elem_struct::extend_id

Extended Identifier

◆ message_marker

uint16_t mcan_tx_event_fifo_elem_struct::message_marker

Message Marker

◆ rtr

uint32_t mcan_tx_event_fifo_elem_struct::rtr

Remote Transmission Request

◆ std_id

uint32_t mcan_tx_event_fifo_elem_struct::std_id

◆ tx_timestamp

uint16_t mcan_tx_event_fifo_elem_struct::tx_timestamp

Tx Timestamp

◆ tx_timestamp_captured

uint16_t mcan_tx_event_fifo_elem_struct::tx_timestamp_captured

TX timestamp captured flag

◆ tx_timestamp_pointer

uint16_t mcan_tx_event_fifo_elem_struct::tx_timestamp_pointer

TX timestamp pointer

◆ words

uint32_t mcan_tx_event_fifo_elem_struct::words[2]

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