You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
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.
Creating a CAN message
The function CanMsgCreate()
is called with an application specific CAN message configuration parameter structure (see documentation of structure CANMSG_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.
End