1 /* 2 * Copyright (c) 2023 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _PICO_BTSTACK_CYW43_H 8 #define _PICO_BTSTACK_CYW43_H 9 10 #include "pico/async_context.h" 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /** \file pico/btstack_cyw43.h 16 * \defgroup pico_btstack_cyw43 pico_btstack_cyw43 17 * \ingroup pico_cyw43_driver 18 * 19 * \brief Low-level Bluetooth HCI support 20 * 21 * This library provides utility functions to initialise and de-initialise BTstack for CYW43, 22 */ 23 24 /* 25 * \brief Perform initialisation of BTstack/CYW43 integration 26 * \ingroup pico_btstack_cyw43 27 * 28 * \param context the async_context instance that provides the abstraction for handling asynchronous work. 29 * \return true on success or false an error 30 */ 31 bool btstack_cyw43_init(async_context_t *context); 32 33 /* 34 * \brief De-initialise BTstack/CYW43 integration 35 * \ingroup pico_btstack_cyw43 36 * 37 * \param context the async_context the btstack_cyw43 support was added to via \ref btstack_cyw43_init 38 */ 39 void btstack_cyw43_deinit(async_context_t *context); 40 41 #ifdef __cplusplus 42 } 43 #endif 44 #endif 45