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
nmeaMessage.h
Go to the documentation of this file.
1
24#pragma once
25
26#include "sfe_platform.h"
27#include <string.h>
28
30{
31
32// Maximum NMEA message lengths, including the $ but excluding the CR LF.
33// NMEA defines a maximum length of 82 characters including the $ and CR LF. These lengths have headroom.
34const uint8_t NMEA_DTM_MAX_LENGTH = 70;
35const uint8_t NMEA_GBS_MAX_LENGTH = 90;
36const uint8_t NMEA_GGA_MAX_LENGTH = 100;
37const uint8_t NMEA_GLL_MAX_LENGTH = 70;
38const uint8_t NMEA_GNS_MAX_LENGTH = 100;
39const uint8_t NMEA_GRS_MAX_LENGTH = 100;
40const uint8_t NMEA_GSA_MAX_LENGTH = 90;
41const uint8_t NMEA_GST_MAX_LENGTH = 100;
42const uint8_t NMEA_GSV_MAX_LENGTH = 100;
43const uint8_t NMEA_RMC_MAX_LENGTH = 100;
44const uint8_t NMEA_VLW_MAX_LENGTH = 70;
45const uint8_t NMEA_VTG_MAX_LENGTH = 70;
46const uint8_t NMEA_ZDA_MAX_LENGTH = 50;
47const uint8_t NMEA_MAX_LENGTH = 100;
48
52typedef enum
53{
58
59
63typedef enum
64{
73
74class nmeaMessage;
75
79typedef struct
80{
81 char msgId[4];
83 // getNmeaMessageField() to read it.
85
88{
89public:
93 typedef struct
94 {
95 const char fieldName[20];
96 const uint8_t nmeaDataType;
97 const uint8_t fieldNumber;
98 } nmeaField;
99
107 nmeaMessage(void) {}
108
116 virtual ~nmeaMessage(void)
117 {
118 if (_storage != nullptr)
119 delete[] _storage;
120 if (_callbackStorage != nullptr)
121 delete[] _callbackStorage;
122 }
123
124 // Does this object represent this message?
131 bool amI(const char *msgId) const
132 {
133 return (strcmp(_msgId, msgId) == 0);
134 }
135
136 // Lazily allocate _storage - only when the message is actually used. This is how "delete the
137 // header, save the RAM" (GNSS v4 AGENTS.md) is meant to work for a message that is never instantiated
138 // at all - see nmeaMessageVector.h.
150 bool initStorage(void)
151 {
152 if (_storage == nullptr)
153 {
154 _storage = new uint8_t[_messageLength];
155 if (_storage != nullptr)
156 memset(_storage, 0, _messageLength);
157 }
158 return (_storage != nullptr);
159 }
160
171 {
172 if (_callbackStorage == nullptr)
173 {
175 if (_callbackStorage != nullptr)
177 }
178 return (_callbackStorage != nullptr);
179 }
180
181 // Look up one field of this message, by name, in the given byte buffer (either this object's
182 // own _storage for a live/polled read, or its _callbackStorage for a callback read.
183 // Everything is returned as String. It's just easier that way...
184 // 'fieldsOverride'/'numFieldsOverride' let a caller search a field table other than this
185 // object's own _fields/_numFields - specifically, a repeated block's own field table (see
186 // _blockFields/_numBlockFields below and DevIridium9604::getNmeaMessageBlockField()/
187 // getNmeaMessageBlockFieldCallback() in Iridium_9604_GNSS.cpp), for a message such as NMEA GSV that
188 // has a header (described by _fields, fieldNumber < _numHeaderFields) plus a variable number
189 // of identically-shaped repeated blocks (each described by _blockFields) plus a footer (also
190 // described by _fields, at fieldNumber >= _numHeaderFields). 'blockIndex' selects which block
191 // a block-field lookup reads; it's ignored unless 'fieldsOverride' is given. Every existing
192 // caller omits all three and gets exactly today's behavior. See the GNSS v4 AGENTS.md "Adding support for
193 // NMEA GSV messages".
218 bool extractFieldFrom(const uint8_t *buffer, const char *fieldName, sfe_string_t &value,
219 const void *fieldsOverride = nullptr, uint8_t numFieldsOverride = 0,
220 uint16_t blockIndex = 0) const
221 {
222 if (buffer == nullptr)
223 return false;
224
225 if (*buffer != '$') // NMEA messages always start with $
226 {
227 value = ""; // Clear value just in case
228 return false;
229 }
230
231 // A block-field lookup with an illegal blockIndex always fails - see the GNSS v4 AGENTS.md: "If block
232 // is illegal ( >= maxNumBlocks), getNmeaMessageBlockFieldCallback should return an empty
233 // String." This is a cheap fast-path against the compile-time maximum; the actual
234 // per-sentence block count (which can be less than maxNumBlocks - e.g. the last sentence
235 // in a GSV group often has fewer than 4 satellites) is checked below too.
236 if ((fieldsOverride != nullptr) && (blockIndex >= _maxNumBlocks))
237 {
238 value = "";
239 return false;
240 }
241
242 // For a variable-length message (GSV), work out how many blocks THIS sentence actually
243 // has - needed both to bounds-check a block-field lookup against the real count (not just
244 // the compile-time max, so a caller can't accidentally read into the footer by asking for
245 // a block beyond what this specific sentence contains) and to locate a footer field's real
246 // position, since it comes after however many blocks are actually present (1..maxNumBlocks).
247 uint16_t actualBlockCount = 0;
248 if (_blockFields != nullptr)
249 {
250 uint16_t totalFields = 0;
251 for (int y = 1; y < (int)strlen((const char *)buffer); y++)
252 {
253 if ((buffer[y] == ',') || (buffer[y] == '*'))
254 totalFields++;
255 }
256 uint8_t numFooterFields = _numFields - _numHeaderFields;
257 if (totalFields < ((uint16_t)_numHeaderFields + numFooterFields))
258 {
259 value = ""; // Sentence too short to even hold the header + footer - malformed
260 return false;
261 }
262 actualBlockCount = (totalFields - _numHeaderFields - numFooterFields) / _numBlockFields;
263
264 if ((fieldsOverride != nullptr) && (blockIndex >= actualBlockCount))
265 {
266 // Within maxNumBlocks, but beyond what THIS sentence actually contains
267 value = "";
268 return false;
269 }
270 }
271
272 const nmeaField *fields = fieldsOverride ? (const nmeaField *)fieldsOverride : (const nmeaField *)_fields;
273 uint8_t numFieldsToSearch = fieldsOverride ? numFieldsOverride : _numFields;
274 for (uint8_t i = 0; i < numFieldsToSearch; i++)
275 {
276 if (strncmp(fields[i].fieldName, fieldName, sizeof(fields[i].fieldName)) != 0)
277 continue;
278
279 // Work out this field's REAL comma-delimited position in the sentence. For an
280 // ordinary fixed-shape message (_blockFields == nullptr) this is always just
281 // fields[i].fieldNumber, exactly as before. For a variable-length message like GSV,
282 // see the GNSS v4 AGENTS.md "Adding support for NMEA GSV messages" for the worked example this is
283 // checked against.
284 uint16_t trueFieldNumber = fields[i].fieldNumber;
285 if (_blockFields != nullptr)
286 {
287 if (fieldsOverride != nullptr)
288 {
289 // A block field (e.g. GSV's "svid") - real position is the header, plus every
290 // whole block before this one, plus this field's own position within the block.
291 trueFieldNumber = (uint16_t)_numHeaderFields + ((uint16_t)blockIndex * (uint16_t)_numBlockFields) + fields[i].fieldNumber;
292 }
293 else if (fields[i].fieldNumber >= _numHeaderFields)
294 {
295 // A footer field (e.g. GSV's "signalId") - real position is the header, plus
296 // every block actually present in this sentence, plus this field's own
297 // position past the header.
298 trueFieldNumber = (uint16_t)_numHeaderFields + (actualBlockCount * (uint16_t)_numBlockFields) + (fields[i].fieldNumber - _numHeaderFields);
299 }
300 // else: an ordinary header field (fieldNumber < _numHeaderFields) - trueFieldNumber is already correct
301 }
302
303 const uint8_t *fieldStart = buffer; // Points at the char just before the field data (the preceding delimiter, or '$' for field 0)
304 const uint8_t *fieldEnd = buffer + 1; // Point to the first char of the name
305
306 // Count the commas
307 int commaCount = 0;
308 int x;
309 const int bufferLength = (int)strlen((const char *)buffer); // Assumes sentence is null terminated
310 for (x = 1; x < bufferLength; x++)
311 {
312 if ((buffer[x] == ',') || (buffer[x] == '*')) // Treat * as a comma delimiter
313 {
314 fieldEnd = &buffer[x]; // fieldEnd is the current comma
315
316 // if commaCount matches trueFieldNumber then buffer[x] is the fieldEnd
317 if (commaCount == trueFieldNumber)
318 {
319 break; // fieldEnd found. We are done
320 }
321
322 commaCount++; // Increment the count
323 fieldStart = &buffer[x]; // Set fieldStart to this comma
324 }
325 }
326
327 // If x reached strlen(buffer), the field was not found
328 if (x == bufferLength)
329 {
330 value = ""; // Clear value just in case
331 return false;
332 }
333
334 // If fieldEnd is 0 or 1 more than fieldStart, the field is empty
335 if ((fieldEnd - fieldStart) <= 1)
336 {
337 value = ""; // Clear value just in case
338 return false;
339 }
340
341 switch (fields[i].nmeaDataType)
342 {
343 default:
344 value = "Unknown";
345 return false;
347 case nmeaDataTypeTime:
348 // Copy from the character after fieldStart
349 // to the character before fieldEnd
350 fieldStart++;
351 value = "";
352 while (fieldStart < fieldEnd)
353 {
354 value += (char)*fieldStart;
355 fieldStart++;
356 }
357 return true;
358 case nmeaDataTypeDDMM:
359 {
360 // Convert DDMM to degrees (double)
361
362 fieldStart++;
363 double field = (double)(*fieldStart++ - '0') * 10.0;
364 field += (double)(*fieldStart++ - '0') * 1.0;
365 field += (double)(*fieldStart++ - '0') / 6.0;
366 field += (double)(*fieldStart++ - '0') / 60.0;
367 int numDPs = 3; // One minute needs at least three decimal places
368 if (*fieldStart == '.') // Does it have a decimal point?
369 {
370 fieldStart++; // Skip over the decimal point
371 double multiplier = 1.0 / 600.0;
372 while (fieldStart < fieldEnd)
373 {
374 field += (double)(*fieldStart++ - '0') * multiplier;
375 multiplier /= 10.0;
376 numDPs++;
377 }
378 }
379 sfe_string_from_double(value, field, numDPs);
380 }
381 return true;
383 {
384 // Convert DDDMM to degrees (double)
385 fieldStart++;
386 double field = (double)(*fieldStart++ - '0') * 100.0;
387 field += (double)(*fieldStart++ - '0') * 10.0;
388 field += (double)(*fieldStart++ - '0') * 1.0;
389 field += (double)(*fieldStart++ - '0') / 6.0;
390 field += (double)(*fieldStart++ - '0') / 60.0;
391 int numDPs = 3; // One minute needs at least three decimal places
392 if (*fieldStart == '.') // Does it have a decimal point?
393 {
394 fieldStart++; // Skip over the decimal point
395 double multiplier = 1.0 / 600.0;
396 while (fieldStart < fieldEnd)
397 {
398 field += (double)(*fieldStart++ - '0') * multiplier;
399 multiplier /= 10.0;
400 numDPs++;
401 }
402 }
403 sfe_string_from_double(value, field, numDPs);
404 }
405 return true;
406 case nmeaDataTypeChar:
408 fieldStart++;
409 value = "";
410 value += (char)*fieldStart;
411 return true;
413 {
414 // Convert integer / floating point to double. Could be negative - e.g.
415 // nmeaDTM's alt (altitude offset) field.
416 fieldStart++;
417 bool isNegative = false;
418 if (*fieldStart == '-') // Handle a leading minus sign
419 {
420 isNegative = true;
421 fieldStart++;
422 }
423 double field = (double)(*fieldStart++ - '0');
424 while ((*fieldStart != '.') && (fieldStart < fieldEnd))
425 {
426 field *= 10.0;
427 field += (double)(*fieldStart++ - '0');
428 }
429 int numDPs = 0;
430 if ((*fieldStart == '.') && (fieldStart < fieldEnd))
431 {
432 fieldStart++; // Skip over the decimal point
433 double multiplier = 1.0 / 10.0;
434 while (fieldStart < fieldEnd)
435 {
436 field += (double)(*fieldStart++ - '0') * multiplier;
437 multiplier /= 10.0;
438 numDPs++;
439 }
440 }
441 if (isNegative)
442 field = -field;
443 sfe_string_from_double(value, field, numDPs);
444 }
445 return true;
446 }
447 }
448 value = ""; // Clear value just in case
449 return false; // Field name not found
450 }
451
452 // Called once, from the subclass's own constructor, to register its identity/metadata into
453 // the base class.
454 // 'blockFields'/'numBlockFields'/'numHeaderFields'/'maxNumBlocks' describe a variable-length
455 // message made of a fixed-size header (already described by 'nmeaFields' above, fieldNumber <
456 // numHeaderFields) followed by 1..'maxNumBlocks' identically-shaped repeated blocks, then
457 // optionally more 'nmeaFields' entries acting as a footer (fieldNumber >= numHeaderFields) -
458 // e.g. GSV's per-satellite blocks. They default to nullptr/0, so every existing message
459 // subclass (which passes exactly today's 6 arguments) is unaffected. See the GNSS v4 AGENTS.md "Adding
460 // support for NMEA GSV messages".
482 void addNMEA(const char *msgId, uint8_t messageLength, uint8_t numCallbackCopies, uint8_t numFields,
483 const void *nmeaFields,
484 const void *blockFields = nullptr, uint8_t numBlockFields = 0,
485 uint8_t numHeaderFields = 0, uint8_t maxNumBlocks = 0)
486 {
487 _msgId = msgId;
488 _messageLength = messageLength;
489 _numCallbackCopies = numCallbackCopies;
490 _numFields = numFields;
491 _fields = nmeaFields;
492 _blockFields = blockFields;
493 _numBlockFields = numBlockFields;
494 _numHeaderFields = numHeaderFields;
495 _maxNumBlocks = maxNumBlocks;
496 _storage = nullptr; // Only allocated when needed - see initStorage()
497 _callbackStorage = nullptr; // Only allocated when needed - see initCallbackStorage()
498 _callbackHead = 0;
499 _callbackTail = 0;
500 _callbackCount = 0;
502 _moduleQueried = false;
503 _callbackPtr = nullptr;
504 _urcEnabled = false;
505 _memoryEnabled = false;
506 }
507
508 const char *_msgId = nullptr;
509 uint8_t _messageLength = 0;
510 uint8_t _numCallbackCopies = 0;
511 uint8_t *_storage = nullptr;
512 uint8_t _numFields = 0;
513 // Has fresh data arrived since the last time it was reported? A single flag for the whole
514 // message, not a per-field bitmask - see the GNSS v4 AGENTS.md "moduleQueried".
515 bool _moduleQueried = false;
516 const void *_fields = nullptr;
517 // Variable-length repeated-block support (GSV's per-satellite blocks) - see the GNSS v4 AGENTS.md "Adding
518 // support for NMEA GSV messages". _blockFields is nullptr for every ordinary, fixed-shape
519 // message; GSV sets all four. Unlike ubxMessage's binary blocks, there's no fixed byte length
520 // per block here (NMEA is ASCII/comma-delimited) - extractFieldFrom() locates a block field's
521 // real comma position from _numHeaderFields/_numBlockFields/blockIndex instead of a byte offset.
522 const void *_blockFields = nullptr;
523 uint8_t _numBlockFields = 0;
524 uint8_t _numHeaderFields = 0;
525 uint8_t _maxNumBlocks = 0;
526 uint8_t *_callbackStorage = nullptr;
527 // Ring-buffer bookkeeping for _callbackStorage - mirrors ubxMessage's, see the GNSS v4 AGENTS.md "Adding
528 // support for RXM-SFRBX" and "Adding support for NMEA GSV messages". The write side (the NMEA
529 // dispatch block in DevIridium9604::processNMEA()) writes to _callbackHead and advances it; the read
530 // side (DevIridium9604::checkCallbacks()) reads from _callbackTail and advances it, draining
531 // oldest-first (FIFO) while _callbackCount > 0. For _numCallbackCopies <= 1 (every message
532 // except GSV) this degenerates to a single slot, both indices always 0 - unchanged from the
533 // original behavior.
534 uint8_t _callbackHead = 0;
535 uint8_t _callbackTail = 0;
536 uint8_t _callbackCount = 0;
537 uint8_t _callbackReadIndex = 0;
538 // Called by DevIridium9604::checkCallbacks() (via the generic registry walk) once fresh data is waiting
540 bool _urcEnabled = false;
541 bool _memoryEnabled = false;
542};
543
544} // namespace SparkFun_Iridium_9604
545
546#include "nmeaMessageRegistry.h" // Message self-registration
547
The base class for the NMEA messages. Each message stores its latest copy and a ring buffer of copies...
Definition: nmeaMessage.h:88
uint8_t _numCallbackCopies
Number of ring-buffer slots in _callbackStorage - 1 for most messages, 54 for GSV - see the GNSS v4 A...
Definition: nmeaMessage.h:510
void(* _callbackPtr)(nmeaCallbackDataCommon_t *)
The user callback.
Definition: nmeaMessage.h:539
uint8_t _numFields
Number of entries in _fields (header + footer fields only - excludes _numBlockFields)
Definition: nmeaMessage.h:512
uint8_t * _callbackStorage
Ring buffer of _numCallbackCopies slots, each _messageLength bytes - nullptr until initCallbackStorag...
Definition: nmeaMessage.h:526
bool initCallbackStorage(void)
Lazily allocate this message's callback ring-buffer storage (_callbackStorage), if not already done.
Definition: nmeaMessage.h:170
bool initStorage(void)
Lazily allocate this message's raw payload storage (_storage), if not already done.
Definition: nmeaMessage.h:150
uint8_t * _storage
Raw payload storage - nullptr until initStorage() is called.
Definition: nmeaMessage.h:511
bool _moduleQueried
true when fresh data has arrived. Cleared by getNMEA().
Definition: nmeaMessage.h:515
uint8_t _messageLength
The maximum message length in bytes. Messages could be less than this.
Definition: nmeaMessage.h:509
nmeaMessage(void)
Construct a new, unregistered nmeaMessage object.
Definition: nmeaMessage.h:107
uint8_t _callbackTail
Next fresh slot checkCallbacks() will read and dispatch.
Definition: nmeaMessage.h:535
bool _urcEnabled
Has the module been told to output this message as a +UUGNMEA URC? (AT+UGNMEA <output> bit 1)
Definition: nmeaMessage.h:540
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
uint8_t _callbackReadIndex
Set by checkCallbacks() to _callbackTail immediately before each callback firing, so getNmeaMessageFi...
Definition: nmeaMessage.h:537
uint8_t _callbackHead
Next free slot the write side will write into.
Definition: nmeaMessage.h:534
bool _memoryEnabled
Has the module been told to store this message in its internal buffer? (AT+UGNMEA <output> bit 0)
Definition: nmeaMessage.h:541
const void * _fields
Points at the subclass's own, permanently-lived nmeaFields[] table.
Definition: nmeaMessage.h:516
bool extractFieldFrom(const uint8_t *buffer, const char *fieldName, sfe_string_t &value, const void *fieldsOverride=nullptr, uint8_t numFieldsOverride=0, uint16_t blockIndex=0) const
Look up one field of this message, by name, in a given NMEA sentence buffer.
Definition: nmeaMessage.h:218
uint8_t _numHeaderFields
Number of header fields before the first repeated block (also the field-table position of the first f...
Definition: nmeaMessage.h:524
const char * _msgId
The message ID, e.g. "GGA".
Definition: nmeaMessage.h:508
uint8_t _numBlockFields
Number of entries in _blockFields.
Definition: nmeaMessage.h:523
uint8_t _callbackCount
How many slots currently hold fresh, undelivered data (replaces the old single _callbackDataValid boo...
Definition: nmeaMessage.h:536
virtual ~nmeaMessage(void)
Destroy this nmeaMessage, freeing any lazily-allocated storage.
Definition: nmeaMessage.h:116
const void * _blockFields
Points at the subclass's own nmeaBlockFields[] table; nullptr => no repeated blocks.
Definition: nmeaMessage.h:522
bool amI(const char *msgId) const
Check whether this message object represents the given NMEA message identifier.
Definition: nmeaMessage.h:131
uint8_t _maxNumBlocks
Upper bound on the number of repeated blocks (e.g. GSV's 4)
Definition: nmeaMessage.h:525
Definition: nmeaMessage.h:30
const uint8_t NMEA_GST_MAX_LENGTH
The maximum length of the NMEA GST message (bytes).
Definition: nmeaMessage.h:41
const uint8_t NMEA_GBS_MAX_LENGTH
The maximum length of the NMEA GBS message (bytes).
Definition: nmeaMessage.h:35
const uint8_t NMEA_MAX_LENGTH
The largest of the above. The URC parser uses this.
Definition: nmeaMessage.h:47
const uint8_t NMEA_GRS_MAX_LENGTH
The maximum length of the NMEA GRS message (bytes).
Definition: nmeaMessage.h:39
const uint8_t NMEA_VTG_MAX_LENGTH
The maximum length of the NMEA VTG message (bytes).
Definition: nmeaMessage.h:45
const uint8_t NMEA_GSA_MAX_LENGTH
The maximum length of the NMEA GSA message (bytes).
Definition: nmeaMessage.h:40
const uint8_t NMEA_ZDA_MAX_LENGTH
The maximum length of the NMEA ZDA message (bytes).
Definition: nmeaMessage.h:46
const uint8_t NMEA_VLW_MAX_LENGTH
The maximum length of the NMEA VLW message (bytes).
Definition: nmeaMessage.h:44
const uint8_t NMEA_GSV_MAX_LENGTH
Variable length - up to 4 satellite blocks.
Definition: nmeaMessage.h:42
nmeaFieldFormats_t
NMEA message field formats.
Definition: nmeaMessage.h:64
@ nmeaDataTypeChar
A single ASCII character: e.g. N S E W M.
Definition: nmeaMessage.h:69
@ nmeaDataTypeDDDMM
Degrees Minutes for Longitude: 3 digit degrees, 2 digit minutes. Could have a variable number of deci...
Definition: nmeaMessage.h:68
@ 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
@ nmeaDataTypeDDMM
Degrees Minutes for Latitude: 2 digit degrees, 2 digit minutes. Could have a variable number of decim...
Definition: nmeaMessage.h:67
const uint8_t NMEA_RMC_MAX_LENGTH
The maximum length of the NMEA RMC message (bytes).
Definition: nmeaMessage.h:43
const uint8_t NMEA_DTM_MAX_LENGTH
The maximum length of the NMEA DTM message (bytes).
Definition: nmeaMessage.h:34
const uint8_t NMEA_GNS_MAX_LENGTH
The maximum length of the NMEA GNS message (bytes).
Definition: nmeaMessage.h:38
const uint8_t NMEA_GGA_MAX_LENGTH
The maximum length of the NMEA GGA message (bytes).
Definition: nmeaMessage.h:36
nmea_status_e
Status codes returned by the nmeaMessageVector methods (replaces GNSS v4's sfe_ublox_status_e)
Definition: nmeaMessage.h:53
@ NMEA_STATUS_SUCCESS
Definition: nmeaMessage.h:54
@ NMEA_STATUS_INVALID_ARG
Definition: nmeaMessage.h:55
@ NMEA_STATUS_MEM_ERR
Definition: nmeaMessage.h:56
const uint8_t NMEA_GLL_MAX_LENGTH
The maximum length of the NMEA GLL message (bytes).
Definition: nmeaMessage.h:37
Forward declaration - see nmeaCallbackDataCommon_t below.
Definition: nmeaMessage.h:80
nmeaMessage * messagePtr
Opaque - do not dereference directly. Use getNmeaMessagePtr() /.
Definition: nmeaMessage.h:82
One entry per field in the message payload.
Definition: nmeaMessage.h:94
const uint8_t fieldNumber
Field number, starting from the Message ID.
Definition: nmeaMessage.h:97
const uint8_t nmeaDataType
8-bit type tag, from nmeaFieldFormats_t - see above
Definition: nmeaMessage.h:96