|
truck-code
|
#include <sja1000.h>
Public Attributes | |
| struct { | |
| BYTE canid1 | |
| BYTE canid2 | |
| BYTE canid3 | |
| BYTE canid4 | |
| BYTE canxdata [8] | |
| } | extframe |
| struct { | |
| BYTE canid1 | |
| BYTE canid2 | |
| BYTE candata [8] | |
| } | stdframe |
Object containing relevant data from a CAN message.
This includes the CAN message identifier and the data field. This object contains two substructures:
| BYTE frame::candata[8] |
message field (up to 8 bytes)
| BYTE frame::canid1 |
bits 1-8 of the message identifier
| BYTE frame::canid2 |
bits 9-16 of the message identifier
bits 9-11 of the message identifier
| BYTE frame::canid3 |
bits 17-24 of the message identifier
| BYTE frame::canid4 |
bits 25-29 of the message identifier
| BYTE frame::canxdata[8] |
message field (up to 8 bytes)
| struct { ... } frame::extframe |
29-bit message format
| struct { ... } frame::stdframe |
11-bit message format
1.8.13