Struct Frame

Inheritance Relationships

Base Type

Struct Documentation

struct Frame : public can::Header

representation of a CAN frame

Public Types

typedef unsigned char value_type

Public Functions

inline bool isValid() const

check if frame header and length are valid

inline Frame()

constructor with default parameters

Parameters:
  • i[in] CAN id, defaults to 0

  • l[in] number of data bytes, defaults to 0

  • extended[in] uses 29 bit identifier, defaults to false

  • rtr[in] is rtr frame, defaults to false

inline explicit Frame(const Header &h, unsigned char l = 0)
inline value_type *c_array()
inline const value_type *c_array() const

Public Members

std::array<value_type, 8> data
unsigned char dlc