-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusbhost_i.h
42 lines (33 loc) · 826 Bytes
/
usbhost_i.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <furi.h>
#include <furi_hal.h>
#include <gui/gui.h>
#include <gui/view_dispatcher.h>
#include <gui/scene_manager.h>
#include <gui/modules/text_box.h>
#include <dialogs/dialogs.h>
#include "scenes/usbhost_scene.h"
#include "tusb.h"
#include "class/hid/hid.h"
#include "usbhost.h"
#include "usbhost_worker.h"
// English
#define LANGUAGE_ID 0x0409
#define BUF_COUNT 4
#define USBHOST_TEXT_BOX_STORE_SIZE (4096)
struct USBHostApp {
Gui* gui;
ViewDispatcher* view_dispatcher;
SceneManager* scene_manager;
TextBox* text_box;
FuriString* text_box_store;
size_t text_box_store_strlen;
USBWorker* worker;
};
typedef enum {
USBHostEventRefreshConsoleOutput = 0,
USBHostEventStartConsole,
} USBHostCustomEvent;
typedef enum {
USBHostAppViewOutput,
} USBHostAppView;