#include <interface.h>
Public Types | |
typedef unsigned char | value_type |
Public Member Functions | |
value_type * | c_array () |
const value_type * | c_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) |
representation of a CAN frame
Definition at line 56 of file interface.h.
typedef unsigned char can::Frame::value_type |
Definition at line 57 of file interface.h.
|
inline |
constructor with default parameters
[in] | i | CAN id, defaults to 0 |
[in] | l | number of data bytes, defaults to 0 |
[in] | extended | uses 29 bit identifier, defaults to false |
[in] | rtr | is rtr frame, defaults to false |
Definition at line 72 of file interface.h.
|
inline |
Definition at line 73 of file interface.h.
|
inline |
Definition at line 75 of file interface.h.
|
inline |
Definition at line 76 of file interface.h.
|
inline |
check if frame header and length are valid
Definition at line 62 of file interface.h.
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.