forked from sfeakes/AqualinkD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pda_menu.h
81 lines (74 loc) · 1.58 KB
/
pda_menu.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef PDA_MENU_H_
#define PDA_MENU_H_
#define PDA_LINES 10 // There is only 9 lines, but add buffer to make shifting easier
typedef enum pda_menu_type {
PM_UNKNOWN,
PM_FW_VERSION,
PM_HOME,
PM_BUILDING_HOME,
PM_MAIN,
PM_DIAGNOSTICS,
PM_PROGRAM,
PM_SET_TEMP,
PM_SET_TIME,
PM_POOL_HEAT,
PM_SPA_HEAT,
PM_AQUAPURE,
PM_SYSTEM_SETUP,
PM_AUX_LABEL,
PM_AUX_LABEL_DEVICE, // label a specific device
PM_FREEZE_PROTECT,
PM_FREEZE_PROTECT_DEVICES,
PM_VSP,
PM_SETTINGS,
PM_EQUIPTMENT_CONTROL,
PM_EQUIPTMENT_STATUS,
PM_PALM_OPTIONS, // This seems to be only older revisions
PM_BOOST
} pda_menu_type;
/*
typedef enum pda_home_menu_item {
PMI_MAIN,
PMI_EQUIPTMENT_CONTROL
} pda_home_menu_item;
*/
/*
typedef enum pda_menu_type {
PM_UNKNOWN,
PM_MAIN,
PM_SETTINGS,
PM_EQUIPTMENT_CONTROL,
PM_EQUIPTMENT_STATUS,
PM_BUILDING_MAIN
} pda_menu_type;
*/
/*
typedef enum pda_menu_type {
PM_UNKNOWN,
PM_FW_VERSION,
PM_HOME,
PM_MAIN_MENU,
PM_EQUIPTMENT_CONTROL,
PM_EQUIPTMENT_STATUS,
PM_BUILDING_HOME,
PM_SYSTEM_SETUP,
PM_SET_TEMP,
PM_POOL_HEAT,
PM_SPA_HEAT,
PM_FREEZE_PROTECT,
PM_FREEZE_PROTECT_DEVICES,
PM_SET_AQUAPURE
} pda_menu_type;
*/
//bool pda_mode();
//void set_pda_mode(bool val);
bool process_pda_menu_packet(unsigned char* packet, int length);
int pda_m_hlightindex();
char *pda_m_hlight();
char *pda_m_line(int index);
pda_menu_type pda_m_type();
int pda_find_m_index(char *text);
int pda_find_m_index_case(char *text, int limit);
int pda_find_m_index_loose(char *text);
//int pda_find_m_index_swcase(char *text, int limit);
#endif