|
- #pragma once
-
- #include <Arduino.h>
-
- namespace debug {
-
- enum class GPSTRACKER_DEBUG_COMMAND : uint8_t {
- NONE,
- RUN,
- ONCE,
- RAM,
- BATTERY,
- GPS_ON,
- GPS_OFF,
- GPS_GET,
- GPS_SET,
- RTC_GET,
- RTC_SET,
- EEPROM_GET_CONFIG,
- EEPROM_RESET_CONFIG,
- EEPROM_GET_CONTENT,
- EEPROM_GET_LAST_ENTRY,
- EEPROM_GET_ENTRIES,
- EEPROM_ADD_ENTRY,
- EEPROM_BACKUP_ENTRIES,
- NOTIFY_FAILURES,
- CLEAR_ALERTS,
- SLEEP_DEEP
- };
-
- int freeRam();
- void displayFreeRam();
-
- GPSTRACKER_DEBUG_COMMAND menu(uint16_t timeout);
-
- void getAndDisplayBattery();
- void getAndDisplayGpsPosition();
- void setFakeGpsPosition();
-
- void getAndDisplayRtcTime();
- void setRtcTime();
-
- void getAndDisplaySleepTimes();
-
- void getAndDisplayEepromConfig();
- void getAndDisplayEepromContent();
- void getAndDisplayEepromPositions();
- void getAndDisplayEepromLastPosition();
- void addLastPositionToEeprom();
-
- void notifyFailures();
- void clearAlerts();
- }
|