I'm new to CAN and NXP uC.
I'm now trying to use CAN on LPC11C24.
So far sending data from LPC11C24 successfully worked very easily.
What I would like to know is how to handle and see the content of message which LPC11C24 received.
Let's say the other side node sends two bytes data and LPC11C24 receives it.
I would like to process the 2 bytes data in my codes.
I just added below codes to the example one but it does not work.
/* Configure message object 1 to receive all 11-bit messages 0x400-0x4FF */
msg_obj.msgobj = 1;
msg_obj.mode_id = 0x400;
msg_obj.mask = 0x0;
received_message = msg_obj.data;
Could somebody kindly advice me how to use can_receive or give some example?
Thank you very much.