2021-09-30 23:03:28 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gpio_app.h"
|
2023-02-07 19:33:05 +03:00
|
|
|
#include "gpio_items.h"
|
2021-09-30 23:03:28 +03:00
|
|
|
#include "scenes/gpio_scene.h"
|
2021-11-21 18:17:43 +03:00
|
|
|
#include "gpio_custom_event.h"
|
|
|
|
#include "usb_uart_bridge.h"
|
2021-09-30 23:03:28 +03:00
|
|
|
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/scene_manager.h>
|
2021-10-21 21:12:20 +03:00
|
|
|
#include <gui/modules/submenu.h>
|
2022-01-05 19:10:18 +03:00
|
|
|
#include <notification/notification_messages.h>
|
|
|
|
#include <gui/modules/variable_item_list.h>
|
2022-03-24 18:45:03 +03:00
|
|
|
#include <gui/modules/widget.h>
|
2023-09-21 11:06:45 +03:00
|
|
|
#include <gui/modules/dialog_ex.h>
|
2021-09-30 23:03:28 +03:00
|
|
|
#include "views/gpio_test.h"
|
2021-11-21 18:17:43 +03:00
|
|
|
#include "views/gpio_usb_uart.h"
|
2022-10-28 17:08:50 +03:00
|
|
|
#include <assets_icons.h>
|
2021-10-26 21:41:56 +03:00
|
|
|
|
2021-09-30 23:03:28 +03:00
|
|
|
struct GpioApp {
|
|
|
|
Gui* gui;
|
2021-11-21 18:17:43 +03:00
|
|
|
NotificationApp* notifications;
|
2021-09-30 23:03:28 +03:00
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
SceneManager* scene_manager;
|
2022-03-24 18:45:03 +03:00
|
|
|
Widget* widget;
|
2023-09-21 11:06:45 +03:00
|
|
|
DialogEx* dialog;
|
2021-09-30 23:03:28 +03:00
|
|
|
|
|
|
|
VariableItemList* var_item_list;
|
2022-10-18 18:06:18 +03:00
|
|
|
VariableItem* var_item_flow;
|
2021-09-30 23:03:28 +03:00
|
|
|
GpioTest* gpio_test;
|
2021-11-21 18:17:43 +03:00
|
|
|
GpioUsbUart* gpio_usb_uart;
|
2023-02-07 19:33:05 +03:00
|
|
|
GPIOItems* gpio_items;
|
2021-11-21 18:17:43 +03:00
|
|
|
UsbUartBridge* usb_uart_bridge;
|
2022-11-29 15:50:55 +03:00
|
|
|
UsbUartConfig* usb_uart_cfg;
|
2021-09-30 23:03:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GpioAppViewVarItemList,
|
|
|
|
GpioAppViewGpioTest,
|
2021-10-21 21:12:20 +03:00
|
|
|
GpioAppViewUsbUart,
|
2021-11-21 18:17:43 +03:00
|
|
|
GpioAppViewUsbUartCfg,
|
2022-03-24 18:45:03 +03:00
|
|
|
GpioAppViewUsbUartCloseRpc,
|
2023-09-21 11:06:45 +03:00
|
|
|
GpioAppViewExitConfirm,
|
2021-09-30 23:03:28 +03:00
|
|
|
} GpioAppView;
|