2017-05-29 17:54:56 +08:00
|
|
|
/** @file
|
2017-06-28 21:09:02 +08:00
|
|
|
* @brief Bluetooth shell functions
|
|
|
|
*
|
|
|
|
* This is not to be included by the application.
|
2017-05-29 17:54:56 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BT_H
|
2017-06-28 21:09:02 +08:00
|
|
|
#define __BT_H
|
2017-05-29 17:54:56 +08:00
|
|
|
|
2018-09-24 15:59:23 +08:00
|
|
|
extern const struct shell *ctx_shell;
|
2017-05-29 17:54:56 +08:00
|
|
|
extern struct bt_conn *default_conn;
|
|
|
|
|
2020-08-12 20:22:51 +08:00
|
|
|
#if defined(CONFIG_BT_ISO)
|
|
|
|
extern struct bt_iso_chan iso_chan;
|
|
|
|
#endif /* CONFIG_BT_ISO */
|
|
|
|
|
|
|
|
#if defined(CONFIG_BT_EXT_ADV)
|
|
|
|
extern uint8_t selected_adv;
|
|
|
|
extern struct bt_le_ext_adv *adv_sets[CONFIG_BT_EXT_ADV_MAX_ADV_SET];
|
|
|
|
#if defined(CONFIG_BT_PER_ADV_SYNC)
|
|
|
|
extern struct bt_le_per_adv_sync *per_adv_syncs[CONFIG_BT_PER_ADV_SYNC_MAX];
|
|
|
|
#endif /* CONFIG_BT_PER_ADV_SYNC */
|
|
|
|
#endif /* CONFIG_BT_EXT_ADV */
|
|
|
|
|
2018-09-25 19:24:25 +08:00
|
|
|
void conn_addr_str(struct bt_conn *conn, char *addr, size_t len);
|
|
|
|
|
2017-05-29 17:54:56 +08:00
|
|
|
#endif /* __BT_H */
|