Public Member Functions | List of all members
can::MsgHeader Struct Reference

#include <interface.h>

Inheritance diagram for can::MsgHeader:
Inheritance graph
[legend]

Public Member Functions

 MsgHeader (unsigned int i=0, bool rtr=false)
 
- Public Member Functions inherited from can::Header
 Header ()
 
 Header (unsigned int i, bool extended, bool rtr, bool error)
 
bool isValid () const
 
 operator const unsigned int () const
 

Additional Inherited Members

- Public Attributes inherited from can::Header
unsigned int id:29
 CAN ID (11 or 29 bits valid, depending on is_extended member. More...
 
unsigned int is_error:1
 marks an error frame (only used internally) More...
 
unsigned int is_extended:1
 frame uses 29 bit CAN identifier More...
 
unsigned int is_rtr:1
 frame is a remote transfer request More...
 
- Static Public Attributes inherited from can::Header
static const unsigned int ERROR_MASK = (1u << 29)
 
static const unsigned int EXTENDED_MASK = (1u << 31)
 
static const unsigned int ID_MASK = (1u << 29)-1
 
static const unsigned int RTR_MASK = (1u << 30)
 

Detailed Description

Definition at line 43 of file interface.h.

Constructor & Destructor Documentation

can::MsgHeader::MsgHeader ( unsigned int  i = 0,
bool  rtr = false 
)
inline

Definition at line 44 of file interface.h.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Fri May 14 2021 02:59:39