Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Bluetooth HCI driver API. More...
#include <stdbool.h>
#include <net/buf.h>
#include <bluetooth/buf.h>
#include <bluetooth/hci_vs.h>
#include <device.h>
Go to the source code of this file.
Data Structures | |
struct | bt_hci_driver |
Abstraction which represents the HCI transport to the controller. More... | |
Macros | |
#define | IS_BT_QUIRK_NO_AUTO_DLE(bt_dev) ((bt_dev)->drv->quirks & BT_QUIRK_NO_AUTO_DLE) |
#define | BT_HCI_EVT_FLAG_RECV_PRIO BIT(0) |
#define | BT_HCI_EVT_FLAG_RECV BIT(1) |
Enumerations | |
enum | { BT_QUIRK_NO_RESET = BIT(0) , BT_QUIRK_NO_AUTO_DLE = BIT(1) } |
enum | bt_hci_driver_bus { BT_HCI_DRIVER_BUS_VIRTUAL = 0 , BT_HCI_DRIVER_BUS_USB = 1 , BT_HCI_DRIVER_BUS_PCCARD = 2 , BT_HCI_DRIVER_BUS_UART = 3 , BT_HCI_DRIVER_BUS_RS232 = 4 , BT_HCI_DRIVER_BUS_PCI = 5 , BT_HCI_DRIVER_BUS_SDIO = 6 , BT_HCI_DRIVER_BUS_SPI = 7 , BT_HCI_DRIVER_BUS_I2C = 8 , BT_HCI_DRIVER_BUS_IPM = 9 } |
Functions | |
static uint8_t | bt_hci_evt_get_flags (uint8_t evt) |
Get HCI event flags. More... | |
int | bt_recv (struct net_buf *buf) |
Receive data from the controller/HCI driver. More... | |
int | bt_recv_prio (struct net_buf *buf) |
Receive high priority data from the controller/HCI driver. More... | |
uint8_t | bt_read_static_addr (struct bt_hci_vs_static_addr addrs[], uint8_t size) |
Read static addresses from the controller. More... | |
int | bt_hci_driver_register (const struct bt_hci_driver *drv) |
Register a new HCI driver to the Bluetooth stack. More... | |
int | bt_hci_transport_setup (const struct device *dev) |
Setup the HCI transport, which usually means to reset the Bluetooth IC. More... | |
struct net_buf * | bt_hci_evt_create (uint8_t evt, uint8_t len) |
struct net_buf * | bt_hci_cmd_complete_create (uint16_t op, uint8_t plen) |
struct net_buf * | bt_hci_cmd_status_create (uint16_t op, uint8_t status) |
Bluetooth HCI driver API.