Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
HCI RAW channel

HCI RAW channel . More...

Functions

int bt_send (struct net_buf *buf)
 Send packet to the Bluetooth controller.
 
int bt_enable_raw (struct k_fifo *rx_queue)
 Enable Bluetooth RAW channel:
 

Detailed Description

HCI RAW channel .

Function Documentation

◆ bt_enable_raw()

int bt_enable_raw ( struct k_fifo * rx_queue)

#include <zephyr/bluetooth/hci_raw.h>

Enable Bluetooth RAW channel:

Enable Bluetooth RAW HCI channel.

Parameters
rx_queuenetbuf 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.
Returns
Zero on success or (negative) error code otherwise.

◆ bt_send()

int bt_send ( struct net_buf * buf)

#include <zephyr/bluetooth/hci_raw.h>

Send packet to the Bluetooth controller.

Send packet to the Bluetooth controller. The buffers should be allocated using bt_buf_get_tx().

Parameters
bufHCI packet to be sent.
Returns
Zero on success or (negative) error code otherwise.