CAN-ETH C/C++ API  Version 2.0
CanMsg Struct Reference

Structure of a CAN message. More...

Collaboration diagram for CanMsg:
Collaboration graph

Data Fields

unsigned int id
 CAN ID in little-endian format, max ID is 0x7FF if ext=0 or 0x1FFFFFF if ext=1.
 
unsigned char len
 Number of data bytes (0-8)
 
unsigned char data [8]
 Message bytes.
 
unsigned char ext
 Boolean flag to indicate extended frame, 0 = 11-bit identifier, 1 = 29-bit identifier.
 
unsigned char rtr
 Boolean flag to indicate remote transmition bit, 0 = standard frame, 1 = remote tranmission request.
 

Detailed Description

Structure of a CAN message.

Note
Has to be packed to byte boundary!