I am using the MODM7AE70 and try to understand how MCAN message buffering actually works with the Netburner API.
Regarding message reception, this part of the Simple CAN example code makes the RTOS block and wait for a new CAN message:
Code: Select all
CanRxMessage can_msg(&CanFifo);
Code: Select all
OS_FIFO CanFifo;
BTW, what is exactly the difference between a FIFO and a Queue in NBRTOS? It is not clear to me where to use which.
Regarding sending CAN messages this looks like this:
Code: Select all
mcan_instance.send_message(ExtToNbId(0x1234), (uint8_t *) "ETESTR", 6);
Thanks in advance,
Anguel