cf970efb98
* 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.
25 lines
No EOL
585 B
C
25 lines
No EOL
585 B
C
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#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) */ |