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
nmeaGRS.h
Go to the documentation of this file.
1
28#pragma once
29
30#include "../nmeaMessage.h"
31
33{
34
36 class nmeaGRS : public nmeaMessage
37 {
38 public:
39 const char msgId[4] = "GRS";
40
41 const uint8_t supportedVersions = 1;
42
43 const uint8_t numCallbackCopies = 6;
44
45 // NMEA defines a maximum length of 82 characters including the $ and CR LF
47
48 static const uint8_t numFields = 17;
49
52 {"xxGRS", nmeaDataTypeString, 0},
53 {"time", nmeaDataTypeTime, 1},
54 {"mode", nmeaDataTypeDigit, 2},
55 {"residual1", nmeaDataTypeNumeric, 3},
56 {"residual2", nmeaDataTypeNumeric, 4},
57 {"residual3", nmeaDataTypeNumeric, 5},
58 {"residual4", nmeaDataTypeNumeric, 6},
59 {"residual5", nmeaDataTypeNumeric, 7},
60 {"residual6", nmeaDataTypeNumeric, 8},
61 {"residual7", nmeaDataTypeNumeric, 9},
62 {"residual8", nmeaDataTypeNumeric, 10},
63 {"residual9", nmeaDataTypeNumeric, 11},
64 {"residual10", nmeaDataTypeNumeric, 12},
65 {"residual11", nmeaDataTypeNumeric, 13},
66 {"residual12", nmeaDataTypeNumeric, 14},
67 {"systemId", nmeaDataTypeString, 15},
68 {"signalId", nmeaDataTypeString, 16},
69 };
70
78 nmeaGRS(void)
79 {
81 (const void *)&nmeaFields);
82 }
83 };
84
86
87} // namespace SparkFun_Iridium_9604
The NMEA GRS message: GNSS range residuals.
Definition: nmeaGRS.h:37
const nmeaField nmeaFields[numFields]
The message fields, by name.
Definition: nmeaGRS.h:51
const uint8_t numCallbackCopies
The number of copies stored for the callback.
Definition: nmeaGRS.h:43
const uint8_t messageLength
The maximum message length (bytes).
Definition: nmeaGRS.h:46
nmeaGRS(void)
Construct a new nmeaGRS object and register it with the NMEA message registry.
Definition: nmeaGRS.h:78
static const uint8_t numFields
The number of fields.
Definition: nmeaGRS.h:48
const uint8_t supportedVersions
Reserved for future use.
Definition: nmeaGRS.h:41
const char msgId[4]
The message identifier.
Definition: nmeaGRS.h:39
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_GRS_MAX_LENGTH
The maximum length of the NMEA GRS message (bytes).
Definition: nmeaMessage.h:39
@ nmeaDataTypeDigit
A single ASCII digit: 0-9.
Definition: nmeaMessage.h:70
@ 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