![]() |
SparkFun Iridium 9604
v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
|
The collection of NMEA message objects. More...
#include <nmeaMessageVector.h>
Public Member Functions | |
| nmeaMessageVector (void) | |
| Construct the vector and populate it with one instance of every registered NMEA message. More... | |
| ~nmeaMessageVector (void) | |
| Destroy the vector, deleting every message object it owns. More... | |
| nmeaMessage * | find (const char *msgId) |
| Find the registered message object for a given NMEA message identifier. More... | |
| nmeaMessage * | findByName (const char *msgId) |
| Find the registered message object by its name. Equivalent to find(). More... | |
| nmea_status_e | initStorage (const char *msgId) |
| Lazily allocate a registered message's raw payload storage. More... | |
| nmea_status_e | isURCEnabled (const char *msgId, bool *enabled) |
| Get whether the module has been told to output this message as a +UUGNMEA URC. More... | |
| nmea_status_e | setURCEnabled (const char *msgId, bool enabled) |
| Record whether the module has been told to output this message as a +UUGNMEA URC. More... | |
| nmea_status_e | isMemoryEnabled (const char *msgId, bool *enabled) |
| Get whether the module has been told to store this message in its internal (memory) buffer. More... | |
| nmea_status_e | setMemoryEnabled (const char *msgId, bool enabled) |
| Record whether the module has been told to store this message in its internal (memory) buffer. More... | |
| nmea_status_e | moduleQueried (const char *msgId, bool *queried) |
| Get whether fresh data has arrived for a registered message since it was last reported. More... | |
| nmea_status_e | setModuleQueried (const char *msgId, bool queried) |
| Set whether fresh data has arrived for a registered message since it was last reported. More... | |
| nmea_status_e | setCallback (const char *msgId, void(*callbackPtr)(nmeaCallbackDataCommon_t *)) |
| Register (or clear) the user callback function for a registered message. More... | |
| nmea_status_e | storePayload (const char *msgId, const uint8_t *payload, uint16_t len) |
| Copy a freshly-received (and already checksum-validated) NMEA sentence into a message's storage. More... | |
| nmea_status_e | extractValue (const char *msgId, const char *field, sfe_string_t &value) |
| Look up one named field of a registered message's live sentence. More... | |
| void | debugPrint (const char *message, bool important=false) |
| Print a debug message (no trailing newline), if debugging is enabled. More... | |
| void | debugPrint (int value, bool important=false) |
| Print a signed debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (int value, int printBase, bool important=false) |
| Print a signed debug value in a given base (e.g. HEX, DEC), if debugging is enabled. More... | |
| void | debugPrint (unsigned int value, bool important=false) |
| Print an unsigned debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (unsigned int value, int printBase, bool important=false) |
| Print an unsigned debug value in a given base (e.g. HEX, DEC), if debugging is enabled. More... | |
| void | debugPrint (long value, bool important=false) |
| Print a signed (long) debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (long value, int printBase, bool important=false) |
| Print a signed (long) debug value in a given base, if debugging is enabled. More... | |
| void | debugPrint (unsigned long value, bool important=false) |
| Print an unsigned (long) debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (unsigned long value, int printBase, bool important=false) |
| Print an unsigned (long) debug value in a given base, if debugging is enabled. More... | |
| void | debugPrintDouble (double value, int decimalPlaces, bool important=false) |
| Print a floating point debug value with the given number of decimal places, if debugging is enabled. More... | |
| void | debugPrintln (const char *message, bool important=false) |
| Print a debug message followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (int value, bool important=false) |
| Print a signed debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (int value, int printBase, bool important=false) |
| Print a signed debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned int value, bool important=false) |
| Print an unsigned debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned int value, int printBase, bool important=false) |
| Print an unsigned debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (long value, bool important=false) |
| Print a signed (long) debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (long value, int printBase, bool important=false) |
| Print a signed (long) debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned long value, bool important=false) |
| Print an unsigned (long) debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned long value, int printBase, bool important=false) |
| Print an unsigned (long) debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (void) |
| Print a blank debug line, if debugging is enabled and not in limited-debug mode. More... | |
| void | debugWrite (char c, bool important=false) |
| Write a single raw character to the debug port, if debugging is enabled. More... | |
| void | atDebugPrint (const char *message) |
| Echo raw AT traffic to the AT debug port, if AT debugging is enabled (enableAtDebugging). More... | |
| void | atDebugWrite (const char *buffer, size_t length) |
| Echo raw AT traffic (binary-safe) to the AT debug port, if AT debugging is enabled. More... | |
| void | atDebugWrite (char c) |
| Echo one raw AT character to the AT debug port, if AT debugging is enabled. More... | |
| bool | debugEnabled (void) const |
| true if debug messages are enabled. More... | |
| bool | atDebugEnabled (void) const |
| true if AT-traffic debug messages are enabled. More... | |
| void | copyDebugStateFrom (const SfeDebugPrint &other) |
| Copy debug state (output streams and enabled flags) from another SfeDebugPrint. More... | |
Public Attributes | |
| std::vector< nmeaMessage * > | nmeaMessageVectors |
| The NMEA message objects. More... | |
Protected Attributes | |
| SfePrint | _debugSerial |
| The stream to send debug messages to if enabled. More... | |
| bool | _printDebug = false |
| Flag to print the debug messages. More... | |
| bool | _printLimitedDebug = false |
| Flag to print limited (important only) debug messages. More... | |
| SfePrint | _debugAtSerial |
| The stream to echo the AT traffic to if enabled. More... | |
| bool | _printAtDebug = false |
| Flag to echo the AT traffic. More... | |
The collection of NMEA message objects.
|
inline |
Construct the vector and populate it with one instance of every registered NMEA message.
Asks nmeaMessageRegistry to build one instance of every message class that self-registered via nmeaRegisterMessage() in its own header.
|
inline |
Destroy the vector, deleting every message object it owns.
|
inlineinherited |
true if AT-traffic debug messages are enabled.
|
inherited |
Echo raw AT traffic to the AT debug port, if AT debugging is enabled (enableAtDebugging).
|
inherited |
Echo one raw AT character to the AT debug port, if AT debugging is enabled.
|
inherited |
Echo raw AT traffic (binary-safe) to the AT debug port, if AT debugging is enabled.
|
inlineinherited |
Copy debug state (output streams and enabled flags) from another SfeDebugPrint.
Lets DevIridium9604::enableDebugging()/disableDebugging() push its own state onto its separately-inherited member objects (nmeaMessages, urcHandlers) right after updating it.
| other | The SfeDebugPrint object whose debug state to copy. |
|
inlineinherited |
true if debug messages are enabled.
|
inherited |
Print a debug message (no trailing newline), if debugging is enabled.
|
inherited |
Print a signed debug value in decimal, if debugging is enabled.
|
inherited |
Print a signed debug value in a given base (e.g. HEX, DEC), if debugging is enabled.
|
inherited |
Print a signed (long) debug value in decimal, if debugging is enabled.
|
inherited |
Print a signed (long) debug value in a given base, if debugging is enabled.
|
inherited |
Print an unsigned debug value in decimal, if debugging is enabled.
|
inherited |
Print an unsigned debug value in a given base (e.g. HEX, DEC), if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in decimal, if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in a given base, if debugging is enabled.
|
inherited |
Print a floating point debug value with the given number of decimal places, if debugging is enabled.
|
inherited |
Print a debug message followed by a newline, if debugging is enabled.
|
inherited |
Print a signed debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print a signed debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print a signed (long) debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print a signed (long) debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print a blank debug line, if debugging is enabled and not in limited-debug mode.
|
inherited |
Write a single raw character to the debug port, if debugging is enabled.
|
inline |
Look up one named field of a registered message's live sentence.
| msgId | The NMEA message identifier to look up. |
| field | Name of the field to extract. |
| value | Out parameter: filled in with the field's text if found. |
|
inline |
Find the registered message object for a given NMEA message identifier.
| msgId | The 3-character NMEA message identifier to look up (e.g. "GGA"). |
|
inline |
Find the registered message object by its name. Equivalent to find().
|
inline |
Lazily allocate a registered message's raw payload storage.
| msgId | The NMEA message identifier to look up. |
|
inline |
Get whether the module has been told to store this message in its internal (memory) buffer.
|
inline |
Get whether the module has been told to output this message as a +UUGNMEA URC.
|
inline |
Get whether fresh data has arrived for a registered message since it was last reported.
| msgId | The NMEA message identifier to look up. |
| queried | Out parameter: filled in with the message's moduleQueried flag. |
|
inline |
Register (or clear) the user callback function for a registered message.
| msgId | The NMEA message identifier to look up. |
| callbackPtr | Function to call once fresh data is waiting for this message, or nullptr to clear any previously-registered callback. |
|
inline |
Record whether the module has been told to store this message in its internal (memory) buffer.
|
inline |
Set whether fresh data has arrived for a registered message since it was last reported.
|
inline |
Record whether the module has been told to output this message as a +UUGNMEA URC.
|
inline |
Copy a freshly-received (and already checksum-validated) NMEA sentence into a message's storage.
This is the live NMEA dispatch path - DevIridium9604::processNMEA() calls it. It mirrors the NMEA dispatch / ring-buffer logic in GNSS v4 DevUBLOXGNSS::process(): the sentence is copied into _storage (for polling with getNMEA() / getNmeaMessageField()) and, if a callback is registered, into the next free slot of the _callbackStorage ring buffer (for checkCallbacks()). For _numCallbackCopies <= 1 the newest sentence always overwrites the single slot; for multi-slot messages (GSV, GSA, GRS) a full ring drops the new sentence and keeps what is already buffered.
Unlike GNSS v4, the copy is always NULL-terminated: at most _messageLength - 1 bytes are copied.
| msgId | The NMEA message identifier (e.g. "GGA"). |
| payload | Pointer to the sentence, starting with '$'. |
| len | Number of bytes in the sentence. |
|
protectedinherited |
The stream to echo the AT traffic to if enabled.
|
protectedinherited |
The stream to send debug messages to if enabled.
|
protectedinherited |
Flag to echo the AT traffic.
|
protectedinherited |
Flag to print the debug messages.
|
protectedinherited |
Flag to print limited (important only) debug messages.
| std::vector<nmeaMessage *> SparkFun_Iridium_9604::nmeaMessageVector::nmeaMessageVectors |
The NMEA message objects.