actions.h
1 /*
2 * EEZ PSU Firmware
3 * Copyright (C) 2017-present, Envox d.o.o.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see http://www.gnu.org/licenses.
17 */
18 
19 #pragma once
20 
21 namespace eez {
22 namespace psu {
23 
24 enum ActionsEnum {
25  ACTION_ID_NONE,
26  ACTION_ID_CHANNEL_TOGGLE_OUTPUT,
27  ACTION_ID_EDIT,
28  ACTION_ID_EDIT_MODE_SLIDER,
29  ACTION_ID_EDIT_MODE_STEP,
30  ACTION_ID_EDIT_MODE_KEYPAD,
31  ACTION_ID_EXIT_EDIT_MODE,
32  ACTION_ID_TOGGLE_INTERACTIVE_MODE,
33  ACTION_ID_NON_INTERACTIVE_ENTER,
34  ACTION_ID_NON_INTERACTIVE_DISCARD,
35  ACTION_ID_KEYPAD_KEY,
36  ACTION_ID_KEYPAD_SPACE,
37  ACTION_ID_KEYPAD_BACK,
38  ACTION_ID_KEYPAD_CLEAR,
39  ACTION_ID_KEYPAD_CAPS,
40  ACTION_ID_KEYPAD_OK,
41  ACTION_ID_KEYPAD_CANCEL,
42  ACTION_ID_KEYPAD_SIGN,
43  ACTION_ID_KEYPAD_UNIT,
44  ACTION_ID_KEYPAD_OPTION1,
45  ACTION_ID_KEYPAD_OPTION2,
46  ACTION_ID_TOUCH_SCREEN_CALIBRATION,
47  ACTION_ID_YES,
48  ACTION_ID_NO,
49  ACTION_ID_OK,
50  ACTION_ID_CANCEL,
51  ACTION_ID_TURN_OFF,
52  ACTION_ID_SHOW_PREVIOUS_PAGE,
53  ACTION_ID_SHOW_MAIN_PAGE,
54  ACTION_ID_SHOW_EVENT_QUEUE,
55  ACTION_ID_SHOW_CHANNEL_SETTINGS,
56  ACTION_ID_SHOW_SYS_SETTINGS,
57  ACTION_ID_SHOW_SYS_SETTINGS2,
58  ACTION_ID_SHOW_SYS_SETTINGS_DATE_TIME,
59  ACTION_ID_SHOW_SYS_SETTINGS_CAL,
60  ACTION_ID_SHOW_SYS_SETTINGS_CAL_CH,
61  ACTION_ID_SHOW_SYS_SETTINGS_SCREEN_CALIBRATION,
62  ACTION_ID_SHOW_SYS_SETTINGS_DISPLAY,
63  ACTION_ID_SHOW_SYS_SETTINGS_ETHERNET,
64  ACTION_ID_SHOW_SYS_SETTINGS_PROTECTIONS,
65  ACTION_ID_SHOW_SYS_SETTINGS_AUX_OTP,
66  ACTION_ID_SHOW_SYS_SETTINGS_SOUND,
67  ACTION_ID_SHOW_SYS_SETTINGS_ENCODER,
68  ACTION_ID_SHOW_SYS_INFO,
69  ACTION_ID_SHOW_SYS_INFO2,
70  ACTION_ID_SHOW_MAIN_HELP_PAGE,
71  ACTION_ID_SHOW_EDIT_MODE_STEP_HELP,
72  ACTION_ID_SHOW_EDIT_MODE_SLIDER_HELP,
73  ACTION_ID_SHOW_CH_SETTINGS_PROT,
74  ACTION_ID_SHOW_CH_SETTINGS_PROT_CLEAR,
75  ACTION_ID_SHOW_CH_SETTINGS_PROT_OCP,
76  ACTION_ID_SHOW_CH_SETTINGS_PROT_OVP,
77  ACTION_ID_SHOW_CH_SETTINGS_PROT_OPP,
78  ACTION_ID_SHOW_CH_SETTINGS_PROT_OTP,
79  ACTION_ID_SHOW_CH_SETTINGS_ADV,
80  ACTION_ID_SHOW_CH_SETTINGS_ADV_LRIPPLE,
81  ACTION_ID_SHOW_CH_SETTINGS_ADV_RSENSE,
82  ACTION_ID_SHOW_CH_SETTINGS_ADV_RPROG,
83  ACTION_ID_SHOW_CH_SETTINGS_ADV_TRACKING,
84  ACTION_ID_SHOW_CH_SETTINGS_ADV_COUPLING,
85  ACTION_ID_SHOW_CH_SETTINGS_INFO,
86  ACTION_ID_SHOW_CH_SETTINGS_INFO_CAL,
87  ACTION_ID_SYS_SETTINGS_CAL_EDIT_PASSWORD,
88  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_START,
89  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_STEP_PREVIOUS,
90  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_STEP_NEXT,
91  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_STOP_AND_SHOW_PREVIOUS_PAGE,
92  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_STOP_AND_SHOW_MAIN_PAGE,
93  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_STEP_SET,
94  ACTION_ID_SYS_SETTINGS_CAL_CH_WIZ_SAVE,
95  ACTION_ID_SYS_SETTINGS_CAL_TOGGLE_ENABLE,
96  ACTION_ID_CH_SETTINGS_PROT_CLEAR,
97  ACTION_ID_CH_SETTINGS_PROT_CLEAR_AND_DISABLE,
98  ACTION_ID_CH_SETTINGS_PROT_TOGGLE_STATE,
99  ACTION_ID_CH_SETTINGS_PROT_EDIT_LIMIT,
100  ACTION_ID_CH_SETTINGS_PROT_EDIT_LEVEL,
101  ACTION_ID_CH_SETTINGS_PROT_EDIT_DELAY,
102  ACTION_ID_SET,
103  ACTION_ID_DISCARD,
104  ACTION_ID_EDIT_FIELD,
105  ACTION_ID_EVENT_QUEUE_PREVIOUS_PAGE,
106  ACTION_ID_EVENT_QUEUE_NEXT_PAGE,
107  ACTION_ID_CH_SETTINGS_ADV_LRIPPLE_TOGGLE_STATUS,
108  ACTION_ID_CH_SETTINGS_ADV_LRIPPLE_TOGGLE_AUTO_MODE,
109  ACTION_ID_CH_SETTINGS_ADV_RSENSE_TOGGLE_STATUS,
110  ACTION_ID_CH_SETTINGS_ADV_RPROG_TOGGLE_STATUS,
111  ACTION_ID_SYS_SETTINGS_DATE_TIME_TOGGLE_DST,
112  ACTION_ID_SHOW_USER_PROFILES,
113  ACTION_ID_SHOW_USER_PROFILES2,
114  ACTION_ID_SHOW_USER_PROFILE_SETTINGS,
115  ACTION_ID_PROFILES_TOGGLE_AUTO_RECALL,
116  ACTION_ID_PROFILE_TOGGLE_IS_AUTO_RECALL_LOCATION,
117  ACTION_ID_PROFILE_RECALL,
118  ACTION_ID_PROFILE_SAVE,
119  ACTION_ID_PROFILE_DELETE,
120  ACTION_ID_PROFILE_EDIT_REMARK,
121  ACTION_ID_TOGGLE_CHANNELS_VIEW_MODE,
122  ACTION_ID_SYS_SETTINGS_ETHERNET_ENABLE,
123  ACTION_ID_SYS_SETTINGS_ETHERNET_DISABLE,
124  ACTION_ID_CH_SETTINGS_ADV_COUPLING_UNCOUPLE,
125  ACTION_ID_CH_SETTINGS_ADV_COUPLING_SET_PARALLEL_INFO,
126  ACTION_ID_CH_SETTINGS_ADV_COUPLING_SET_SERIES_INFO,
127  ACTION_ID_CH_SETTINGS_ADV_COUPLING_SET_PARALLEL,
128  ACTION_ID_CH_SETTINGS_ADV_COUPLING_SET_SERIES,
129  ACTION_ID_CH_SETTINGS_ADV_TOGGLE_TRACKING_MODE,
130  ACTION_ID_SYS_SETTINGS_PROTECTIONS_TOGGLE_OUTPUT_PROTECTION_COUPLE,
131  ACTION_ID_SYS_SETTINGS_PROTECTIONS_TOGGLE_SHUTDOWN_WHEN_PROTECTION_TRIPPED,
132  ACTION_ID_SYS_SETTINGS_PROTECTIONS_TOGGLE_FORCE_DISABLING_ALL_OUTPUTS_ON_POWER_UP,
133  ACTION_ID_SYS_SETTINGS_PROTECTIONS_AUX_OTP_TOGGLE_STATE,
134  ACTION_ID_SYS_SETTINGS_PROTECTIONS_AUX_OTP_EDIT_LEVEL,
135  ACTION_ID_SYS_SETTINGS_PROTECTIONS_AUX_OTP_EDIT_DELAY,
136  ACTION_ID_SYS_SETTINGS_PROTECTIONS_AUX_OTP_CLEAR,
137  ACTION_ID_ON_LAST_ERROR_EVENT_ACTION,
138  ACTION_ID_EDIT_SYSTEM_PASSWORD,
139  ACTION_ID_SYS_FRONT_PANEL_LOCK,
140  ACTION_ID_SYS_FRONT_PANEL_UNLOCK,
141  ACTION_ID_SYS_SETTINGS_SOUND_TOGGLE,
142  ACTION_ID_SYS_SETTINGS_SOUND_TOGGLE_CLICK,
143  ACTION_ID_SHOW_CH_SETTINGS_ADV_VIEW,
144  ACTION_ID_CH_SETTINGS_ADV_VIEW_EDIT_DISPLAY_VALUE1,
145  ACTION_ID_CH_SETTINGS_ADV_VIEW_EDIT_DISPLAY_VALUE2,
146  ACTION_ID_CH_SETTINGS_ADV_VIEW_SWAP_DISPLAY_VALUES,
147  ACTION_ID_CH_SETTINGS_ADV_VIEW_EDIT_YT_VIEW_RATE,
148  ACTION_ID_SELECT_ENUM_ITEM,
149  ACTION_ID_ERROR_ALERT_ACTION,
150  ACTION_ID_UP_DOWN,
151  ACTION_ID_SYS_SETTINGS_ENCODER_TOGGLE_CONFIRMATION_MODE,
152  ACTION_ID_SYS_SETTINGS_DISPLAY_TURN_OFF,
153  ACTION_ID_SYS_SETTINGS_DISPLAY_EDIT_BRIGHTNESS,
154  ACTION_ID_SHOW_CH_SETTINGS_TRIGGER,
155  ACTION_ID_CH_SETTINGS_TRIGGER_EDIT_TRIGGER_MODE,
156  ACTION_ID_CH_SETTINGS_TRIGGER_EDIT_VOLTAGE_TRIGGER_VALUE,
157  ACTION_ID_CH_SETTINGS_TRIGGER_EDIT_CURRENT_TRIGGER_VALUE,
158  ACTION_ID_CH_SETTINGS_TRIGGER_EDIT_LIST_COUNT,
159  ACTION_ID_SHOW_CH_SETTINGS_LISTS,
160  ACTION_ID_SHOW_SYS_SETTINGS_TRIGGER,
161  ACTION_ID_CHANNEL_LISTS_PREVIOUS_PAGE,
162  ACTION_ID_CHANNEL_LISTS_NEXT_PAGE,
163  ACTION_ID_CHANNEL_LISTS_EDIT,
164  ACTION_ID_SHOW_CHANNEL_LISTS_INSERT_MENU,
165  ACTION_ID_SHOW_CHANNEL_LISTS_DELETE_MENU,
166  ACTION_ID_CHANNEL_LISTS_INSERT_ROW_ABOVE,
167  ACTION_ID_CHANNEL_LISTS_INSERT_ROW_BELOW,
168  ACTION_ID_CHANNEL_LISTS_DELETE_ROW,
169  ACTION_ID_CHANNEL_LISTS_CLEAR_COLUMN,
170  ACTION_ID_CHANNEL_LISTS_DELETE_ROWS,
171  ACTION_ID_CHANNEL_LISTS_DELETE_ALL,
172  ACTION_ID_CHANNEL_INITIATE_TRIGGER,
173  ACTION_ID_CHANNEL_SET_TO_FIXED,
174  ACTION_ID_CHANNEL_ENABLE_OUTPUT,
175  ACTION_ID_TRIGGER_SELECT_SOURCE,
176  ACTION_ID_TRIGGER_EDIT_DELAY,
177  ACTION_ID_TRIGGER_SELECT_POLARITY,
178  ACTION_ID_TRIGGER_TOGGLE_INITIATE_CONTINUOUSLY,
179  ACTION_ID_TRIGGER_GENERATE_MANUAL
180 };
181 
182 typedef void (*ACTION)();
183 
184 extern ACTION actions[];
185 
186 }
187 } // namespace eez::psu
Namespace for the everything from the EEZ.
Definition: actions.cpp:41