summaryrefslogtreecommitdiff
path: root/app/include/zmk/ble.h
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-09-13 22:43:45 -0400
committerGitHub <noreply@github.com>2020-09-13 22:43:45 -0400
commit160f296bfb562ca0596630f84c4121920ea3c304 (patch)
tree63218f4af1b20108af667de8e346d204076064bb /app/include/zmk/ble.h
parent304603240f7ba16f67912a0031c64fb9ae4e8279 (diff)
parent4658999e31865e54d02955c500c716385e6c69d8 (diff)
Merge pull request #133 from petejohanson/bluetooth/ident-management
feat(bluetooth): Proper basic bond management, new `bt` behavior for resetting bond to host.
Diffstat (limited to 'app/include/zmk/ble.h')
-rw-r--r--app/include/zmk/ble.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/include/zmk/ble.h b/app/include/zmk/ble.h
index d0aaa96..1cf71a7 100644
--- a/app/include/zmk/ble.h
+++ b/app/include/zmk/ble.h
@@ -7,6 +7,19 @@
#pragma once
#include <zmk/keys.h>
+#include <zmk/ble/profile.h>
+
+int zmk_ble_clear_bonds();
+int zmk_ble_prof_next();
+int zmk_ble_prof_prev();
+int zmk_ble_prof_select(u8_t index);
+
+bt_addr_le_t *zmk_ble_active_profile_addr();
+char *zmk_ble_active_profile_name();
int zmk_ble_unpair_all();
bool zmk_ble_handle_key_user(struct zmk_key_event *key_event);
+
+#if IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL)
+void zmk_ble_set_peripheral_addr(bt_addr_le_t *addr);
+#endif /* IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL) */ \ No newline at end of file