gpio_app_i.h 958 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "gpio_app.h"
  3. #include "gpio_item.h"
  4. #include "scenes/gpio_scene.h"
  5. #include <gui/gui.h>
  6. #include <gui/view_dispatcher.h>
  7. #include <gui/scene_manager.h>
  8. #include <gui/modules/submenu.h>
  9. #include <notification/notification-messages.h>
  10. #include <gui/modules/variable-item-list.h>
  11. #include "views/gpio_test.h"
  12. #define GPIO_SCENE_START_CUSTOM_EVENT_OTG_OFF (0UL)
  13. #define GPIO_SCENE_START_CUSTOM_EVENT_OTG_ON (1UL)
  14. #define GPIO_SCENE_START_CUSTOM_EVENT_TEST (2UL)
  15. #define GPIO_SCENE_START_CUSTOM_EVENT_USB_UART (3UL)
  16. #define GPIO_SCENE_USB_UART_CUSTOM_EVENT_ENABLE (4UL)
  17. #define GPIO_SCENE_USB_UART_CUSTOM_EVENT_DISABLE (5UL)
  18. struct GpioApp {
  19. Gui* gui;
  20. ViewDispatcher* view_dispatcher;
  21. SceneManager* scene_manager;
  22. NotificationApp* notifications;
  23. VariableItemList* var_item_list;
  24. GpioTest* gpio_test;
  25. };
  26. typedef enum {
  27. GpioAppViewVarItemList,
  28. GpioAppViewGpioTest,
  29. GpioAppViewUsbUart,
  30. } GpioAppView;