2021-09-30 20:03:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gpio_app.h"
|
|
|
|
#include "gpio_item.h"
|
|
|
|
#include "scenes/gpio_scene.h"
|
2021-11-21 15:17:43 +00:00
|
|
|
#include "gpio_custom_event.h"
|
|
|
|
#include "usb_uart_bridge.h"
|
2021-09-30 20:03:28 +00:00
|
|
|
|
|
|
|
#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>
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <notification/notification_messages.h>
|
|
|
|
#include <gui/modules/variable_item_list.h>
|
2022-03-24 15:45:03 +00:00
|
|
|
#include <gui/modules/widget.h>
|
2021-09-30 20:03:28 +00:00
|
|
|
#include "views/gpio_test.h"
|
2021-11-21 15:17:43 +00:00
|
|
|
#include "views/gpio_usb_uart.h"
|
2021-10-26 18:41:56 +00:00
|
|
|
|
2021-09-30 20:03:28 +00:00
|
|
|
struct GpioApp {
|
|
|
|
Gui* gui;
|
2021-11-21 15:17:43 +00:00
|
|
|
NotificationApp* notifications;
|
2021-09-30 20:03:28 +00:00
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
SceneManager* scene_manager;
|
2022-03-24 15:45:03 +00:00
|
|
|
Widget* widget;
|
2021-09-30 20:03:28 +00:00
|
|
|
|
|
|
|
VariableItemList* var_item_list;
|
2022-10-18 15:06:18 +00:00
|
|
|
VariableItem* var_item_flow;
|
2021-09-30 20:03:28 +00:00
|
|
|
GpioTest* gpio_test;
|
2021-11-21 15:17:43 +00:00
|
|
|
GpioUsbUart* gpio_usb_uart;
|
|
|
|
UsbUartBridge* usb_uart_bridge;
|
2021-09-30 20:03:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GpioAppViewVarItemList,
|
|
|
|
GpioAppViewGpioTest,
|
2021-10-21 18:12:20 +00:00
|
|
|
GpioAppViewUsbUart,
|
2021-11-21 15:17:43 +00:00
|
|
|
GpioAppViewUsbUartCfg,
|
2022-03-24 15:45:03 +00:00
|
|
|
GpioAppViewUsbUartCloseRpc,
|
2021-09-30 20:03:28 +00:00
|
|
|
} GpioAppView;
|