2021-09-30 20:03:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gpio_app.h"
|
|
|
|
#include "gpio_item.h"
|
|
|
|
#include "scenes/gpio_scene.h"
|
|
|
|
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/scene_manager.h>
|
2021-10-21 18:12:20 +00:00
|
|
|
#include <gui/modules/submenu.h>
|
2021-09-30 20:03:28 +00:00
|
|
|
#include <notification/notification-messages.h>
|
|
|
|
#include <gui/modules/variable-item-list.h>
|
|
|
|
#include "views/gpio_test.h"
|
|
|
|
|
2021-10-26 18:41:56 +00:00
|
|
|
#define GPIO_SCENE_START_CUSTOM_EVENT_OTG_OFF (0UL)
|
|
|
|
#define GPIO_SCENE_START_CUSTOM_EVENT_OTG_ON (1UL)
|
|
|
|
#define GPIO_SCENE_START_CUSTOM_EVENT_TEST (2UL)
|
|
|
|
#define GPIO_SCENE_START_CUSTOM_EVENT_USB_UART (3UL)
|
|
|
|
|
|
|
|
#define GPIO_SCENE_USB_UART_CUSTOM_EVENT_ENABLE (4UL)
|
|
|
|
#define GPIO_SCENE_USB_UART_CUSTOM_EVENT_DISABLE (5UL)
|
|
|
|
|
2021-09-30 20:03:28 +00:00
|
|
|
struct GpioApp {
|
|
|
|
Gui* gui;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
SceneManager* scene_manager;
|
|
|
|
NotificationApp* notifications;
|
|
|
|
|
|
|
|
VariableItemList* var_item_list;
|
|
|
|
GpioTest* gpio_test;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GpioAppViewVarItemList,
|
|
|
|
GpioAppViewGpioTest,
|
2021-10-21 18:12:20 +00:00
|
|
|
GpioAppViewUsbUart,
|
2021-09-30 20:03:28 +00:00
|
|
|
} GpioAppView;
|