Lely core libraries  2.2.5
can_msg Struct Reference

A CAN or CAN FD format frame. More...

#include <msg.h>

Data Fields

uint_least32_t id
 The identifier (11 or 29 bits, depending on the CAN_FLAG_IDE flag).
 
uint_least8_t flags
 The flags (any combination of CAN_FLAG_IDE, CAN_FLAG_RTR, CAN_FLAG_FDF, CAN_FLAG_BRS and CAN_FLAG_ESI).
 
uint_least8_t len
 The number of bytes in data (or the requested number of bytes in case of a remote frame). More...
 
uint_least8_t data [CAN_MSG_MAX_LEN]
 The frame payload (in case of a data frame).
 

Detailed Description

A CAN or CAN FD format frame.

Definition at line 87 of file msg.h.

Field Documentation

◆ len

uint_least8_t can_msg::len

The number of bytes in data (or the requested number of bytes in case of a remote frame).

The maximum value is 8 for CAN format frames and 64 for CAN FD format frames.

Definition at line 100 of file msg.h.


The documentation for this struct was generated from the following file: