diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-22 23:10:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-22 23:10:08 +0000 |
commit | a450f4ae94b6c266f8062c2a9544479aecda1ac3 (patch) | |
tree | d80bdc1460c4f6cbce84d65bce991fbdc40f91f6 /gps.h | |
parent | 0b87f38c11d786a3ebeddeac536ea3e62ad31998 (diff) | |
download | gpsd-a450f4ae94b6c266f8062c2a9544479aecda1ac3.tar.gz |
Fully support AIS type 22 and 23 messages. All regression tests pass.
Codebase splints clean.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -746,7 +746,7 @@ struct ais_t //uint spare; spare bit(s) */ uint channel_a; /* Channel A number */ uint channel_b; /* Channel B number */ - uint mode; /* transmit/receive mode */ + uint txrx; /* transmit/receive mode */ bool power; /* high-power flag */ #define AIS_CHANNEL_LATLON_SCALE 600.0 int ne_lon; /* NE corner longitude */ @@ -758,6 +758,21 @@ struct ais_t bool band_b; /* fix 1.5kHz band for channel B */ uint zonesize; /* size of transitional zone */ } type22; + /* Type 23 - Group Assignment Command */ + struct { + //uint spare; spare bit(s) */ + int ne_lon; /* NE corner longitude */ + int ne_lat; /* NE corner latitude */ + int sw_lon; /* SW corner longitude */ + int sw_lat; /* SW corner latitude */ + uint stationtype; /* station type code */ + uint shiptype; /* ship type code */ + //uint spare2; spare bit(s) */ + uint txrx; /* transmit-enable code */ + uint interval; /* report interval */ + uint quiet; /* quiet time */ + //uint spare3; spare bit(s) */ + } type23; /* Type 24 - Class B CS Static Data Report */ struct { char shipname[AIS_SHIPNAME_MAXLEN+1]; /* vessel name */ |