2021-09-30 20:03:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gpio_app.h"
|
2023-02-07 16:33:05 +00:00
|
|
|
#include "gpio_items.h"
|
2021-09-30 20:03:28 +00:00
|
|
|
#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>
|
2023-09-21 08:06:45 +00:00
|
|
|
#include <gui/modules/dialog_ex.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"
|
2022-10-28 14:08:50 +00:00
|
|
|
#include <assets_icons.h>
|
2024-01-30 13:54:25 +00:00
|
|
|
#include <expansion/expansion.h>
|
2021-10-26 18:41:56 +00:00
|
|
|
|
2021-09-30 20:03:28 +00:00
|
|
|
struct GpioApp {
|
2024-01-30 13:54:25 +00:00
|
|
|
Expansion* expansion;
|
2021-09-30 20:03:28 +00:00
|
|
|
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;
|
2023-09-21 08:06:45 +00:00
|
|
|
DialogEx* dialog;
|
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;
|
2023-02-07 16:33:05 +00:00
|
|
|
GPIOItems* gpio_items;
|
2021-11-21 15:17:43 +00:00
|
|
|
UsbUartBridge* usb_uart_bridge;
|
2022-11-29 12:50:55 +00:00
|
|
|
UsbUartConfig* usb_uart_cfg;
|
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,
|
2023-09-21 08:06:45 +00:00
|
|
|
GpioAppViewExitConfirm,
|
2021-09-30 20:03:28 +00:00
|
|
|
} GpioAppView;
|