summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-05-27 09:42:28 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-05-27 09:42:28 +0000
commit760ec24b07473e8bf7b5d1a8737026eebe1a7799 (patch)
tree1666d6f4ffbb3039bb5b90fe3930d4ed5d85d601 /gps.h
parente8aacd76fe11e08ab57370f27ccaee5f59bd7e9b (diff)
downloadgpsd-760ec24b07473e8bf7b5d1a8737026eebe1a7799.tar.gz
Add support for decoding AIS message type 10.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gps.h b/gps.h
index 9f810bac..5a6f0273 100644
--- a/gps.h
+++ b/gps.h
@@ -482,7 +482,7 @@ struct ais_t
bool raim; /* RAIM flag */
uint radio; /* radio status bits */
} type123;
- /* Type 4 - Base Station Report */
+ /* Type 4 - Base Station Report & Type 11 - UTC and Date Response */
struct {
uint year; /* UTC year */
#define AIS_YEAR_NOT_AVAILABLE 0
@@ -566,6 +566,12 @@ struct ais_t
bool raim; /* RAIM flag */
uint radio; /* radio status bits */
} type9;
+ /* Type 10 - UTC/Date Inquiry */
+ struct {
+ uint spare;
+ uint dest_mmsi; /* destination MMSI */
+ uint spare2;
+ } type10;
/* Type 12 - Safety-Related Message */
struct {
uint seqno; /* sequence number */