menu.h 623 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * menu.h
  3. *
  4. * Created on: 1 февр. 2022 г.
  5. * Author: radioman
  6. */
  7. #ifndef MENU_H_
  8. #define MENU_H_
  9. #include <stdint.h>
  10. typedef enum { ENTRY_DIR = 'D', ENTRY_ACTION = 'A', ENTRY_PREF = 'P', ENTRY_CHECK = 'C',
  11. ENTRY_RADIO = 'R', ENTRY_BACK = 'B' } entry_type;
  12. typedef struct itemDesc {
  13. uint8_t id;
  14. entry_type type;
  15. uint8_t checked;
  16. uint8_t pref;
  17. uint8_t level;
  18. struct itemDesc *prev;
  19. struct itemDesc *next;
  20. struct itemDesc *child;
  21. struct itemDesc *parent;
  22. char title[20];
  23. } menu_td;
  24. void MenuShow();
  25. void MenuInit();
  26. void MenuScroll();
  27. void MenuEnter();
  28. #endif /* MENU_H_ */