-
Notifications
You must be signed in to change notification settings - Fork 14
/
ble_spam.h
45 lines (36 loc) · 922 Bytes
/
ble_spam.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
#pragma once
#include <gui/view_dispatcher.h>
#include <gui/modules/byte_input.h>
#include <gui/modules/submenu.h>
#include <gui/modules/text_input.h>
#include <gui/modules/variable_item_list.h>
#include "scenes/_setup.h"
#include <notification/notification.h>
enum {
ViewMain,
ViewByteInput,
ViewSubmenu,
ViewTextInput,
ViewVariableItemList,
};
enum {
ConfigRandomMac,
ConfigExtraStart = ConfigRandomMac,
ConfigLedIndicator,
ConfigLockKeyboard,
};
typedef struct Attack Attack;
typedef struct {
Attack* attack;
uint8_t byte_store[3];
VariableItemListEnterCallback fallback_config_enter;
bool led_indicator;
bool lock_keyboard;
NotificationApp* notification;
ViewDispatcher* view_dispatcher;
SceneManager* scene_manager;
ByteInput* byte_input;
Submenu* submenu;
TextInput* text_input;
VariableItemList* variable_item_list;
} Ctx;