summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-12-19 21:52:00 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-12-19 21:52:00 +0000
commita36372569f6b0fe380fdf5ee3f4c7ea6d1288822 (patch)
treeb8ea744597d4e683ec1d6e86920f9bcab903b65f /gps.h
parent1967c06d5a1339d9bf4ac686334ad7f29bdf42b6 (diff)
downloadgpsd-a36372569f6b0fe380fdf5ee3f4c7ea6d1288822.tar.gz
Support for AIS type 25 and 26 messages.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index fb208a4c..1d2867cf 100644
--- a/gps.h
+++ b/gps.h
@@ -792,6 +792,27 @@ struct ais_t
} dim;
};
} type24;
+ /* Type 25 - Addressed Binary Message */
+ struct {
+ bool addressed; /* addressed-vs.broadcast flag */
+ bool structured; /* structured-binary flag */
+ uint dest_mmsi; /* destination MMSI */
+ uint app_id; /* Application ID */
+#define AIS_TYPE25_BINARY_MAX 128 /* Up to 128 bits */
+ size_t bitcount; /* bit count of the data */
+ char bitdata[(AIS_TYPE25_BINARY_MAX + 7) / 8];
+ } type25;
+ /* Type 26 - Addressed Binary Message */
+ struct {
+ bool addressed; /* addressed-vs.broadcast flag */
+ bool structured; /* structured-binary flag */
+ uint dest_mmsi; /* destination MMSI */
+ uint app_id; /* Application ID */
+#define AIS_TYPE26_BINARY_MAX 1004 /* Up to 128 bits */
+ size_t bitcount; /* bit count of the data */
+ char bitdata[(AIS_TYPE26_BINARY_MAX + 7) / 8];
+ uint radio; /* radio status bits */
+ } type26;
};
};