<div dir="ltr"><div>Hi All,</div><div><br></div><div>This is a request for suggestions and feedback for the CAN message structure.</div><div><br></div><div><div><div><b>CAN message structure that represents the can messages from application to driver:</b></div><br></div><div><div>struct can_message {</div><div style="margin-left:40px">uint32_t timestamp;</div><div style="margin-left:40px">uint32_t id;                 // 32 bits to support extended id (29 bits)</div><div style="margin-left:40px">uint16_t flags;            // RTR | BRS | EXT ... <br></div><div style="margin-left:40px">uint8_t dlc;                 // (0 - 8) | 12 | 16 | 20 | 24 | 32 | 48 | 64</div><div style="margin-left:40px">uint8_t res;                 // reserved for alignment.<br></div><div style="margin-left:40px">uint8_t data[64];         // For supporting data transfer up to 64 bytes.<br></div>};</div><div><br></div><div>This is the CAN messages structure created based on the suggestions in the mail chain and looking through other CAN solutions (Nuttx, GRCAN, LinCAN).</div></div><div><br></div><div>Regards</div><div>Prashanth S</div><div><br></div></div>