1 /** @file 2 * @brief Bluetooth shell functions 3 * 4 * This is not to be included by the application. 5 */ 6 7 /* 8 * Copyright (c) 2017 Intel Corporation 9 * 10 * SPDX-License-Identifier: Apache-2.0 11 */ 12 13 #ifndef __BT_H 14 #define __BT_H 15 16 #include <zephyr/bluetooth/bluetooth.h> 17 #include <sys/types.h> 18 19 extern const struct shell *ctx_shell; 20 extern struct bt_conn *default_conn; 21 22 bool passes_scan_filter(const struct bt_le_scan_recv_info *info, const struct net_buf_simple *buf); 23 24 #if defined(CONFIG_BT_ISO) 25 extern struct bt_iso_chan iso_chan; 26 #endif /* CONFIG_BT_ISO */ 27 28 #if defined(CONFIG_BT_EXT_ADV) 29 extern uint8_t selected_adv; 30 extern struct bt_le_ext_adv *adv_sets[CONFIG_BT_EXT_ADV_MAX_ADV_SET]; 31 #if defined(CONFIG_BT_PER_ADV_SYNC) 32 extern size_t selected_per_adv_sync; 33 extern struct bt_le_per_adv_sync *per_adv_syncs[CONFIG_BT_PER_ADV_SYNC_MAX]; 34 #endif /* CONFIG_BT_PER_ADV_SYNC */ 35 #endif /* CONFIG_BT_EXT_ADV */ 36 37 void conn_addr_str(struct bt_conn *conn, char *addr, size_t len); 38 39 #endif /* __BT_H */ 40