mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-18 09:55:23 +00:00
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
55 lines
1.1 KiB
C
55 lines
1.1 KiB
C
/** @file
|
|
* @brief Bluetooth HCI RAW channel handling
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef __BT_HCI_RAW_H
|
|
#define __BT_HCI_RAW_H
|
|
|
|
/**
|
|
* @brief HCI RAW channel
|
|
* @defgroup hci_raw HCI RAW channel
|
|
* @ingroup bluetooth
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** @brief Send packet to the Bluetooth controller
|
|
*
|
|
* Send packet to the Bluetooth controller. Caller needs to
|
|
* implement netbuf pool.
|
|
*
|
|
* @param buf netbuf packet to be send
|
|
*
|
|
* @return Zero on success or (negative) error code otherwise.
|
|
*/
|
|
int bt_send(struct net_buf *buf);
|
|
|
|
/** @brief Enable Bluetooth RAW channel
|
|
*
|
|
* Enable Bluetooth RAW HCI channel.
|
|
*
|
|
* @param rx_queue netbuf queue where HCI packets received from the Bluetooth
|
|
* controller are to be queued. The queue is defined in the caller while
|
|
* the available buffers pools are handled in the stack.
|
|
*
|
|
* @return Zero on success or (negative) error code otherwise.
|
|
*/
|
|
int bt_enable_raw(struct k_fifo *rx_queue);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
#endif /* __BT_HCI_RAW_H */
|