Anonymous
Not applicable
Feb 18, 2015
07:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 18, 2015
07:37 AM
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!
Labels
- Labels:
-
PSoC 5LP
1 Reply
Anonymous
Not applicable
Mar 11, 2015
07:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2015
07:59 PM
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);