Struct Header

Inheritance Relationships

Derived Types

Struct Documentation

struct Header

Header for CAN id an meta data

Subclassed by can::ErrorHeader, can::ExtendedHeader, can::Frame, can::MsgHeader

Public Functions

inline bool isValid() const

check if frame header is valid

inline unsigned int fullid() const
inline unsigned int key() const
inline Header()

constructor with default parameters

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

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

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

inline Header(unsigned int i, bool extended, bool rtr, bool error)

Public Members

unsigned int id
unsigned int is_error
unsigned int is_rtr
unsigned int is_extended

Public Static Attributes

static const unsigned int ID_MASK = (1u << 29) - 1
static const unsigned int ERROR_MASK = (1u << 29)
static const unsigned int RTR_MASK = (1u << 30)
static const unsigned int EXTENDED_MASK = (1u << 31)