forked from toniebox-reverse-engineering/hackiebox_cfw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigStructures.h
57 lines (46 loc) · 898 Bytes
/
ConfigStructures.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
50
51
52
53
54
55
56
57
#ifndef ConfigStructures_h
#define ConfigStructures_h
#define CONFIG_ACTIVE_VERSION 7
typedef struct {
uint32_t voltageFactor;
uint32_t _deprecated_voltageChargerFactor;
uint16_t lowAdc;
uint16_t criticalAdc;
uint8_t sleepMinutes;
} ConfigBattery;
typedef struct {
uint16_t longPressMs;
uint16_t veryLongPressMs;
} ConfigButtonEars;
typedef struct {
uint8_t a;
uint8_t b;
uint8_t c;
uint8_t d;
} ConfigIP;
typedef struct {
char ssid[32];
char password[64];
bool dhcp;
ConfigIP ip;
ConfigIP subnet;
ConfigIP dns;
char hostname[32];
} ConfigWifi;
typedef struct {
bool sdLog;
} ConfigLog;
typedef struct {
bool autodump;
bool swd;
uint8_t watchdogSeconds;
} ConfigMisc;
typedef struct {
uint8_t version;
ConfigBattery battery;
ConfigButtonEars buttonEars;
ConfigWifi wifi;
ConfigLog log;
ConfigMisc misc;
} ConfigStruct;
#endif