Flipper Zero Firmware
Loading...
Searching...
No Matches
bt.h
1#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5#include <furi_ble/profile_interface.h>
6#include <core/common_defines.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#define RECORD_BT "bt"
13
14typedef struct Bt Bt;
15
16typedef enum {
17 BtStatusUnavailable,
18 BtStatusOff,
19 BtStatusAdvertising,
20 BtStatusConnected,
21} BtStatus;
22
23typedef void (*BtStatusChangedCallback)(BtStatus status, void* context);
24
34FURI_WARN_UNUSED FuriHalBleProfileBase* bt_profile_start(
35 Bt* bt,
36 const FuriHalBleProfileTemplate* profile_template,
37 FuriHalBleProfileParams params);
38
46bool bt_profile_restore_default(Bt* bt);
47
52void bt_disconnect(Bt* bt);
53
60void bt_set_status_changed_callback(Bt* bt, BtStatusChangedCallback callback, void* context);
61
67void bt_forget_bonded_devices(Bt* bt);
68
74void bt_keys_storage_set_storage_path(Bt* bt, const char* keys_storage_path);
75
80void bt_keys_storage_set_default_path(Bt* bt);
81
82#ifdef __cplusplus
83}
84#endif
Definition bt_i.h:62
Definition profile_interface.h:14
Definition profile_interface.h:28