Loading...
Searching...
No Matches
ble_beacon_app.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "extra_beacon.h"
8#include <furi.h>
9#include <gui/gui.h>
10#include <gui/view.h>
11#include <gui/scene_manager.h>
12#include <gui/view_dispatcher.h>
13
14#include <gui/modules/widget.h>
15#include <gui/modules/submenu.h>
18
19#include <rpc/rpc_app.h>
20#include <notification/notification_messages.h>
21
22#include <furi_hal_bt.h>
23
24#include "scenes/scenes.h"
25#include <stdint.h>
26
27typedef struct {
28 Gui* gui;
29 SceneManager* scene_manager;
30 ViewDispatcher* view_dispatcher;
31
32 Submenu* submenu;
33 ByteInput* byte_input;
34 DialogEx* dialog_ex;
35
36 FuriString* status_string;
37
38 GapExtraBeaconConfig beacon_config;
39 uint8_t beacon_data[EXTRA_BEACON_MAX_DATA_SIZE];
40 uint8_t beacon_data_len;
41 bool is_beacon_active;
43
44typedef enum {
45 BleBeaconAppViewSubmenu,
46 BleBeaconAppViewByteInput,
47 BleBeaconAppViewDialog,
48} BleBeaconAppView;
49
50typedef enum {
51 BleBeaconAppCustomEventDataEditResult = 100,
52} BleBeaconAppCustomEvent;
53
54void ble_beacon_app_update_state(BleBeaconApp* app);
GUI: ByteInput keyboard view module API.
GUI: DialogEx view module API.
BT/BLE HAL API.
GUI: main API.
Application RPC subsystem interface.
GUI: SceneManager API.
Definition ble_beacon_app.h:27
ByteInput type.
Definition services/gui/modules/byte_input.c:8
Definition dialog_ex.c:5
Definition string.c:4
Definition extra_beacon.h:65
Gui structure.
Definition gui_i.h:47
Definition scene_manager_i.h:17
Definition services/gui/modules/submenu.c:7
Definition view_dispatcher_i.h:16
GUI: SubMenu view module API.
GUI: View API.
GUI: ViewDispatcher API.
GUI: Widget view module API.