[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,273件の閲覧回数
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,263件の閲覧回数
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,264件の閲覧回数
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,231件の閲覧回数
HyungGyuKim76
Contributor I

thank you. I'll do that.

0 件の賞賛
返信