/
CanMsgRead
CanMsgRead
Description
This function constructs a CAN frame out of the linked signals. If there are no linked signals (or the signals are not in use), the corresponding bytes will be 0.
Prototype
CPU_INT16S CanMsgRead(CPU_INT16S msgId, void *buffer, CPU_INT16U size);
Parameter | Meaning |
---|---|
| Unique message identifier |
| Pointer to CAN frame of type |
| Size of buffer (must be equal to |
Return Value
One of the error codes CAN_ERR_MSGID
, CAN_ERR_NULLPTR
or CAN_ERR_FRMSIZE
if an error is detected. Otherwise the number of bytes of a CAN frame is returned.