| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #pragma once
- #include <furi.h>
- #include <gui/gui.h>
- #include <notification/notification_messages.h>
- #include <power/power_service/power.h>
- #include "eth_worker.h"
- #include "eth_troubleshooter_icons.h"
- typedef enum {
- DRAW_ALL,
- DRAW_ONLY_TEXT,
- DRAW_ONLY_PICTURES,
- TOTAL_DRAW_MODES = 3,
- } DrawMode;
- typedef enum {
- PROCESS_INIT,
- PROCESS_DHCP,
- PROCESS_STATIC,
- PROCESS_PING,
- PROCESS_RESET,
- } DrawProcess;
- typedef enum {
- CURSOR_CHOOSE_PROCESS,
- CURSOR_CLICK_PROCESS,
- CURSOR_INSIDE_PROCESS,
- CURSOR_EXIT_ICON,
- CURSOR_EXIT,
- } CursorPosition;
- struct EthTroubleshooterApp {
- Gui* gui;
- ViewPort* view_port;
- FuriMessageQueue* event_queue;
- NotificationApp* notifications;
- EthWorker* eth_worker;
- Power* power;
- PowerInfo info;
- DrawMode draw_mode;
- DrawProcess draw_process;
- CursorPosition cursor_position;
- };
- typedef struct EthTroubleshooterApp EthTroubleshooterApp;
|