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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,469 Views
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?

Labels (1)
0 Kudos
1 Solution
1,459 Views
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,

 

View solution in original post

0 Kudos
2 Replies
1,460 Views
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 Kudos
1,427 Views
HyungGyuKim76
Contributor I

thank you. I'll do that.

0 Kudos