Data Fields
MCAN_ExtMsgIDFilterElement Struct Reference

Structure for MCAN Extended Message ID Filter Element. More...

#include <MCAN.h>

Data Fields

uint32_t efec
 
uint32_t eft
 
uint32_t efid1
 
uint32_t efid2
 

Detailed Description

Structure for MCAN Extended Message ID Filter Element.

Field Documentation

§ efec

uint32_t MCAN_ExtMsgIDFilterElement::efec

Extended Filter Element Configuration
0 = Disable filter element
1 = Store in Rx FIFO 0 if filter matches
2 = Store in Rx FIFO 1 if filter matches
3 = Reject ID if filter matches
4 = Set priority if filter matches
5 = Set priority and store in FIFO 0 if filter matches
6 = Set priority and store in FIFO 1 if filter matches
7 = Store into Rx Buffer or as debug message, configuration of EFT field is ignored as the ID must match EFID1 exactly.
If EFEC = 4-6, a match sets high priority message status and generates an interrupt.

§ eft

uint32_t MCAN_ExtMsgIDFilterElement::eft

Extended Filter Type
0 = Range filter from EFID1 to EFID2 (EFID2 >= EFID1)
1 = Dual ID filter for EFID1 or EFID2
2 = Classic filter: EFID1 = filter, EFID2 = mask
3 = Range filter from EFID1 to EFID2 (EFID2 >= EFID1), XIDAM mask not applied

§ efid1

uint32_t MCAN_ExtMsgIDFilterElement::efid1

Extended Filter ID 1 (29-bits). First ID of extended ID filter element. When filtering for Rx Buffers or for debug messages this field defines the ID of a extended message to be stored. The received identifiers must match exactly, no masking mechanism is used.

§ efid2

uint32_t MCAN_ExtMsgIDFilterElement::efid2

Extended Filter ID 2 (29-bits) This field has a different meaning depending on the value of EFEC:
EFEC = 1-6: Second ID of extended ID filter element
EFEC = 7: Filter for Rx Buffers or for debug messages

EFID2[10:9] decides whether the received message is stored into an Rx Buffer or treated as message A, B, or C of the debug message sequence.
0 = Store message into an Rx Buffer
1 = Debug Message A
2 = Debug Message B
3 = Debug Message C

EFID2[8:6] is used to control the filter event pins at the Extension Interface.

EFID2[5:0] defines the offset to the Rx Buffer Start Address RXBC.RBSA for storage of a matching message.


The documentation for this struct was generated from the following file:
© Copyright 1995-2024, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale