Creating a CAN Message
Before the application can use a CAN message, the CAN message must be configured with the parameters like CAN Identifier (extended or standard), CAN DLC and the collection of the linked CAN signals.
Figure - Creating a CAN message
- The function
CanMsgCreate()
is called with an application specific CAN message configuration parameter structure (see documentation of structureCANMSG_PARA
). - After checking, that a free CAN message object is available, the object is moved from the free list to the used list.
- The given CAN message parameter structure is checked to contain plausible data and all linked CAN signals are in use. If this check was successful, the structure is linked to the CAN message object.