Mcan_Hal_MessageParamsType

Module: HAL (AM13E232X) API / CAN HAL API

CAN Message Parameters. More…

#include <Mcan_Hal.h>

Public Attributes

Name

Mcan_Hal_MsgFormatType

MsgFormat
Message format - Classic CAN or CAN FD.

Mcan_Hal_MsgDirectionType

Direction
Message direction - RX or TX.

uint8

MsgLength
Message length in bytes.

uint32

StandardMessageID
Standard Message ID (11-bit, valid when UseExtendedID=FALSE, range 0x000-0x7FF).

uint32

ExtendedMessageID
Extended Message ID (29-bit, valid when UseExtendedID=TRUE, range 0x00000000-0x1FFFFFFF).

boolean

UseExtendedID
Extended identifier flag - FALSE for standard (11-bit), TRUE for extended (29-bit)

boolean

RTR
Remote Transmission Request flag.

boolean

BRS
Bit Rate Switch (BRS) - FD only, ignored for Classic CAN.

boolean

ESI
Error State Indicator (ESI) - FD only, ignored for Classic CAN.

boolean

EFC
Event FIFO Control (EFC) - TX only: TRUE to store TX event in TX Event FIFO.

uint16

MessageMarker
Message Marker [7:0] - TX only: copied into TX Event FIFO element for identification. Note: MCAN hardware MM field is 8-bit (T1[31:24]); only lower 8 bits are used.

uint8

TxBufferIndex
TX Buffer index - used when TxBufferType is MCAN_HAL_TX_BUFFER_DEDICATED (0-31)

Mcan_Hal_TxBufferType

TxBufferType
TX Buffer type selection - FIFO, Queue, or Dedicated.

Mcan_Hal_RxFifoType

RxSource
RX source — output only: identifies where the received frame was stored. Set by Mcan_Hal_RxFifoDequeue() and Mcan_Hal_RxDedicatedBufDequeue() on return.

boolean

AcceptedNonMatchingFrame
Accepted Non-Matching Frame flag - RX only: TRUE if frame did not match any filter.

uint8

FilterIndex
Filter Index - RX only: index of the matching filter element (valid when ANMF=FALSE)

uint64

RxTimestamp
RX Timestamp - RX only: timestamp counter value captured at start of frame reception (RXTS[15:0] from Rx Buffer/FIFO element R1). The internal counter is 16-bit; an external 64-bit timestamp counter can be used via MCAN_TSCC.TSS=10.

Detailed Description

struct Mcan_Hal_MessageParamsType;

CAN Message Parameters.

Message header parameters structure for both TX and RX operations.

Public Attributes Documentation

variable MsgFormat

Mcan_Hal_MsgFormatType MsgFormat;

Message format - Classic CAN or CAN FD.

variable Direction

Mcan_Hal_MsgDirectionType Direction;

Message direction - RX or TX.

variable MsgLength

uint8 MsgLength;

Message length in bytes.

variable StandardMessageID

uint32 StandardMessageID;

Standard Message ID (11-bit, valid when UseExtendedID=FALSE, range 0x000-0x7FF).

variable ExtendedMessageID

uint32 ExtendedMessageID;

Extended Message ID (29-bit, valid when UseExtendedID=TRUE, range 0x00000000-0x1FFFFFFF).

variable UseExtendedID

boolean UseExtendedID;

Extended identifier flag - FALSE for standard (11-bit), TRUE for extended (29-bit)

variable RTR

boolean RTR;

Remote Transmission Request flag.

variable BRS

boolean BRS;

Bit Rate Switch (BRS) - FD only, ignored for Classic CAN.

variable ESI

boolean ESI;

Error State Indicator (ESI) - FD only, ignored for Classic CAN.

variable EFC

boolean EFC;

Event FIFO Control (EFC) - TX only: TRUE to store TX event in TX Event FIFO.

variable MessageMarker

uint16 MessageMarker;

Message Marker [7:0] - TX only: copied into TX Event FIFO element for identification. Note: MCAN hardware MM field is 8-bit (T1[31:24]); only lower 8 bits are used.

variable TxBufferIndex

uint8 TxBufferIndex;

TX Buffer index - used when TxBufferType is MCAN_HAL_TX_BUFFER_DEDICATED (0-31)

variable TxBufferType

Mcan_Hal_TxBufferType TxBufferType;

TX Buffer type selection - FIFO, Queue, or Dedicated.

variable RxSource

Mcan_Hal_RxFifoType RxSource;

RX source — output only: identifies where the received frame was stored. Set by Mcan_Hal_RxFifoDequeue() and Mcan_Hal_RxDedicatedBufDequeue() on return.

variable AcceptedNonMatchingFrame

boolean AcceptedNonMatchingFrame;

Accepted Non-Matching Frame flag - RX only: TRUE if frame did not match any filter.

variable FilterIndex

uint8 FilterIndex;

Filter Index - RX only: index of the matching filter element (valid when ANMF=FALSE)

variable RxTimestamp

uint64 RxTimestamp;

RX Timestamp - RX only: timestamp counter value captured at start of frame reception (RXTS[15:0] from Rx Buffer/FIFO element R1). The internal counter is 16-bit; an external 64-bit timestamp counter can be used via MCAN_TSCC.TSS=10.