25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.1 KiB

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