SparkFun Iridium 9604  v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
Loading...
Searching...
No Matches
nmeaGBS.h
Go to the documentation of this file.
1
25#pragma once
26
27#include "../nmeaMessage.h"
28
30{
31
33 class nmeaGBS : public nmeaMessage
34 {
35 public:
36 const char msgId[4] = "GBS";
37
38 const uint8_t supportedVersions = 1;
39
40 const uint8_t numCallbackCopies = 1;
41
42 // NMEA defines a maximum length of 82 characters including the $ and CR LF
44
45 static const uint8_t numFields = 11;
46
49 {"xxGBS", nmeaDataTypeString, 0},
50 {"time", nmeaDataTypeTime, 1},
51 {"errLat", nmeaDataTypeNumeric, 2},
52 {"errLon", nmeaDataTypeNumeric, 3},
53 {"errAlt", nmeaDataTypeNumeric, 4},
54 {"svid", nmeaDataTypeNumeric, 5},
55 {"prob", nmeaDataTypeNumeric, 6},
56 {"bias", nmeaDataTypeNumeric, 7},
57 {"stddev", nmeaDataTypeNumeric, 8},
58 {"systemId", nmeaDataTypeString, 9},
59 {"signalId", nmeaDataTypeString, 10},
60 };
61
69 nmeaGBS(void)
70 {
72 (const void *)&nmeaFields);
73 }
74 };
75
77
78} // namespace SparkFun_Iridium_9604
The NMEA GBS message: GNSS satellite fault detection.
Definition: nmeaGBS.h:34
static const uint8_t numFields
The number of fields.
Definition: nmeaGBS.h:45
const uint8_t supportedVersions
Reserved for future use.
Definition: nmeaGBS.h:38
nmeaGBS(void)
Construct a new nmeaGBS object and register it with the NMEA message registry.
Definition: nmeaGBS.h:69
const uint8_t numCallbackCopies
The number of copies stored for the callback.
Definition: nmeaGBS.h:40
const nmeaField nmeaFields[numFields]
The message fields, by name.
Definition: nmeaGBS.h:48
const char msgId[4]
The message identifier.
Definition: nmeaGBS.h:36
const uint8_t messageLength
The maximum message length (bytes).
Definition: nmeaGBS.h:43
The base class for the NMEA messages. Each message stores its latest copy and a ring buffer of copies...
Definition: nmeaMessage.h:88
void addNMEA(const char *msgId, uint8_t messageLength, uint8_t numCallbackCopies, uint8_t numFields, const void *nmeaFields, const void *blockFields=nullptr, uint8_t numBlockFields=0, uint8_t numHeaderFields=0, uint8_t maxNumBlocks=0)
Register this message's identity, field table and metadata with the base class.
Definition: nmeaMessage.h:482
Definition: nmeaMessage.h:30
const uint8_t NMEA_GBS_MAX_LENGTH
The maximum length of the NMEA GBS message (bytes).
Definition: nmeaMessage.h:35
@ nmeaDataTypeTime
Time in the format HHMMSS. Could have a variable number of decimal places: HHMMSS....
Definition: nmeaMessage.h:66
@ nmeaDataTypeString
An array of ASCII char.
Definition: nmeaMessage.h:65
@ nmeaDataTypeNumeric
A numeric: could be integer or floating point; could be negative.
Definition: nmeaMessage.h:71
#define nmeaRegisterMessage(kMessage)
Declare a file-scope static builder that self-registers an NMEA message class.
Definition: nmeaMessageRegistry.h:113
One entry per field in the message payload.
Definition: nmeaMessage.h:94