[S32K148] how do i read the number of messages in a CAN mailbox?

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

[S32K148] how do i read the number of messages in a CAN mailbox?

跳至解决方案
2,254 次查看
HyungGyuKim76
Contributor I

I am currently doing CAN testing using S32K148 EVB.
Also, messages are being read through the "CAN_Receive()" function in the polling method.
If there are messages piled up in the Buffer, can I know the number of messages piled up in the MailBox buffer?

Is there a function to get the current number of unread messages?

标签 (1)
0 项奖励
回复
1 解答
2,244 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HyungGyuKim76

Sorry,I think there is no such functions.

If you using Rx-FIFO to receive the CAN messages, perhaps you can judge the number of unreaded messages by reading the register of IFLGA1,but there is no such function,you need to implement this function yourself.

Please take a look at the S32K-RM & Chapter 55.5.8 Rx FIFO for details.

BR!

     Jim,

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,245 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HyungGyuKim76

Sorry,I think there is no such functions.

If you using Rx-FIFO to receive the CAN messages, perhaps you can judge the number of unreaded messages by reading the register of IFLGA1,but there is no such function,you need to implement this function yourself.

Please take a look at the S32K-RM & Chapter 55.5.8 Rx FIFO for details.

BR!

     Jim,

 

0 项奖励
回复
2,212 次查看
HyungGyuKim76
Contributor I

thank you. I'll do that.

0 项奖励
回复