2 * Copyright © 2024 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19 #ifndef _AO_GPS_MOSAIC_H_
20 #define _AO_GPS_MOSAIC_H_
33 #define SBF_BLOCK_NUMBER(id) ((id) & 0x1fff)
34 #define SBF_BLOCK_REVISION(id) ((id) >> 13)
36 #define SBF_MEAS_EPOCH 4027
38 struct sbf_meas_epoch {
49 struct sbf_meas_epoch_channel_type1 {
64 struct sbf_meas_epoch_channel_type2 {
71 uint16_t codeoffsetlsb;
73 uint16_t doppleroffsetlsb;
91 #define SBF_PVT_GEODETIC 4007
93 struct sbf_pvt_geodetic {
112 uint16_t referenceid;
113 uint16_t meancorrage;
124 #define SBF_RECEIVER_TIME 5914
126 struct sbf_receiver_time {
139 #define MAX_SBF_DATA 1024
142 struct sbf_header header;
144 struct sbf_receiver_time receiver_time;
145 struct sbf_meas_epoch meas_epoch;
146 struct sbf_pvt_geodetic geodetic;
148 uint8_t data[MAX_SBF_DATA];
152 #endif /* _AO_GPS_MOSAIC_H_ */