RT1064-EVK CAN Bus receive both FrameFormat

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RT1064-EVK CAN Bus receive both FrameFormat

968件の閲覧回数
Dannii
Contributor II

Hey Guys,

I want to set up the Can Bus buffer to receive all Messages on a CAN line Standard and Extendet Format. I always just found the settings and masks to change between them, but not a way to receive all of them. I know it has to do something with the IDE Bit, but is there a way to detect it and set the Buffer according to it while recieving the message? 

Best regards

Daniel

タグ(1)
0 件の賞賛
返信
1 返信

948件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @Dannii,

If you want to receive multiple messages in a single mailbox the best way would be to use the filters, if you configure the filter mask to 0 it would receive any message in the specific mailbox:

FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, FLEXCAN_RX_MB_STD_MASK(0, 0, 0));
FLEXCAN_SetRxIndividualMask(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, FLEXCAN_RX_MB_STD_MASK(0, 0, 0));

Best Regards,

Alexis Andalon

0 件の賞賛
返信