working_modes.h 447 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #define MODE_NO_CHANGE 0xff
  3. #define MODE_DEFAULT 0
  4. #define MODE_MAIN_MENU 1
  5. #define MODE_SETTINGS_MENU 2
  6. struct main_menu_pos_s {
  7. unsigned char (* func)(void);
  8. };
  9. struct menu_params_s {
  10. unsigned char main_menu_pos;
  11. unsigned char settings_menu_pos;
  12. };
  13. extern struct menu_params_s mp;
  14. void key_process(void);
  15. unsigned char main_menu_right_press(void);
  16. unsigned char enter_settings(void);
  17. void display_settings_menu_item(void);