#include <gps.h>
Inheritance diagram for gps::GpsRs232:


Public Member Functions | |
| GpsRs232 (const char *ttyname) | |
| Builds a GPS with serial interface. | |
| ~GpsRs232 (void) | |
| Destroys a GPS with serial interface. | |
Protected Member Functions | |
| virtual int | write (const char *buf, int n) |
| Writes data to the serial channel. | |
| virtual int | read (char *buf, int n) |
| Reads data from the channel. | |
Classes | |
| class | Error |
| Generic GPS serial error. More... | |
| class | OpenError |
| GPS serial channel open error. More... | |
| class | ReadError |
| GPS serial read error. More... | |
| class | WriteError |
| GPS serial write error. More... | |
| gps::GpsRs232::GpsRs232 | ( | const char * | ttyname | ) |
Builds a GPS with serial interface.
| ttyname | name of a tty device |
| virtual int gps::GpsRs232::write | ( | const char * | buf, | |
| int | n | |||
| ) | [protected, virtual] |
Writes data to the serial channel.
| buf | data to write | |
| n | number of bytes to write |
Implements gps::Gps.
| virtual int gps::GpsRs232::read | ( | char * | buf, | |
| int | n | |||
| ) | [protected, virtual] |
Reads data from the channel.
| buf | data to data read | |
| n | size of data buffer |
Implements gps::Gps.
1.5.2