diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-12-19 21:52:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-12-19 21:52:00 +0000 |
commit | a36372569f6b0fe380fdf5ee3f4c7ea6d1288822 (patch) | |
tree | b8ea744597d4e683ec1d6e86920f9bcab903b65f /gps.h | |
parent | 1967c06d5a1339d9bf4ac686334ad7f29bdf42b6 (diff) | |
download | gpsd-a36372569f6b0fe380fdf5ee3f4c7ea6d1288822.tar.gz |
Support for AIS type 25 and 26 messages.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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; }; }; |