nidas v1.2.3
|
Public Member Functions | |
ublox () | |
~ublox () | |
int | parseRunstring (int argc, char **argv) |
int | run () throw () |
void | write_smbus (const ublox_pkt &pkt) throw (n_u::IOException) |
void | write_smbus (const string &str) throw (n_u::IOException) |
void | write_rdwr (const ublox_pkt &pkt) throw (n_u::IOException) |
void | write_rdwr (const string &str) throw (n_u::IOException) |
void | read_rdwr_simple (string &str) throw (n_u::IOException) |
void | read_rdwr_simple2 (string &str) throw (n_u::IOException) |
void | read_rdwr (string &str) throw (n_u::IOException) |
string | read_smbus () throw (n_u::IOException) |
int | read_byte () throw (n_u::IOException) |
int | read_byte_data (unsigned char reg) throw (n_u::IOException) |
void | write_byte (unsigned char b) throw (n_u::IOException) |
void | write_byte_data (unsigned char b, unsigned char reg) throw (n_u::IOException) |
void | reset () throw (n_u::IOException) |
void | config_port () throw (n_u::IOException) |
void | set_rate (int rate) throw (n_u::IOException) |
void | config_ubx () throw (n_u::IOException) |
void | config_nmea (enum NMEA_ID id, bool enable) throw (n_u::IOException) |
void | config_nmea (const string &, bool enable) throw (n_u::IOException) |
Send a "$PUBX,40,..." proprietory message to enable/disable NMEA messages. | |
void | config_nmea_all_targets (enum NMEA_ID id, bool enable) throw (n_u::IOException) |
Static Public Member Functions | |
static int | usage (const char *argv0) |
static string | nmea_cksum (const string &msg) |
Private Attributes | |
string | progname |
string | _name |
unsigned short | _addr |
int | _fd |
map< string, enum NMEA_ID > | _nmea_map |
vector< string > | _enable_msgs |
vector< string > | _disable_msgs |
bool | _readback |
ublox::ublox | ( | ) |
ublox::~ublox | ( | ) |
References _fd.
void ublox::config_nmea | ( | const string & | msg, | |||
bool | enable ) | |||||
throw | ( | n_u::IOException ) |
Send a "$PUBX,40,..." proprietory message to enable/disable NMEA messages.
void ublox::config_nmea | ( | enum NMEA_ID | id, | |||
bool | enable ) | |||||
throw | ( | n_u::IOException ) |
References USECS_PER_SEC.
Referenced by run().
void ublox::config_nmea_all_targets | ( | enum NMEA_ID | id, | |||
bool | enable ) | |||||
throw | ( | n_u::IOException ) |
References USECS_PER_SEC.
void ublox::config_port | ( | ) | ||||
throw | ( | n_u::IOException ) |
UBX payload packets.
References ublox_pkt::cksum(), ublox_pkt::payload(), read_smbus(), USECS_PER_SEC, and write_smbus().
void ublox::config_ubx | ( | ) | ||||
throw | ( | n_u::IOException ) |
References nmea_cksum(), and write_rdwr().
|
static |
Referenced by config_ubx().
int ublox::parseRunstring | ( | int | argc, |
char ** | argv ) |
References _addr, _disable_msgs, _enable_msgs, _name, _readback, progname, and usage().
int ublox::read_byte | ( | ) | ||||
throw | ( | n_u::IOException ) |
Referenced by read_smbus().
int ublox::read_byte_data | ( | unsigned char | reg | ) | ||
throw | ( | n_u::IOException ) |
Referenced by read_smbus().
void ublox::read_rdwr | ( | string & | str | ) | ||
throw | ( | n_u::IOException ) |
References buffer, len, and len_swab().
Referenced by run().
void ublox::read_rdwr_simple | ( | string & | str | ) | ||
throw | ( | n_u::IOException ) |
References buffer.
void ublox::read_rdwr_simple2 | ( | string & | str | ) | ||
throw | ( | n_u::IOException ) |
References buffer.
string ublox::read_smbus | ( | ) | ||||
throw | ( | n_u::IOException ) |
References len, read_byte(), and read_byte_data().
Referenced by config_port(), and run().
void ublox::reset | ( | ) | ||||
throw | ( | n_u::IOException ) |
References HOTSTART, and write_smbus().
int ublox::run | ( | ) | ||||
throw | ( | ) |
References _addr, _disable_msgs, _enable_msgs, _fd, _name, _readback, config_nmea(), MSECS_PER_SEC, read_rdwr(), read_smbus(), set_rate(), and USECS_PER_SEC.
Referenced by main().
void ublox::set_rate | ( | int | rate | ) | ||
throw | ( | n_u::IOException ) |
|
static |
Referenced by parseRunstring().
void ublox::write_byte | ( | unsigned char | b | ) | ||
throw | ( | n_u::IOException ) |
void ublox::write_byte_data | ( | unsigned char | b, | |||
unsigned char | reg ) | |||||
throw | ( | n_u::IOException ) |
void ublox::write_rdwr | ( | const string & | str | ) | ||
throw | ( | n_u::IOException ) |
void ublox::write_rdwr | ( | const ublox_pkt & | pkt | ) | ||
throw | ( | n_u::IOException ) |
Referenced by config_ubx().
void ublox::write_smbus | ( | const string & | str | ) | ||
throw | ( | n_u::IOException ) |
void ublox::write_smbus | ( | const ublox_pkt & | pkt | ) | ||
throw | ( | n_u::IOException ) |
Referenced by config_port(), and reset().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by read_byte(), run(), and ~ublox().
|
private |
Referenced by parseRunstring(), read_byte(), and run().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by parseRunstring().