menu.h 411 B

1234567891011121314151617181920212223242526
  1. /*
  2. * menu.h
  3. *
  4. * Created on: Jan 26, 2022
  5. * Author: radioman
  6. */
  7. #ifndef INC_MENU_H_
  8. #define INC_MENU_H_
  9. #include <stdint.h>
  10. typedef enum { ENTRY_DIR, ENTRY_DISPLAY, ENTRY_NUMBER, ENTRY_CHECKBOX } entry_type;
  11. typedef struct {
  12. uint8_t id;
  13. entry_type type;
  14. uint8_t selected;
  15. uint8_t active;
  16. uint8_t parent_id;
  17. char *title;
  18. } menu_entry_td;
  19. void MenuShow(uint8_t id);
  20. #endif /* INC_MENU_H_ */