S32K144 CANFD

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

S32K144 CANFD

1,596 次查看
liulei1
Contributor II

I want to receive a CANFD message using interrupts.But,I don't know the difference between CAN0_ORed_0_15_MB_IRQHandler and CAN0_ORed_16_31_MB_IRQHandler。

Then, I want to receive CANFD data as a register。Excuse me, how should I operate the register?

标签 (1)
0 项奖励
回复
2 回复数

1,361 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

You have a pointer to received data – it’s type flexcan_msgbuff_t:

 

typedef struct {

104  uint32_t cs;

105  uint32_t msgId;

106  uint8_t data[64];

107  uint8_t dataLen;

108 } flexcan_msgbuff_t;

 

There are two interrupt vectors - one for message buffers 0-15 and second for message buffers 16-31.

pastedImage_9.png

Regards,

Lukas

0 项奖励
回复

1,361 次查看
liulei1
Contributor II

After the CAN bus data is interrupted, how do I determine which mailbox is generated? How to configure the filter ID of CAN mailbox?

0 项奖励
回复