GNSS receiver tools  1
Tools for use with GNSS receivers
UBX::Cfg::Msg Class Reference

#include <UBX_cfg.hh>

+ Inheritance diagram for UBX::Cfg::Msg:

Public Member Functions

 Msg (uint8_t m_cls, uint8_t m_id, uint8_t rates[6])
 Constructor for setting rates on all six ports. More...
 
 Msg (uint8_t m_cls, uint8_t m_id, uint8_t rate)
 Constructor for setting rate on current port. More...
 
 Msg (unsigned char *payload, Length len)
 Constructor from a binary buffer. More...
 
const uint8_t message_class (void) const
 
void set_message_class (uint8_t val)
 
const uint8_t message_id (void) const
 
void set_message_id (uint8_t val)
 
const bool is_current_port (void) const
 
const uint8_t rate (void) const
 
void set_rate (uint8_t r)
 
const uint8_t rate (PortID p) const
 
void set_rate (PortID p, uint8_t r)
 
- Public Member Functions inherited from UBX::Input_message
const Length message_length (void) const
 The total length of the message. More...
 
virtual void to_buf (unsigned char *buffer) const
 Write the message into a buffer. More...
 
- Public Member Functions inherited from UBX::Message
const Class_ID cls (void) const
 Getter method for the message class. More...
 
const uint8_t id (void) const
 Getter method for the message ID. More...
 
- Public Member Functions inherited from GNSS::Message
virtual ~Message ()
 Virtual destructor to force polymorphism. More...
 
template<typename T >
bool isa (void) const
 Check the type of an object. More...
 
template<typename T >
T * cast_as (void)
 Recast this object to another type. More...
 

Additional Inherited Members

- Public Types inherited from UBX::Input_message
typedef std::shared_ptr< Input_messageptr
 
- Public Types inherited from GNSS::Message
typedef std::shared_ptr< Messageptr
 
- Public Types inherited from UBX::Output_message
typedef std::shared_ptr< Output_messageptr
 
- Protected Member Functions inherited from UBX::Input_Output_message
 Input_Output_message (Class_ID cls, uint8_t id)
 Constructor from a message class and ID. More...
 
- Protected Member Functions inherited from UBX::Input_message
virtual const Length payload_length (void) const
 The length of the payload (not including message class/ID) More...
 
 Input_message (Class_ID cls, uint8_t id)
 Constructor from a message class and ID. More...
 
- Protected Member Functions inherited from UBX::Message
 Message (Class_ID cls, uint8_t id)
 Constructor. More...
 
- Protected Member Functions inherited from UBX::Output_message
 Output_message (Class_ID cls, uint8_t id)
 Constructor from a message class and ID. More...
 
- Protected Attributes inherited from UBX::Message
Class_ID _cls
 
uint8_t _id
 

Detailed Description

Definition at line 189 of file UBX_cfg.hh.

Constructor & Destructor Documentation

UBX::Cfg::Msg::Msg ( uint8_t  m_cls,
uint8_t  m_id,
uint8_t  rates[6] 
)
inline

Constructor for setting rates on all six ports.

Parameters
m_clsMessage class
m_idMessage ID
ratesRates array

Definition at line 204 of file UBX_cfg.hh.

UBX::Cfg::Msg::Msg ( uint8_t  m_cls,
uint8_t  m_id,
uint8_t  rate 
)
inline

Constructor for setting rate on current port.

Parameters
m_clsMessage class
m_idMessage ID
rateRate for current port

Definition at line 217 of file UBX_cfg.hh.

UBX::Cfg::Msg::Msg ( unsigned char *  payload,
Length  len 
)

Constructor from a binary buffer.

Definition at line 102 of file UBX_cfg.cc.

Member Function Documentation

const bool UBX::Cfg::Msg::is_current_port ( void  ) const
inline

Definition at line 229 of file UBX_cfg.hh.

const uint8_t UBX::Cfg::Msg::message_class ( void  ) const
inline

Definition at line 227 of file UBX_cfg.hh.

const uint8_t UBX::Cfg::Msg::message_id ( void  ) const
inline

Definition at line 228 of file UBX_cfg.hh.

const uint8_t UBX::Cfg::Msg::rate ( void  ) const
inline

Definition at line 231 of file UBX_cfg.hh.

const uint8_t UBX::Cfg::Msg::rate ( PortID  p) const
inline

Definition at line 234 of file UBX_cfg.hh.

void UBX::Cfg::Msg::set_message_class ( uint8_t  val)
inline

Definition at line 227 of file UBX_cfg.hh.

void UBX::Cfg::Msg::set_message_id ( uint8_t  val)
inline

Definition at line 228 of file UBX_cfg.hh.

void UBX::Cfg::Msg::set_rate ( uint8_t  r)
inline

Definition at line 232 of file UBX_cfg.hh.

void UBX::Cfg::Msg::set_rate ( PortID  p,
uint8_t  r 
)
inline

Definition at line 235 of file UBX_cfg.hh.


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