Reading a CAN Message
When a CAN message shall be transmitted via the CAN bus, the CAN frame can be build with the linked CAN signals.
Figure - Reading a CAN message
- The function
CanMsgRead()
is called with the unique CAN message identifier and a CAN frame. - The function checks, that the given CAN message is in use.
- The function uses the
CanSigRead()
andCanFrmSet()
to get the data from the mapped CAN signals and set the data within the given CAN frame according to the configured mapping information.