diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2008-06-30 21:12:15 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2008-06-30 21:12:15 +0000 |
commit | f13358016c59bc91b5b0753554ccc1d535160d62 (patch) | |
tree | 27adb56efdb73676f3f4ba2be50d82a6478b0ddc /gps.h | |
parent | 3e65578fd5a3a5ae334bd4916a92ca4d3dab98cd (diff) | |
download | gpsd-f13358016c59bc91b5b0753554ccc1d535160d62.tar.gz |
Add a CRC-24Q implementation. It's wrong, but it's a start.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -94,7 +94,7 @@ struct gps_fix_t { /* * A nominally 30-bit word (24 bits of data, 6 bits of parity) * used both in the GPS downlink protocol described in IS-GPS-200 - * and in the format for DGPS corrections used in RTCM-104. + * and in the format for DGPS corrections used in RTCM-104v2. */ typedef /*@unsignedintegraltype@*/ uint32_t isgps30bits_t; #endif /* S_SPLINT_S */ @@ -208,7 +208,8 @@ struct rtcm3_extended_rtk { struct rtcm3_t { /* header contents */ - unsigned type; /* RTCM message type */ + unsigned type; /* RTCM 3.x message type */ + unsigned length; /* payload length, exclusive of checksum */ /* message data in decoded form */ union { @@ -346,6 +347,7 @@ struct gps_data_t { #define ERROR_SET 0x08000000u #define CYCLE_START_SET 0x10000000u #define RTCM2_SET 0x20000000u +#define RTCM3_SET 0x40000000u #define FIX_SET (TIME_SET|MODE_SET|TIMERR_SET|LATLON_SET|HERR_SET|ALTITUDE_SET|VERR_SET|TRACK_SET|TRACKERR_SET|SPEED_SET|SPEEDERR_SET|CLIMB_SET|CLIMBERR_SET) double online; /* NZ if GPS is on line, 0 if not. * @@ -410,7 +412,8 @@ struct gps_data_t { unsigned int driver_mode; /* whether driver is in native mode or not */ /* RTCM-104 data */ - struct rtcm2_t rtcm; + struct rtcm2_t rtcm2; + struct rtcm3_t rtcm3; /* device list */ int ndevices; /* count of available devices */ |