summaryrefslogtreecommitdiff
path: root/app/include/zmk
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-28 14:15:16 -0400
committerPete Johanson <peter@peterjohanson.com>2020-09-13 22:33:05 -0400
commitcf970efb98c5af97955bfffbcebb3b065b16edc4 (patch)
treea44d5b05e62bf7bdd00d4e4bae38617a411a89f5 /app/include/zmk
parent304603240f7ba16f67912a0031c64fb9ae4e8279 (diff)
feat(bluetooth): Proper bond management, identity support for non-splits
* Add `bt` behavior that can be used to perform certain actions, such as next/prev identity, reset identity, etc. NOTE: Multiple identities is only supported for non-split shields, due to missing Zephyr identity functionality for dual central/peripheral devices. * Proper bond reset tied to action, that honors peripheral bonds, so folks can reset and pair to other hosts, without breaking bonds between splt halves.
Diffstat (limited to 'app/include/zmk')
-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..b3762cd 100644
--- a/app/include/zmk/ble.h
+++ b/app/include/zmk/ble.h
@@ -6,7 +6,20 @@
#pragma once
+#include <bluetooth/addr.h>
#include <zmk/keys.h>
+int zmk_ble_adv_pause();
+int zmk_ble_adv_resume();
+
+int zmk_ble_identity_clear();
+int zmk_ble_identity_next();
+int zmk_ble_identity_prev();
+int zmk_ble_identity_select(u8_t index);
+
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