ublox_gps::Gps Class Reference
#include <gps.h>
List of all members.
Public Member Functions |
void | close () |
template<typename ConfigT > |
bool | configure (const ConfigT &message, bool wait=true) |
bool | configure () |
bool | enableSBAS (bool onoff) |
| Gps () |
template<> |
void | initialize (boost::asio::serial_port &serial_port, boost::asio::io_service &io_service) |
void | initialize (const boost::shared_ptr< Worker > &worker) |
template<typename StreamT > |
void | initialize (StreamT &stream, boost::asio::io_service &io_service) |
bool | isConfigured () const |
bool | isInitialized () const |
bool | poll (uint8_t class_id, uint8_t message_id, const std::vector< uint8_t > &payload=std::vector< uint8_t >()) |
template<typename ConfigT > |
bool | poll (ConfigT &message, const boost::posix_time::time_duration &timeout=default_timeout_) |
template<typename T > |
bool | read (T &message, const boost::posix_time::time_duration &timeout=default_timeout_) |
bool | setBaudrate (unsigned int baudrate) |
bool | setRate (uint8_t class_id, uint8_t message_id, unsigned int rate) |
template<typename T > |
Callbacks::iterator | subscribe (typename CallbackHandler_< T >::Callback callback) |
template<typename T > |
Callbacks::iterator | subscribe (typename CallbackHandler_< T >::Callback callback, unsigned int rate) |
void | waitForAcknowledge (const boost::posix_time::time_duration &timeout) |
virtual | ~Gps () |
Private Types |
enum | { WAIT,
ACK,
NACK
} |
Private Member Functions |
void | readCallback (unsigned char *data, std::size_t &size) |
Private Attributes |
enum ublox_gps::Gps:: { ... } | acknowledge_ |
unsigned int | baudrate_ |
boost::mutex | callback_mutex_ |
Callbacks | callbacks_ |
bool | configured_ |
boost::shared_ptr< Worker > | worker_ |
Static Private Attributes |
static
boost::posix_time::time_duration | default_timeout_ |
Detailed Description
Definition at line 42 of file gps.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 76 of file gps.h.
Constructor & Destructor Documentation
ublox_gps::Gps::~Gps |
( |
|
) |
[virtual] |
Member Function Documentation
void ublox_gps::Gps::close |
( |
|
) |
|
template<typename ConfigT >
bool ublox_gps::Gps::configure |
( |
const ConfigT & |
message, |
|
|
bool |
wait = true | |
|
) |
| | [inline] |
bool ublox_gps::Gps::configure |
( |
|
) |
|
bool ublox_gps::Gps::enableSBAS |
( |
bool |
onoff |
) |
|
void ublox_gps::Gps::initialize |
( |
boost::asio::serial_port & |
serial_port, |
|
|
boost::asio::io_service & |
io_service | |
|
) |
| | [inline] |
void ublox_gps::Gps::initialize |
( |
const boost::shared_ptr< Worker > & |
worker |
) |
|
template<typename StreamT >
void ublox_gps::Gps::initialize |
( |
StreamT & |
stream, |
|
|
boost::asio::io_service & |
io_service | |
|
) |
| | [inline] |
Definition at line 85 of file gps.h.
bool ublox_gps::Gps::isConfigured |
( |
|
) |
const [inline] |
Definition at line 63 of file gps.h.
bool ublox_gps::Gps::isInitialized |
( |
|
) |
const [inline] |
Definition at line 62 of file gps.h.
bool ublox_gps::Gps::poll |
( |
uint8_t |
class_id, |
|
|
uint8_t |
message_id, |
|
|
const std::vector< uint8_t > & |
payload = std::vector<uint8_t>() | |
|
) |
| | |
template<typename ConfigT >
bool ublox_gps::Gps::poll |
( |
ConfigT & |
message, |
|
|
const boost::posix_time::time_duration & |
timeout = default_timeout_ | |
|
) |
| | [inline] |
template<typename T >
bool ublox_gps::Gps::read |
( |
T & |
message, |
|
|
const boost::posix_time::time_duration & |
timeout = default_timeout_ | |
|
) |
| | [inline] |
void ublox_gps::Gps::readCallback |
( |
unsigned char * |
data, |
|
|
std::size_t & |
size | |
|
) |
| | [private] |
bool ublox_gps::Gps::setBaudrate |
( |
unsigned int |
baudrate |
) |
|
bool ublox_gps::Gps::setRate |
( |
uint8_t |
class_id, |
|
|
uint8_t |
message_id, |
|
|
unsigned int |
rate | |
|
) |
| | |
template<typename T >
Callbacks::iterator ublox_gps::Gps::subscribe |
( |
typename CallbackHandler_< T >::Callback |
callback |
) |
[inline] |
template<typename T >
Callbacks::iterator ublox_gps::Gps::subscribe |
( |
typename CallbackHandler_< T >::Callback |
callback, |
|
|
unsigned int |
rate | |
|
) |
| | [inline] |
Definition at line 96 of file gps.h.
void ublox_gps::Gps::waitForAcknowledge |
( |
const boost::posix_time::time_duration & |
timeout |
) |
|
Member Data Documentation
Definition at line 77 of file gps.h.
Definition at line 81 of file gps.h.
Definition at line 80 of file gps.h.
Definition at line 75 of file gps.h.
Definition at line 78 of file gps.h.
Definition at line 74 of file gps.h.
The documentation for this class was generated from the following files: