Public Types | Public Member Functions | Public Attributes | List of all members
can::Frame Struct Reference

#include <interface.h>

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

Public Types

typedef unsigned char value_type
 

Public Member Functions

value_typec_array ()
 
const value_typec_array () const
 
 Frame ()
 
 Frame (const Header &h, unsigned char l=0)
 
bool isValid () const
 
- 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
 

Public Attributes

boost::array< value_type, 8 > data
 array for 8 data bytes with bounds checking More...
 
unsigned char dlc
 len of data More...
 
- 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...
 

Additional Inherited Members

- 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

representation of a CAN frame

Definition at line 56 of file interface.h.

Member Typedef Documentation

typedef unsigned char can::Frame::value_type

Definition at line 57 of file interface.h.

Constructor & Destructor Documentation

can::Frame::Frame ( )
inline

constructor with default parameters

Parameters
[in]iCAN id, defaults to 0
[in]lnumber of data bytes, defaults to 0
[in]extendeduses 29 bit identifier, defaults to false
[in]rtris rtr frame, defaults to false

Definition at line 72 of file interface.h.

can::Frame::Frame ( const Header h,
unsigned char  l = 0 
)
inline

Definition at line 73 of file interface.h.

Member Function Documentation

value_type* can::Frame::c_array ( )
inline

Definition at line 75 of file interface.h.

const value_type* can::Frame::c_array ( ) const
inline

Definition at line 76 of file interface.h.

bool can::Frame::isValid ( ) const
inline

check if frame header and length are valid

Definition at line 62 of file interface.h.

Member Data Documentation

boost::array<value_type, 8> can::Frame::data

array for 8 data bytes with bounds checking

Definition at line 58 of file interface.h.

unsigned char can::Frame::dlc

len of data

Definition at line 59 of file interface.h.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Sat May 4 2019 02:40:41