18#define GPS_PUBX_SILENCE \
19 "$PUBX,40,GLL,0,0,0,0,0,0*5C\r\n$PUBX,40,RMC,0,0,0,0,0,0*47\r\n$PUBX,40," \
20 "GSA,0,0,0,0,0,0*4E\r\n$PUBX,40,GSV,0,0,0,0,0,0*59\r\n$PUBX,40,GGA,0,0,0,0," \
21 "0,0*5A\r\n$PUBX,40,VTG,0,0,0,0,0,0*5E\r\n$PUBX,40,GSV,0,0,0,0,0,0*59\r\n"
23#define GPS_PUBX_POLL "$PUBX,00*33\r\n"
25#define SAM_M10Q_PUBX_POSITION_FIELD_COUNT 22
26#define SAM_M10Q_PUBX_POSITION_TOKEN 0
27#define SAM_M10Q_PUBX_POSITION_ID 1
28#define SAM_M10Q_PUBX_POSITION_TIME 2
29#define SAM_M10Q_PUBX_POSITION_LAT 3
30#define SAM_M10Q_PUBX_POSITION_NS 4
31#define SAM_M10Q_PUBX_POSITION_LONG 5
32#define SAM_M10Q_PUBX_POSITION_EW 6
33#define SAM_M10Q_PUBX_POSITION_NAV_STAT 8
50typedef struct SAM_M10Q {
54 void (*message)(
struct SAM_M10Q *,
char *);
55 void (*setBaud)(
struct SAM_M10Q *gps, uint32_t baud);
56 void (*pollPUBX)(
struct SAM_M10Q *gps);
57 bool (*parsePUBX)(
struct SAM_M10Q *gps, uint8_t *bytes,
SAM_M10Q_Data *data);
bool SAM_M10Q_parsePUBX(SAM_M10Q_t *gps, uint8_t *bytes, SAM_M10Q_Data *data)
void SAM_M10Q_setBaud(SAM_M10Q_t *gps, uint32_t baud)
void SAM_M10Q_pollPUBX(SAM_M10Q_t *gps)
bool SAM_M10Q_init(SAM_M10Q_t *gps, UART_t *uart, uint32_t baud)
Struct definition for UART interface.