Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Bluetooth HCI Driver Backend API

Data Structures

struct  bt_hci_driver_api
  Driver Operations Bluetooth HCI driver operations More...

Typedefs

typedef int(* bt_hci_recv_t) (const struct device *dev, struct net_buf *buf)
 Deliver HCI data from the controller to the host.
typedef int(* bt_hci_api_open_t) (const struct device *dev, bt_hci_recv_t recv)
 Callback API to open the HCI transport.
typedef int(* bt_hci_api_close_t) (const struct device *dev)
 Callback API to close the HCI transport.
typedef int(* bt_hci_api_send_t) (const struct device *dev, struct net_buf *buf)
 Callback API to send an HCI buffer to the controller.
typedef int(* bt_hci_api_setup_t) (const struct device *dev, const struct bt_hci_setup_params *param)
 Callback API for HCI vendor-specific setup.

Detailed Description

This group contains the API type definitions, callback signatures, and other helpers required to implement a Bluetooth HCI driver.

Typedef Documentation

◆ bt_hci_api_close_t

typedef int(* bt_hci_api_close_t) (const struct device *dev)

#include <zephyr/drivers/bluetooth.h>

Callback API to close the HCI transport.

See bt_hci_close() for argument description

◆ bt_hci_api_open_t

typedef int(* bt_hci_api_open_t) (const struct device *dev, bt_hci_recv_t recv)

#include <zephyr/drivers/bluetooth.h>

Callback API to open the HCI transport.

See bt_hci_open() for argument description

◆ bt_hci_api_send_t

typedef int(* bt_hci_api_send_t) (const struct device *dev, struct net_buf *buf)

#include <zephyr/drivers/bluetooth.h>

Callback API to send an HCI buffer to the controller.

See bt_hci_send() for argument description

◆ bt_hci_api_setup_t

typedef int(* bt_hci_api_setup_t) (const struct device *dev, const struct bt_hci_setup_params *param)

#include <zephyr/drivers/bluetooth.h>

Callback API for HCI vendor-specific setup.

See bt_hci_setup() for argument description

◆ bt_hci_recv_t

typedef int(* bt_hci_recv_t) (const struct device *dev, struct net_buf *buf)

#include <zephyr/drivers/bluetooth.h>

Deliver HCI data from the controller to the host.

Registered with bt_hci_open(). The HCI driver invokes this callback from thread context.