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
nmeaGST.h
Go to the documentation of this file.
1
23#pragma once
24
25#include "../nmeaMessage.h"
26
28{
29
31 class nmeaGST : public nmeaMessage
32 {
33 public:
34 const char msgId[4] = "GST";
35
36 const uint8_t supportedVersions = 1;
37
38 const uint8_t numCallbackCopies = 1;
39
40 // NMEA defines a maximum length of 82 characters including the $ and CR LF
42
43 static const uint8_t numFields = 9;
44
47 {"xxGST", nmeaDataTypeString, 0},
48 {"time", nmeaDataTypeTime, 1},
49 {"rangeRms", nmeaDataTypeNumeric, 2},
50 {"stdMajor", nmeaDataTypeNumeric, 3},
51 {"stdMinor", nmeaDataTypeNumeric, 4},
52 {"orient", nmeaDataTypeNumeric, 5},
53 {"stdLat", nmeaDataTypeNumeric, 6},
54 {"stdLon", nmeaDataTypeNumeric, 7},
55 {"stdAlt", nmeaDataTypeNumeric, 8},
56 };
57
65 nmeaGST(void)
66 {
68 (const void *)&nmeaFields);
69 }
70 };
71
73
74} // namespace SparkFun_Iridium_9604
The NMEA GST message: GNSS pseudorange error statistics.
Definition: nmeaGST.h:32
const uint8_t supportedVersions
Reserved for future use.
Definition: nmeaGST.h:36
const nmeaField nmeaFields[numFields]
The message fields, by name.
Definition: nmeaGST.h:46
const char msgId[4]
The message identifier.
Definition: nmeaGST.h:34
static const uint8_t numFields
The number of fields.
Definition: nmeaGST.h:43
nmeaGST(void)
Construct a new nmeaGST object and register it with the NMEA message registry.
Definition: nmeaGST.h:65
const uint8_t numCallbackCopies
The number of copies stored for the callback.
Definition: nmeaGST.h:38
const uint8_t messageLength
The maximum message length (bytes).
Definition: nmeaGST.h:41
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_GST_MAX_LENGTH
The maximum length of the NMEA GST message (bytes).
Definition: nmeaMessage.h:41
@ 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