您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

60 行
969 B

  1. #pragma once
  2. #include <Arduino.h>
  3. #include "Config.h"
  4. #include "Logging.h"
  5. #include "Core.h"
  6. #include "Hardware.h"
  7. #include "Gps.h"
  8. #include "Rtc.h"
  9. namespace debug {
  10. enum class GPSTRACKER_DEBUG_COMMAND : uint8_t {
  11. NONE,
  12. RUN,
  13. ONCE,
  14. RAM,
  15. BATTERY,
  16. GPS_ON,
  17. GPS_OFF,
  18. GPS_GET,
  19. GPS_SET,
  20. RTC_GET,
  21. RTC_SET,
  22. EEPROM_GET_CONFIG,
  23. EEPROM_RESET_CONFIG,
  24. EEPROM_GET_CONTENT,
  25. EEPROM_GET_LAST_ENTRY,
  26. EEPROM_GET_ENTRIES,
  27. EEPROM_ADD_ENTRY,
  28. EEPROM_BACKUP_ENTRIES,
  29. SLEEP,
  30. SLEEP_DEEP
  31. };
  32. int freeRam();
  33. void displayFreeRam();
  34. GPSTRACKER_DEBUG_COMMAND menu(uint16_t timeout);
  35. void getAndDisplayBattery();
  36. void getAndDisplayGpsPosition();
  37. void setFakeGpsPosition();
  38. void getAndDisplayRtcTime();
  39. void setRtcTime();
  40. void getAndDisplaySleepTimes();
  41. void getAndDisplayEepromConfig();
  42. void getAndDisplayEepromContent();
  43. void getAndDisplayEepromPositions();
  44. void getAndDisplayEepromLastPosition();
  45. void addLastPositionToEeprom();
  46. }