34 lines
792 B
C
34 lines
792 B
C
/** @file
|
|
* @brief Bluetooth shell functions
|
|
*
|
|
* This is not to be included by the application.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2017 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __BT_H
|
|
#define __BT_H
|
|
|
|
extern const struct shell *ctx_shell;
|
|
extern struct bt_conn *default_conn;
|
|
|
|
#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 */
|
|
|
|
void conn_addr_str(struct bt_conn *conn, char *addr, size_t len);
|
|
|
|
#endif /* __BT_H */
|