-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmenu.h
51 lines (34 loc) · 803 Bytes
/
submenu.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
/***
* Noptel LRF rangefinder sampler for the Flipper Zero
* Version: 2.0
*
* Submenu
***/
/** Views **/
typedef enum {
/* Submenu */
view_submenu,
/* Configuration view */
view_config,
/* Sample view */
view_sample,
/* LRF info view */
view_lrfinfo,
/* Save diagnostic view */
view_savediag,
/* Test laser view */
view_testlaser,
/* Test pointer view */
view_testpointer,
/* USB serial passthrough view */
view_passthru,
/* About view */
view_about,
} AppView;
/*** Routines ***/
/** Handle submenu views switching **/
void submenu_callback(void *, uint32_t);
/** Callback to return to the submenu **/
uint32_t return_to_submenu_callback(void *);
/* Callback to exit the submenu and the app altogether */
uint32_t submenu_exit_callback(void *);