Flipper/Applications/Official/source-OLDER/xMasterX/nrf24scan/nrf24scan.h

43 lines
730 B
C
Raw Normal View History

2023-01-26 07:52:38 +00:00
#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;