working_modes.h 501 B

1234567891011121314151617181920212223242526
  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. #define MAIN_MENU_MAXPOS 1
  7. struct main_menu_pos_s {
  8. const char * (* get_name)(void);
  9. unsigned char (* func)(void);
  10. };
  11. struct menu_params_s {
  12. unsigned char main_menu_pos;
  13. unsigned char settings_menu_pos;
  14. };
  15. extern struct menu_params_s mp;
  16. void key_process(void);
  17. unsigned char enter_settings(void);
  18. void display_settings_menu_item(void);
  19. void display_main_menu_item(void);