HCI RAW channel¶
Overview¶
HCI RAW channel API is intended to expose HCI interface to the remote entity. The local Bluetooth controller gets owned by the remote entity and host Bluetooth stack is not used. RAW API provides direct access to packets which are sent and received by the Bluetooth HCI driver.
API Reference¶
-
group
hci_raw
HCI RAW channel.
Functions
-
int
bt_send
(struct net_buf *buf)¶ Send packet to the Bluetooth controller.
Send packet to the Bluetooth controller. Caller needs to implement netbuf pool.
- Return
- Zero on success or (negative) error code otherwise.
- Parameters
buf
: netbuf packet to be send
-
int
bt_enable_raw
(struct k_fifo *rx_queue)¶ Enable Bluetooth RAW channel.
Enable Bluetooth RAW HCI channel.
- Return
- Zero on success or (negative) error code otherwise.
- Parameters
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.
-
int