Reception of a CAN frame
If a task wants to receive a CAN frame, the function CanBusRead()
must be called. The following steps will be performed:
CAN reception
CanBusRxHandler()
shall be activated.Read()
to get the CAN frame from CAN controller.CANOS_P
ostRxFrame is called to indicated the new received frame and the handler exits.Asynchronous to this actions, a task can wait for CAN frames:
CanBusRead()
pending on the receive semaphore with the configured timeout. The timeout must be set with CanBusIoCtl()
CANBUS_SET_RX_TIMEOUT
.