b538e60532
Added zmk_ble_active_profile_is_connected() to allow code outside ble.c to check the status of the active profile, and changed the ble_active_profile_changed event to also notify when the active profile connects or disconnects. Changed endpoint selection to to also update when the active profile changes, connects, or disconnects.
26 lines
646 B
C
26 lines
646 B
C
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#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();
|
|
bool zmk_ble_active_profile_is_connected();
|
|
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) */ |