ibeo::ibeo_message_header_t Class Reference

#include <ibeo_message_header.H>

List of all members.

Public Member Functions

 ibeo_message_header_t ()
 ibeo_message_header_t (ibeo_message_header_t const *msg)
unsigned decode (unsigned char const *buf, unsigned buf_size)
unsigned size_of_body (void) const
unsigned message_type (void) const
unsigned timestamp (void) const
unsigned char const * data_pointer (void)
bool valid (void) const

Static Public Member Functions

static unsigned skip_to_stx (unsigned char const *data_, unsigned size_)

Static Public Attributes

static unsigned const HEADER_MESSAGE_LENGTH = 16
static unsigned const STX = 0xAFFEC0C0
static unsigned const BIGENDIAN_OF_STX = 0xC0C0FEAF

Protected Attributes

bool m_valid
unsigned char const * m_data

Static Protected Attributes

static unsigned const SIZE_OFFSET = 4
static unsigned const DATA_TYPE_OFFSET = 8
static unsigned const TIMESTAMP_OFFSET = 12

Constructor & Destructor Documentation

ibeo_message_header_t::ibeo_message_header_t (  ) 
ibeo_message_header_t::ibeo_message_header_t ( ibeo_message_header_t const *  msg  ) 

Member Function Documentation

unsigned char const* ibeo::ibeo_message_header_t::data_pointer ( void   )  [inline]

References m_data.

unsigned ibeo_message_header_t::decode ( unsigned char const *  buf,
unsigned  buf_size 
)
unsigned ibeo::ibeo_message_header_t::message_type ( void   )  const [inline]
unsigned ibeo::ibeo_message_header_t::size_of_body ( void   )  const [inline]
unsigned ibeo_message_header_t::skip_to_stx ( unsigned char const *  data_,
unsigned  size_ 
) [static]

References STX.

Referenced by decode().

unsigned ibeo::ibeo_message_header_t::timestamp ( void   )  const [inline]
bool ibeo::ibeo_message_header_t::valid ( void   )  const [inline]

References m_valid.


Member Data Documentation

unsigned const ibeo::ibeo_message_header_t::BIGENDIAN_OF_STX = 0xC0C0FEAF [static]
unsigned const ibeo::ibeo_message_header_t::DATA_TYPE_OFFSET = 8 [static, protected]

Referenced by message_type().

Referenced by decode().

unsigned char const* ibeo::ibeo_message_header_t::m_data [protected]

Referenced by decode(), and valid().

unsigned const ibeo::ibeo_message_header_t::SIZE_OFFSET = 4 [static, protected]

Referenced by size_of_body().

unsigned const ibeo::ibeo_message_header_t::STX = 0xAFFEC0C0 [static]

Referenced by decode(), and skip_to_stx().

unsigned const ibeo::ibeo_message_header_t::TIMESTAMP_OFFSET = 12 [static, protected]

Referenced by timestamp().


The documentation for this class was generated from the following files:

Generated on Fri Apr 9 10:45:12 2010 for drivers by  doxygen 1.6.1