Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgornekich <n.gorbadey@gmail.com>2022-01-21 20:32:03 +0300
committerGitHub <noreply@github.com>2022-01-21 20:32:03 +0300
commit23ff6723cf870b999b75caee06b9f95a34c52534 (patch)
tree1c77c7000ea390bb87960e3dd439fb0d7363d6d0 /firmware/targets/f6/ble_glue/gap.h
parentd4787e859ee0b1992d645b6f57fb145246c94334 (diff)
[FL-2204] Bluetooth forget devices (#967)
* bt: update connection parameters * bt: set correct connection latency and timeout * gui popup: add clean method * furi_hal_bt: add connection parameters request, clear database * bt: add forget bonded devices API * bt_settings: add forget bonded devices GUI * bt: rework pin code show with view port to hide view * bt: support conn parameters for different profiles * furi_hal_bt: sync f6 target * target f6: fix build * bt: format sources * furi_hal_bt: update connection parameters * bt: update connection params, fix GUI * FuriHal: fix spelling * Refactoring: rename _clean to _reset Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'firmware/targets/f6/ble_glue/gap.h')
-rw-r--r--firmware/targets/f6/ble_glue/gap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/targets/f6/ble_glue/gap.h b/firmware/targets/f6/ble_glue/gap.h
index 635a4c3c..1a2e7962 100644
--- a/firmware/targets/f6/ble_glue/gap.h
+++ b/firmware/targets/f6/ble_glue/gap.h
@@ -56,12 +56,20 @@ typedef enum {
} GapPairing;
typedef struct {
+ uint16_t conn_int_min;
+ uint16_t conn_int_max;
+ uint16_t slave_latency;
+ uint16_t supervisor_timeout;
+} GapConnectionParams;
+
+typedef struct {
uint16_t adv_service_uuid;
uint16_t appearance_char;
bool bonding_mode;
GapPairing pairing_method;
uint8_t mac_address[GAP_MAC_ADDR_SIZE];
char adv_name[FURI_HAL_VERSION_DEVICE_NAME_LENGTH];
+ GapConnectionParams conn_param;
} GapConfig;
bool gap_init(GapConfig* config, GapEventCallback on_event_cb, void* context);