mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-27 07:11:45 +03:00
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
|
#pragma once
|
||
|
|
||
|
#include "extra_beacon.h"
|
||
|
#include <furi.h>
|
||
|
#include <gui/gui.h>
|
||
|
#include <gui/view.h>
|
||
|
#include <gui/scene_manager.h>
|
||
|
#include <gui/view_dispatcher.h>
|
||
|
|
||
|
#include <gui/modules/widget.h>
|
||
|
#include <gui/modules/submenu.h>
|
||
|
#include <gui/modules/byte_input.h>
|
||
|
#include <gui/modules/dialog_ex.h>
|
||
|
|
||
|
#include <rpc/rpc_app.h>
|
||
|
#include <notification/notification_messages.h>
|
||
|
|
||
|
#include <furi_hal_bt.h>
|
||
|
|
||
|
#include "scenes/scenes.h"
|
||
|
#include <stdint.h>
|
||
|
|
||
|
typedef struct {
|
||
|
Gui* gui;
|
||
|
SceneManager* scene_manager;
|
||
|
ViewDispatcher* view_dispatcher;
|
||
|
|
||
|
Submenu* submenu;
|
||
|
ByteInput* byte_input;
|
||
|
DialogEx* dialog_ex;
|
||
|
|
||
|
FuriString* status_string;
|
||
|
|
||
|
GapExtraBeaconConfig beacon_config;
|
||
|
uint8_t beacon_data[EXTRA_BEACON_MAX_DATA_SIZE];
|
||
|
uint8_t beacon_data_len;
|
||
|
bool is_beacon_active;
|
||
|
} BleBeaconApp;
|
||
|
|
||
|
typedef enum {
|
||
|
BleBeaconAppViewSubmenu,
|
||
|
BleBeaconAppViewByteInput,
|
||
|
BleBeaconAppViewDialog,
|
||
|
} BleBeaconAppView;
|
||
|
|
||
|
typedef enum {
|
||
|
BleBeaconAppCustomEventDataEditResult = 100,
|
||
|
} BleBeaconAppCustomEvent;
|
||
|
|
||
|
void ble_beacon_app_update_state(BleBeaconApp* app);
|