...
Source code (Application Startup):
Description
...
- Initialize the CAN signal layer
...
- If dynamic signal handling is enabled loop through all constant CAN signal parameter list and create the signals
...
- Initialize the CAN message layer
...
- Loop through all constant CAN message parameter list and create the messages
...
- Start the communication bus as described in chapter 6.2 Enable the CAN bus
Source code (Application Task)
...
Description
...
- Anywhere in your application the write access to the CAN signal is possible.
...
- This function will send the status message to the CAN bus. The source code of the function is shown below.
...
- This callback-function is included in the signal configuration parameter list for the signal status. The function is called, when the change of the signal value is detected.
...
- The parameter CallbackId is used to identify where this callback-function was called from.
...
- The parameter NewVal holds the new CAN signal value and is used to determine the required start / stop action of the Load-Task.