Hey Guys,
I want to set up the Can Bus buffer to receive all Messages on a CAN line Standard and Extendet Format. I always just found the settings and masks to change between them, but not a way to receive all of them. I know it has to do something with the IDE Bit, but is there a way to detect it and set the Buffer according to it while recieving the message?
Best regards
Daniel
Hello @Dannii,
If you want to receive multiple messages in a single mailbox the best way would be to use the filters, if you configure the filter mask to 0 it would receive any message in the specific mailbox:
FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, FLEXCAN_RX_MB_STD_MASK(0, 0, 0));
FLEXCAN_SetRxIndividualMask(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, FLEXCAN_RX_MB_STD_MASK(0, 0, 0));
Best Regards,
Alexis Andalon