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
nmeaGSA.h
Go to the documentation of this file.
1
28#pragma once
29
30#include "../nmeaMessage.h"
31
33{
34
36 class nmeaGSA : public nmeaMessage
37 {
38 public:
39 const char msgId[4] = "GSA";
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 = 19;
49
52 {"xxGSA", nmeaDataTypeString, 0},
53 {"opMode", nmeaDataTypeChar, 1},
54 {"navMode", nmeaDataTypeDigit, 2},
55 {"svid1", nmeaDataTypeNumeric, 3},
56 {"svid2", nmeaDataTypeNumeric, 4},
57 {"svid3", nmeaDataTypeNumeric, 5},
58 {"svid4", nmeaDataTypeNumeric, 6},
59 {"svid5", nmeaDataTypeNumeric, 7},
60 {"svid6", nmeaDataTypeNumeric, 8},
61 {"svid7", nmeaDataTypeNumeric, 9},
62 {"svid8", nmeaDataTypeNumeric, 10},
63 {"svid9", nmeaDataTypeNumeric, 11},
64 {"svid10", nmeaDataTypeNumeric, 12},
65 {"svid11", nmeaDataTypeNumeric, 13},
66 {"svid12", nmeaDataTypeNumeric, 14},
67 {"PDOP", nmeaDataTypeNumeric, 15},
68 {"HDOP", nmeaDataTypeNumeric, 16},
69 {"VDOP", nmeaDataTypeNumeric, 17},
70 {"systemId", nmeaDataTypeString, 18},
71 };
72
80 nmeaGSA(void)
81 {
83 (const void *)&nmeaFields);
84 }
85 };
86
88
89} // namespace SparkFun_Iridium_9604
The NMEA GSA message: GNSS DOP and active satellites.
Definition: nmeaGSA.h:37
nmeaGSA(void)
Construct a new nmeaGSA object and register it with the NMEA message registry.
Definition: nmeaGSA.h:80
const uint8_t messageLength
The maximum message length (bytes).
Definition: nmeaGSA.h:46
const nmeaField nmeaFields[numFields]
The message fields, by name.
Definition: nmeaGSA.h:51
const uint8_t supportedVersions
Reserved for future use.
Definition: nmeaGSA.h:41
const char msgId[4]
The message identifier.
Definition: nmeaGSA.h:39
static const uint8_t numFields
The number of fields.
Definition: nmeaGSA.h:48
const uint8_t numCallbackCopies
The number of copies stored for the callback.
Definition: nmeaGSA.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_GSA_MAX_LENGTH
The maximum length of the NMEA GSA message (bytes).
Definition: nmeaMessage.h:40
@ nmeaDataTypeChar
A single ASCII character: e.g. N S E W M.
Definition: nmeaMessage.h:69
@ nmeaDataTypeDigit
A single ASCII digit: 0-9.
Definition: nmeaMessage.h:70
@ 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