Mcan_Hal_RxConfigType
Module: HAL (AM13E230X) API / CAN HAL API
CAN RX configuration parameters. More…
#include <Mcan_Hal.h>
Public Attributes
Name |
|
|---|---|
StdFilterCount |
|
ExtFilterCount |
|
RxFifo0Size |
|
RxFifo0ElemSize |
|
RxFifo0Mode |
|
RxFifo0Watermark |
|
RxFifo1Size |
|
RxFifo1ElemSize |
|
RxFifo1Mode |
|
RxFifo1Watermark |
|
RxBufCount |
|
RxBufElemSize |
|
AcceptNonMatchingStandard |
|
AcceptNonMatchingExtended |
|
RejectRemoteStandard |
|
RejectRemoteExtended |
|
ExtendedIdMask |
|
RxProcessingMode |
|
RxIndicationCb |
|
RxDedicatedBufCb |
|
RxIntrMask |
Detailed Description
struct Mcan_Hal_RxConfigType;
CAN RX configuration parameters.
Note: Global filter configuration (MCAN_GFC) and Extended ID AND Mask (MCAN_XIDAM) are applied internally by Mcan_Hal_Init() using the fields below.
Groups all RX-related Message RAM, FIFO, filter, and global filter configuration fields used during initialization.
Public Attributes Documentation
variable StdFilterCount
uint8 StdFilterCount;
Number of Standard ID filters (0-128)
variable ExtFilterCount
uint8 ExtFilterCount;
Number of Extended ID filters (0-64)
variable RxFifo0Size
uint8 RxFifo0Size;
RX FIFO 0 Size — count of message elements the FIFO can hold (0-64). Set to 0 to disable RX FIFO 0.
variable RxFifo0ElemSize
uint8 RxFifo0ElemSize;
RX FIFO 0 element data field size in bytes. For Classic CAN (MaxMsgFormat=CLASSIC): fixed at 8 bytes. For CAN FD (MaxMsgFormat=FD): choose 8, 12, 16, 20, 24, 32, 48, or 64.
variable RxFifo0Mode
Mcan_Hal_RxFifoModeType RxFifo0Mode;
RX FIFO 0 operation mode: blocking or overwrite.
variable RxFifo0Watermark
uint8 RxFifo0Watermark;
RX FIFO 0 watermark level (0=disabled)
variable RxFifo1Size
uint8 RxFifo1Size;
RX FIFO 1 Size — count of message elements the FIFO can hold (0-64). Set to 0 to disable RX FIFO 1.
variable RxFifo1ElemSize
uint8 RxFifo1ElemSize;
RX FIFO 1 element data field size in bytes. For Classic CAN (MaxMsgFormat=CLASSIC): fixed at 8 bytes. For CAN FD (MaxMsgFormat=FD): choose 8, 12, 16, 20, 24, 32, 48, or 64.
variable RxFifo1Mode
Mcan_Hal_RxFifoModeType RxFifo1Mode;
RX FIFO 1 operation mode: blocking or overwrite.
variable RxFifo1Watermark
uint8 RxFifo1Watermark;
RX FIFO 1 watermark level (0=disabled)
variable RxBufCount
uint8 RxBufCount;
Number of dedicated RX buffers (0-64)
variable RxBufElemSize
uint8 RxBufElemSize;
RX Buffer element data field size in bytes For Classic CAN (MaxMsgFormat=CLASSIC): fixed at 8 bytes. For CAN FD (MaxMsgFormat=FD): choose 8, 12, 16, 20, 24, 32, 48, or 64.
variable AcceptNonMatchingStandard
Mcan_Hal_NonMatchingFrameHandlingType AcceptNonMatchingStandard;
Handling of non-matching standard frames.
variable AcceptNonMatchingExtended
Mcan_Hal_NonMatchingFrameHandlingType AcceptNonMatchingExtended;
Handling of non-matching extended frames.
variable RejectRemoteStandard
boolean RejectRemoteStandard;
Reject all remote frames with 11-bit standard IDs.
variable RejectRemoteExtended
boolean RejectRemoteExtended;
Reject all remote frames with 29-bit extended IDs.
variable ExtendedIdMask
uint32 ExtendedIdMask;
Extended ID AND Mask (MCAN_XIDAM.EIDM, 29-bit). The received 29-bit ID is ANDed with this mask before range filter comparison. Set to 0x1FFFFFFFU to disable masking (reset default)
variable RxProcessingMode
Mcan_Hal_ProcessingModeType RxProcessingMode;
RX FIFO processing mode: polling or interrupt.
variable RxIndicationCb
Mcan_Hal_RxIndicationCallbackType RxIndicationCb;
RX Indication callback — called from Mcan_Hal_InterruptHandler_Line0() when a frame is received into RX FIFO 0, RX FIFO 1.
variable RxDedicatedBufCb
Mcan_Hal_RxDedicatedBufCallbackType RxDedicatedBufCb;
Dedicated RX buffer indication callback — called from Mcan_Hal_InterruptHandler_Line0() when MCAN_IR.DRX fires. Passes the full MCAN_NDAT1 (ndatLow) and MCAN_NDAT2 (ndatHigh) bitmasks. Set to NULL_PTR to ignore dedicated RX buffer events.
variable RxIntrMask
uint32 RxIntrMask;
RX interrupt enable mask. OR [MCAN_HAL_INTR_SRC_RX] macros to select which RX interrupt sources are enabled. Use MCAN_HAL_INTR_SRC_RX_DEFAULT for the recommended set. Set to 0U to disable all RX interrupts.