forked from karasevia/finik_eth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheth_troubleshooter_app.h
49 lines (40 loc) · 952 Bytes
/
eth_troubleshooter_app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#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;