CpCanMsg_s Struct ReferenceDetailed DescriptionFor transmission and reception of CAN messages a structure which holds all necessary informations is used. The structure has the following data fields:
Field Documentation
identifier for Standard Frame
identifier for Extended Frame
The identifier field may have 11 bits for standard frames (CAN specification 2.0A) or 29 bits for extended frames (CAN specification 2.0B). The three most significant bits are reserved (always read 0).
byte access, array of 8 byte
16 bit access, array of 4 words
32 bit access, array of 2 longs
The data field has up to 8 bytes (64 bit) of message data. The number of used bytes is described via the structure member
The data length code denotes the number of data bytes which are transmitted by a message. The possible value range for the data length code is from 0 to 8 (bytes).
The structure member
The time stamp field defines the time when a CAN message was received by the CAN controller. This is an optional field (available if CP_CAN_MSG_TIME is set to 1). The field user data can hold a 32 bit value, which is defined by the user. This is an optional field (available if CP_CAN_MSG_USER is set to 1).
The documentation for this struct was generated from the following file:
| |||||||||||||||||||||||||||||||||||||||||||