This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL-CAN library and receive mask

Hello everyone,

Question

I want my CAN to receive every message with ID 0x1000 to 0x1FFF, how can I do it ?

Ugly solution

NB: My CAN(s) can already receive messages with CAN_receive() by calling CAN_rx_object() with the correct ID.

U32 i = 0;

for (i = 0x1000; i < 0x1FFF; i++)
{
  CAN_rx_object(CAN_CTRL, CAN_CH, i, DATA_TYPE | EXTENDED_TYPE);
}
/* ... */

Is there something more elegant to do so ?

Best regards,

Vincent

--
Apendix
Device: LM3Sxxxx (LM3S9B96)
CAN : Basic CAN

Parents Reply Children
No data