#include <ibeo_message_header.H>
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 |
ibeo_message_header_t::ibeo_message_header_t | ( | ) |
ibeo_message_header_t::ibeo_message_header_t | ( | ibeo_message_header_t const * | msg | ) |
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 | |||
) |
References HEADER_MESSAGE_LENGTH, m_data, m_valid, skip_to_stx(), and STX.
unsigned ibeo::ibeo_message_header_t::message_type | ( | void | ) | const [inline] |
References DATA_TYPE_OFFSET, and m_data.
Referenced by cajun::ibeo_alasca_t::decode_message_body().
unsigned ibeo::ibeo_message_header_t::size_of_body | ( | void | ) | const [inline] |
References m_data, and SIZE_OFFSET.
Referenced by cajun::ibeo_alasca_t::decode_message_body().
unsigned ibeo_message_header_t::skip_to_stx | ( | unsigned char const * | data_, | |
unsigned | size_ | |||
) | [static] |
unsigned ibeo::ibeo_message_header_t::timestamp | ( | void | ) | const [inline] |
References m_data, and TIMESTAMP_OFFSET.
Referenced by cajun::ibeo_alasca_t::decode_message_body().
bool ibeo::ibeo_message_header_t::valid | ( | void | ) | const [inline] |
References m_valid.
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().
unsigned const ibeo::ibeo_message_header_t::HEADER_MESSAGE_LENGTH = 16 [static] |
Referenced by decode().
unsigned char const* ibeo::ibeo_message_header_t::m_data [protected] |
Referenced by data_pointer(), decode(), message_type(), size_of_body(), and timestamp().
bool ibeo::ibeo_message_header_t::m_valid [protected] |
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().