#include <interface.h>
Public Member Functions | |
Frame () | |
Frame (const Header &h, unsigned char l=0) | |
bool | isValid () const |
Public Attributes | |
boost::array< unsigned char, 8 > | data |
array for 8 data bytes with bounds checking | |
unsigned char | dlc |
len of data |
reprentation of a CAN frame
Definition at line 56 of file interface.h.
can::Frame::Frame | ( | ) | [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 71 of file interface.h.
can::Frame::Frame | ( | const Header & | h, |
unsigned char | l = 0 |
||
) | [inline] |
Definition at line 72 of file interface.h.
bool can::Frame::isValid | ( | ) | const [inline] |
check if frame header and length are valid
Reimplemented from can::Header.
Definition at line 61 of file interface.h.
boost::array<unsigned char, 8> can::Frame::data |
array for 8 data bytes with bounds checking
Definition at line 57 of file interface.h.
unsigned char can::Frame::dlc |
len of data
Definition at line 58 of file interface.h.