#include <time.h>
Data Structures | |
| struct | _GPS_irep |
| An integer binary representation of the GPS data. More... | |
| struct | _GPS_latitude |
| Holds a latitude reading. More... | |
| struct | _GPS_longitude |
| Holds a longitude reading. More... | |
| struct | _GPS_pm_mbf |
| Symbolic layout of a GPS Position Message in Motorola Binary Format. More... | |
Defines | |
| #define | GPS_K_PM_MBF_SIZE (sizeof (GPS_pm_mbf)) |
| The size, in bytes of a GPS record. | |
Typedefs | |
| typedef enum _GPS_status | GPS_status |
| Typedef for the enum _GPS_status. | |
| typedef _GPS_pm_mbf | GPS_pm_mbf |
| Typedef for the struct _GPS_pm_mbf. | |
| typedef _GPS_latitude | GPS_latitude |
| Typedef for struct GPS_latitude. More... | |
| typedef _GPS_longitude | GPS_longitude |
| Typedef for struct _GPS_longitude. More... | |
| typedef enum _GPS_fix_mode | GPS_fix_mode |
| Typedef for enum _GPS_fix_mode. More... | |
| typedef enum _GPS_fix_type | GPS_fix_type |
| Typedef for enum _GPS_fix_type. More... | |
| typedef _GPS_irep | GPS_irep |
| Typedef for struct _GPS_irep. More... | |
Enumerations | |
| enum | _GPS_status { GPS_C_STATUS_ERR_CHECKSUM = -5, GPS_C_STATUS_ERR_POSTAMBLE = -4, GPS_C_STATUS_ERR_PREAMBLE = -3, GPS_C_STATUS_ERR_TOO_SHORT = -2, GPS_C_STATUS_ERR_IO = -1, GPS_C_STATUS_OKAY = 0 } |
| The status codes returned by the GPS facility. More... | |
| enum | _GPS_fix_mode { GPS_K_FIX_MODE_AUTONOMOUS = 0, GPS_K_FIX_TYPE_DIFFERENTIAL = 1 } |
| The fix modes. More... | |
| enum | _GPS_fix_type { GPS_K_FIX_TYPE_NONE = 0, GPS_K_FIX_TYPE_1D = 1, GPS_K_FIX_TYPE_2D = 2, GPS_K_FIX_TYPE_PROPOGATE = 3 } |
| The fix types. More... | |
Functions | |
| int | GPS_open (const char *dev_name) |
| Opens a file descriptor to the GPS device. More... | |
| int | GPS_init (int fd) |
| Initializes the GPS device. More... | |
| int | GPS_rate_set (int fd, int rate) |
| Sets the update frequency. More... | |
| int | GPS_read (int fd, unsigned char buf[GPS_K_PM_MBF_SIZE]) |
| Reads the GPS message. More... | |
| GPS_status | GPS_verify (const unsigned char buf[GPS_K_PM_MBF_SIZE]) |
| Performs rudimentary checks on the GPS record. More... | |
| int | GPS_checksum_verify (const unsigned char buf[GPS_K_PM_MBF_SIZE]) |
| Verifies the checksum for the GPS record. More... | |
| time_t | GPS_utc_get (const unsigned char buf[GPS_K_PM_MBF_SIZE]) |
| Converts a position message in Motorola Binary Format to a UTC time. The precision is seconds. More... | |
|
|
Typedef for enum _GPS_fix_mode.
These enumerate the various fix modes. |
|
|
Typedef for enum _GPS_fix_type.
These enumerate the various fix types. |
|
|
Typedef for struct _GPS_irep.
This structue is designed to hold all the information present in a GPS ASCII record without without losing any accuracy and without using any floating point representations. Care is taken to 4-byte align the quantities. |
|
|
Typedef for struct GPS_latitude.
This structure is designed to hold all the information present in a GPS latitude reading without using any accuracy (for instance by translating minutes to decimal fractions of a degree) or using a floating point representation. |
|
|
Typedef for struct _GPS_longitude.
This structure is designed to hold all the information present in a GPS longitude reading without losing any accuracy (for instance by translating minutes to decimal fractions of a degree) or using a floating point representation. |
|
|
The fix modes.
|
|
|
The fix types.
|
|
|
The status codes returned by the GPS facility.
|
|
|
Verifies the checksum for the GPS record.
|
|
|
Initializes the GPS device.
|
|
|
Opens a file descriptor to the GPS device.
|
|
||||||||||||
|
Sets the update frequency.
|
|
||||||||||||
|
Reads the GPS message.
|
|
|
Converts a position message in Motorola Binary Format to a UTC time. The precision is seconds.
|
|
|
Performs rudimentary checks on the GPS record.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001