10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
11#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
72#define BT_HCI_ERR_EXT_HANDLED 0xff
80#define BT_HCI_RAW_CMD_EXT(_op, _min_len, _func) \
83 .min_len = _min_len, \
int bt_send(struct net_buf *buf)
Send packet to the Bluetooth controller.
void bt_hci_raw_cmd_ext_register(struct bt_hci_raw_cmd_ext *cmds, size_t size)
Register Bluetooth RAW command extension table.
uint8_t bt_hci_raw_get_mode(void)
Get Bluetooth RAW channel mode.
int bt_enable_raw(struct k_fifo *rx_queue)
Enable Bluetooth RAW channel:
int bt_hci_raw_set_mode(uint8_t mode)
Set Bluetooth RAW channel mode.
@ BT_HCI_RAW_MODE_H4
H:4 mode.
Definition: hci_raw.h:51
@ BT_HCI_RAW_MODE_PASSTHROUGH
Passthrough mode.
Definition: hci_raw.h:43
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
size_t min_len
Minimal length of the command.
Definition: hci_raw.h:92
uint8_t(* func)(struct net_buf *buf)
Handler function.
Definition: hci_raw.h:105
uint16_t op
Opcode of the command.
Definition: hci_raw.h:89
Definition: kernel.h:2388
Network buffer representation.
Definition: buf.h:1004
uint16_t size
Amount of data that this buffer can store.
Definition: buf.h:1036