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
nmeaGLL.h
Go to the documentation of this file.
1
23#pragma once
24
25#include "../nmeaMessage.h"
26
28{
29
31 class nmeaGLL : public nmeaMessage
32 {
33 public:
34 const char msgId[4] = "GLL";
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 = 8;
44
47 {"xxGLL", nmeaDataTypeString, 0},
48 {"lat", nmeaDataTypeDDMM, 1},
49 {"NS", nmeaDataTypeChar, 2},
50 {"lon", nmeaDataTypeDDDMM, 3},
51 {"EW", nmeaDataTypeChar, 4},
52 {"time", nmeaDataTypeTime, 5},
53 {"status", nmeaDataTypeChar, 6},
54 {"posMode", nmeaDataTypeChar, 7},
55 };
56
64 nmeaGLL(void)
65 {
67 (const void *)&nmeaFields);
68 }
69 };
70
72
73} // namespace SparkFun_Iridium_9604
The NMEA GLL message: Latitude and longitude, with time of position fix and status.
Definition: nmeaGLL.h:32
const uint8_t numCallbackCopies
The number of copies stored for the callback.
Definition: nmeaGLL.h:38
nmeaGLL(void)
Construct a new nmeaGLL object and register it with the NMEA message registry.
Definition: nmeaGLL.h:64
const uint8_t messageLength
The maximum message length (bytes).
Definition: nmeaGLL.h:41
static const uint8_t numFields
The number of fields.
Definition: nmeaGLL.h:43
const uint8_t supportedVersions
Reserved for future use.
Definition: nmeaGLL.h:36
const nmeaField nmeaFields[numFields]
The message fields, by name.
Definition: nmeaGLL.h:46
const char msgId[4]
The message identifier.
Definition: nmeaGLL.h:34
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
@ 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
@ 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
@ 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_GLL_MAX_LENGTH
The maximum length of the NMEA GLL message (bytes).
Definition: nmeaMessage.h:37
#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