FlexCAN MK60DN512

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FlexCAN MK60DN512

跳至解决方案
1,170 次查看
profprogrammer
Contributor III

I used KSDK and FlexCAN.  (MK60DN512)

How work individual mask for mailBox.?

If I apply the fifo, personal masks work at mainlbox?

Individual mask can be set up as filters?

标签 (1)
0 项奖励
回复
1 解答
885 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

The below FlexCAN driver API function using to set Receive message buffer ID mask type:

FLEXCAN_DRV_SetRxMaskType(flexcanInstance, kFlexCanRxMaskGlobal);

The FlexCAN MB mask has two types as below definition:

/*! @brief FlexCAN receive mask type.*/

typedef enum _flexcan_rx_mask_type {

    kFlexCanRxMaskGlobal,      /*!< Receive global mask*/

    kFlexCanRxMaskIndividual   /*!< Receive individual mask*/

} flexcan_rx_mask_type_t;

If customer want to use Receive individual mask, please use below code:

FLEXCAN_DRV_SetRxMaskType(flexcanInstance, kFlexCanRxMaskIndividual);

When using the FIFO, it will check FlexCAN control 2 register (CANx_CTRL2) register [MRP] bit ,

which is set the matching process starts from the Mailboxes and if no match occurs the matching

continues on the Rx FIFO.

Wish it helps.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
886 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

The below FlexCAN driver API function using to set Receive message buffer ID mask type:

FLEXCAN_DRV_SetRxMaskType(flexcanInstance, kFlexCanRxMaskGlobal);

The FlexCAN MB mask has two types as below definition:

/*! @brief FlexCAN receive mask type.*/

typedef enum _flexcan_rx_mask_type {

    kFlexCanRxMaskGlobal,      /*!< Receive global mask*/

    kFlexCanRxMaskIndividual   /*!< Receive individual mask*/

} flexcan_rx_mask_type_t;

If customer want to use Receive individual mask, please use below code:

FLEXCAN_DRV_SetRxMaskType(flexcanInstance, kFlexCanRxMaskIndividual);

When using the FIFO, it will check FlexCAN control 2 register (CANx_CTRL2) register [MRP] bit ,

which is set the matching process starts from the Mailboxes and if no match occurs the matching

continues on the Rx FIFO.

Wish it helps.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复