FIFO mechanism of linked CAN RX Mailboxes

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi there,

   

 

   

I link together CAN RX Mailboxes to be able to use the FIFO mechanism behind it. I already understood the basic principle, like explained here: https://secure.cypress.com/?id=4&rID=31578 but I don't know how to apply this principle because I don't know how to access the read and the write pointer.

   

Will I have to program this pointer mechanism (read and write pointer) on my own? Is there any example available on how to do it properly?

   

 

   

Thanks in advance!

0 Likes
1 Reply
Anonymous
Not applicable

You don't have to take care about indexing. You can just do a register read.
 CAN_RX_DATA_BYTE1(0x01); // 0x01 is the mailbox ID
CAN_RX_DATA_BYTE2(0x01);
CAN_RX_DATA_BYTE3(0x01);
CAN_RX_DATA_BYTE4(0x01);
 

0 Likes