Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Abstraction which represents the HCI transport to the controller. More...
#include <hci_driver.h>
Data Fields | |
const char * | name |
Name of the driver. | |
enum bt_hci_driver_bus | bus |
Bus of the transport (BT_HCI_DRIVER_BUS_*) | |
uint32_t | quirks |
Specific controller quirks. | |
int(* | open )(void) |
Open the HCI transport. | |
int(* | close )(void) |
Close the HCI transport. | |
int(* | send )(struct net_buf *buf) |
Send HCI buffer to controller. | |
int(* | setup )(const struct bt_hci_setup_params *params) |
HCI vendor-specific setup. | |
Abstraction which represents the HCI transport to the controller.
This struct is used to represent the HCI transport to the Bluetooth controller.
enum bt_hci_driver_bus bt_hci_driver::bus |
Bus of the transport (BT_HCI_DRIVER_BUS_*)
int(* bt_hci_driver::close) (void) |
Close the HCI transport.
Closes the HCI transport. This function must not return until the transport is closed.
const char* bt_hci_driver::name |
Name of the driver.
int(* bt_hci_driver::open) (void) |
Open the HCI transport.
Opens the HCI transport for operation. This function must not return until the transport is ready for operation, meaning it is safe to start calling the send() handler.
uint32_t bt_hci_driver::quirks |
Specific controller quirks.
These are set by the HCI driver and acted upon by the host. They can either be statically set at buildtime, or set at runtime before the HCI driver's open() callback returns.
int(* bt_hci_driver::send) (struct net_buf *buf) |
Send HCI buffer to controller.
Send an HCI command or ACL data to the controller. The exact type of the data can be checked with the help of bt_buf_get_type().
buf | Buffer containing data to be sent to the controller. |
int(* bt_hci_driver::setup) (const struct bt_hci_setup_params *params) |
HCI vendor-specific setup.
Executes vendor-specific commands sequence to initialize BT Controller before BT Host executes Reset sequence.
CONFIG_BT_HCI_SETUP
must be selected for this field to be available.