Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If a task or function wants to transmit a CAN frame by calling the function CanBusWrite() while the configured CAN transmitter is busy, the following steps will be performed:


Panel
borderWidth0
titleFigure - CAN transmission while transmitter is busy

Image Added


  1. The function CanBusWrite() is pending on the counting semaphore with the configured TxTimeout. The timeout must be set with CanBusIoCtl() CANBUS_SET_TX_TIMEOUT
  2. If the function has the semaphore within the timeout, the given CAN frame is copied to the internal transmission queue. If a timeout error was detected, the function CanBusWrite() exits with an error-code.

...