You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SparkFun_u-blox_GNSS_Arduino_Library.h
+8-2
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,9 @@
57
57
#include"u-blox_structs.h"
58
58
59
59
// Uncomment the next line (or add SFE_UBLOX_REDUCED_PROG_MEM as a compiler directive) to reduce the amount of program memory used by the library
60
-
//#define SFE_UBLOX_REDUCED_PROG_MEM // Uncommenting this line will delete the minor debug messages to save memory
60
+
//#define SFE_UBLOX_REDUCED_PROG_MEM // Uncommenting this line will delete the minor debug messages and disable auto-NMEA support to save memory
61
61
62
-
// The code just about fills the program memory on the ATmega328P (Arduino Uno), so let's delete the minor debug messages anyway
62
+
// The code just about fills the program memory on the ATmega328P (Arduino Uno), so let's delete the minor debug messages and disable auto-NMEA support anyway
voidsetProcessNMEAMask(uint32_t messages = SFE_UBLOX_FILTER_NMEA_ALL); // Control which NMEA messages are passed to processNMEA. Default to passing ALL messages
1432
1432
uint32_tgetProcessNMEAMask(); // Return which NMEA messages are passed to processNMEA
1433
1433
1434
+
#ifndef SFE_UBLOX_REDUCED_PROG_MEM
1434
1435
// Support for "auto" storage of NMEA messages
1435
1436
uint8_tgetLatestNMEAGPGGA(NMEA_GGA_data_t *data); // Return the most recent GPGGA: 0 = no data, 1 = stale data, 2 = fresh data
1436
1437
boolsetNMEAGPGGAcallback(void (*callbackPointer)(NMEA_GGA_data_t)); // Enable a callback on the arrival of a GPGGA message
@@ -1456,6 +1457,7 @@ class SFE_UBLOX_GNSS
1456
1457
uint8_tgetLatestNMEAGNZDA(NMEA_ZDA_data_t *data); // Return the most recent GNZDA: 0 = no data, 1 = stale data, 2 = fresh data
1457
1458
boolsetNMEAGNZDAcallback(void (*callbackPointer)(NMEA_ZDA_data_t)); // Enable a callback on the arrival of a GNZDA message
1458
1459
boolsetNMEAGNZDAcallbackPtr(void (*callbackPointerPtr)(NMEA_ZDA_data_t *)); // Enable a callback on the arrival of a GNZDA message
1460
+
#endif
1459
1461
1460
1462
// Functions to extract signed and unsigned 8/16/32-bit data from a ubxPacket
1461
1463
// From v2.0: These are public. The user can call these to extract data from custom packets
@@ -1511,6 +1513,7 @@ class SFE_UBLOX_GNSS
1511
1513
UBX_MGA_ACK_DATA0_t *packetUBXMGAACK = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1512
1514
UBX_MGA_DBD_t *packetUBXMGADBD = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1513
1515
1516
+
#ifndef SFE_UBLOX_REDUCED_PROG_MEM
1514
1517
NMEA_GPGGA_t *storageNMEAGPGGA = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1515
1518
NMEA_GNGGA_t *storageNMEAGNGGA = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1516
1519
NMEA_GPVTG_t *storageNMEAGPVTG = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
@@ -1519,6 +1522,7 @@ class SFE_UBLOX_GNSS
1519
1522
NMEA_GNRMC_t *storageNMEAGNRMC = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1520
1523
NMEA_GPZDA_t *storageNMEAGPZDA = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1521
1524
NMEA_GNZDA_t *storageNMEAGNZDA = NULL; // Pointer to struct. RAM will be allocated for this if/when necessary
1525
+
#endif
1522
1526
1523
1527
uint16_t rtcmFrameCounter = 0; // Tracks the type of incoming byte inside RTCM frame
1524
1528
@@ -1602,6 +1606,7 @@ class SFE_UBLOX_GNSS
1602
1606
boolinitPacketUBXMGAACK(); // Allocate RAM for packetUBXMGAACK and initialize it
1603
1607
boolinitPacketUBXMGADBD(); // Allocate RAM for packetUBXMGADBD and initialize it
1604
1608
1609
+
#ifndef SFE_UBLOX_REDUCED_PROG_MEM
1605
1610
boolinitStorageNMEAGPGGA(); // Allocate RAM for incoming NMEA GPGGA messages and initialize it
1606
1611
boolinitStorageNMEAGNGGA(); // Allocate RAM for incoming NMEA GNGGA messages and initialize it
1607
1612
boolinitStorageNMEAGPVTG(); // Allocate RAM for incoming NMEA GPVTG messages and initialize it
@@ -1610,6 +1615,7 @@ class SFE_UBLOX_GNSS
1610
1615
boolinitStorageNMEAGNRMC(); // Allocate RAM for incoming NMEA GNRMC messages and initialize it
1611
1616
boolinitStorageNMEAGPZDA(); // Allocate RAM for incoming NMEA GPZDA messages and initialize it
1612
1617
boolinitStorageNMEAGNZDA(); // Allocate RAM for incoming NMEA GNZDA messages and initialize it
1618
+
#endif
1613
1619
1614
1620
// Variables
1615
1621
TwoWire *_i2cPort; // The generic connection to user's chosen I2C hardware
0 commit comments