Content originally posted in LPCWare by emh203 on Wed Mar 19 11:26:21 MST 2014
As it current sits, the API for the CAN for receiving data always uses the mask.
i.e.
Chip_CCAN_AddReceiveID(LPC_C_CAN0, CCAN_MSG_IF1, 0x300);
Always pulls in message ID 0x300.
THe problem I found is that the is no way to use the API to recieve ALL id's to a mail box.
I hacked around it by creating my own version of
Chip_CCAN_AddReceiveID
and
Chip_CCAN_SetMsgObject
that can use a custom mask.
Please consider this in a future. I had quite a bit of time wrapped up into this!