MX Foundation 4
Basic Transmission

The basic transmission method consists in sending one or more data records on the data bus and not care about any timing consideration between the records.

This is the most basic method to send data. The example below shows all the steps required to build a basic CAN transmission function.

  • How to initialize and set a transmit channel was discussed in a previous section.
  • Allocate the specific aperiodic buffer for transmission
  • Build the data record.
    • The time tag is set to 0 : transmit as soon as possible.
    • The repeat count is set to 1 : the record will be not be repeated.
  • Finally, the mxfCanBusTxAperiodicWrite() function with the MXF_TXAPERIODIC_FLAG_DEFAULT flag must be used.

Example

canbus.c

Updated 10/23/2023