2021-09-30 23:03:28 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gpio_app.h"
|
|
|
|
#include "gpio_item.h"
|
|
|
|
#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>
|
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"
|
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;
|
2021-09-30 23:03:28 +03:00
|
|
|
|
|
|
|
VariableItemList* var_item_list;
|
|
|
|
GpioTest* gpio_test;
|
2021-11-21 18:17:43 +03:00
|
|
|
GpioUsbUart* gpio_usb_uart;
|
|
|
|
UsbUartBridge* usb_uart_bridge;
|
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,
|
2021-09-30 23:03:28 +03:00
|
|
|
} GpioAppView;
|