Versions Compared

Key

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

To encapsulate the CAN protocol from the application, it is advised to use only the CAN signals within the application part. The following source code makes use of the definitions explained in chapter 5.4 Defining CAN Signals and Messages:

Source code (Application Startup)

...

Description

  1. Initialize the CAN signal layer
  2. If dynamic signal handling is enabled loop through all constant CAN signal parameter list and create the signals
  3. Initialize the CAN message layer
  4. Loop through all constant CAN message parameter list and create the messages
  5. Start the communication bus as described in chapter 6.2 Enable the CAN bus

...