mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-23 15:00:13 +00:00
43 lines
730 B
C
43 lines
730 B
C
|
#pragma once
|
||
|
|
||
|
#include <gui/gui.h>
|
||
|
#include <gui/view.h>
|
||
|
#include <gui/view_dispatcher.h>
|
||
|
#include <gui/modules/submenu.h>
|
||
|
#include <gui/modules/dialog_ex.h>
|
||
|
#include <toolbox/stream/file_stream.h>
|
||
|
#include <notification/notification_messages.h>
|
||
|
|
||
|
typedef enum {
|
||
|
EventTypeTick,
|
||
|
EventTypeKey,
|
||
|
} EventType;
|
||
|
|
||
|
typedef struct {
|
||
|
EventType type;
|
||
|
InputEvent input;
|
||
|
} PluginEvent;
|
||
|
|
||
|
typedef struct {
|
||
|
int x;
|
||
|
int y;
|
||
|
} PluginState;
|
||
|
|
||
|
struct FOUND {
|
||
|
uint8_t addr_size;
|
||
|
uint8_t addr[5];
|
||
|
uint16_t total;
|
||
|
};
|
||
|
|
||
|
typedef struct {
|
||
|
Gui* gui;
|
||
|
FuriMessageQueue* event_queue;
|
||
|
PluginState* plugin_state;
|
||
|
ViewPort* view_port;
|
||
|
Storage* storage;
|
||
|
NotificationApp* notification;
|
||
|
uint8_t* log_arr;
|
||
|
struct FOUND *found;
|
||
|
} Nrf24Scan;
|
||
|
|