eth_troubleshooter_app.h 952 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include <furi.h>
  3. #include <gui/gui.h>
  4. #include <notification/notification_messages.h>
  5. #include <power/power_service/power.h>
  6. #include "eth_worker.h"
  7. #include "eth_troubleshooter_icons.h"
  8. typedef enum {
  9. DRAW_ALL,
  10. DRAW_ONLY_TEXT,
  11. DRAW_ONLY_PICTURES,
  12. TOTAL_DRAW_MODES = 3,
  13. } DrawMode;
  14. typedef enum {
  15. PROCESS_INIT,
  16. PROCESS_DHCP,
  17. PROCESS_STATIC,
  18. PROCESS_PING,
  19. PROCESS_RESET,
  20. } DrawProcess;
  21. typedef enum {
  22. CURSOR_CHOOSE_PROCESS,
  23. CURSOR_CLICK_PROCESS,
  24. CURSOR_INSIDE_PROCESS,
  25. CURSOR_EXIT_ICON,
  26. CURSOR_EXIT,
  27. } CursorPosition;
  28. struct EthTroubleshooterApp {
  29. Gui* gui;
  30. ViewPort* view_port;
  31. FuriMessageQueue* event_queue;
  32. NotificationApp* notifications;
  33. EthWorker* eth_worker;
  34. Power* power;
  35. PowerInfo info;
  36. DrawMode draw_mode;
  37. DrawProcess draw_process;
  38. CursorPosition cursor_position;
  39. };
  40. typedef struct EthTroubleshooterApp EthTroubleshooterApp;