This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM46L852: How to get the message box ID inside the canStatusChangeNotification ISR?

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN
Hi,

How to get the message box ID inside the canStatusChangeNotification ISR?
I tried the following without success.
void canStatusChangeNotification(canBASE_t *node, uint32 notification)
{
    if ((notification & canLEVEL_RxOK) != 0)
    {
        // Wait until IF2 is ready for use
        while ((node->IF2STAT & 0x80U) == 0x80U)
        {
        }
        uint8_t const msgbox = node->IF2NO;
    }
 }

 

For context, here's what I'm trying to do:

I want to know how many CAN frames my message boxes receive per second to make sure other devices on the bus have not timeout.
Note that I don't necessarily want to use the data inside the message box; just know how much time has elapsed since a message was received.

Regards,
Gabriel