Hi,
I am using MCB4300 Dev Kit and configured for CAN.
I configured a message object to receive 10 numbers of message IDs and able to receive properly each message.
1) My doubt is as i am using single message object for multiple IDS, everytime the message buffer/receiving buffers are overwritten with new message. If i want to read last 5 message IDs then first 5 message ID, will it be possible? Is it like CAN can store the data of all message IDs though we are using single message object/RAM?
2) If we see our driver,
if (size > 0U) { data[0] = (ptr_CAN->IF1_DA1) & 0xFFU;
if (size > 1U) { data[1] = (ptr_CAN->IF1_DA1 >> & 0xFFU;
if (size > 2U) { data[2] = (ptr_CAN->IF1_DA2) & 0xFFU;
if (size > 3U) { data[3] = (ptr_CAN->IF1_DA2 >> & 0xFFU;
if (size > 4U) { data[4] = (ptr_CAN->IF1_DB1) & 0xFFU;
if (size > 5U) { data[5] = (ptr_CAN->IF1_DB1 >> & 0xFFU;
if (size > 6U) { data[6] = (ptr_CAN->IF1_DB2) & 0xFFU;
if (size > 7U) { data[7] = (ptr_CAN->IF1_DB2 >> & 0xFFU;
Its using only IF1 register and IF2 register is still there.
Why its not used or how i can use it , Will it help me to store the data upto next read?
Awaiting for your valuable comments..
Regards,
Ashru