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?
Solved! Go to Solution.
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,
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,
thank you. I'll do that.