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 #if defined(CONFIG_BT_ISO)
23 extern struct bt_iso_chan iso_chan;
24 #endif /* CONFIG_BT_ISO */
25 
26 #if defined(CONFIG_BT_EXT_ADV)
27 extern uint8_t selected_adv;
28 extern struct bt_le_ext_adv *adv_sets[CONFIG_BT_EXT_ADV_MAX_ADV_SET];
29 #if defined(CONFIG_BT_PER_ADV_SYNC)
30 extern struct bt_le_per_adv_sync *per_adv_syncs[CONFIG_BT_PER_ADV_SYNC_MAX];
31 #endif /* CONFIG_BT_PER_ADV_SYNC */
32 #endif /* CONFIG_BT_EXT_ADV */
33 
34 void conn_addr_str(struct bt_conn *conn, char *addr, size_t len);
35 
36 #endif /* __BT_H */
37