Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 8 months ago.
CAN filter from mbed API
It appears that the mbed API has acceptance filter support (at least for the LPC1549). documentation seems sparse on how to use this appropriately.
I have found examples like this
handle = can.filter(0x100, 0xff, CANStandard);
But many thread I find say it does not work and they have to work on a lower level (at least on the LPC1768/9) and use something like this.
h1 = can->filter(0x100, 0x700, CANStandard); // Accept standard messages with id 0x100-0x1FF
The LPC1549 (I believe the 11C24) have a different CAN peripheral than the LPC1768/9 so not much carries over on the low level.
Assuming filtering works on the LPC1549, how is it intended to be used? It appears that you create filters, then you run a "read" command for each filter you created (handle?) which searches the hardware buffer and returns a message if there is one that fits the filter. This is what I gather from the samples I can find using filters.
Is this correct usage?
Assigned to6 years, 8 months ago.
This means that the question has been accepted and is being worked on.