Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hci_lockstep.h File Reference

Bluetooth HCI lockstep command helper. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <zephyr/bluetooth/hci_pkt.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/net_buf.h>

Go to the source code of this file.

Data Structures

struct  bt_hci_lockstep
 Lockstep helper. More...

Typedefs

typedef int(* bt_hci_lockstep_send_t) (const struct device *dev, const uint8_t *pkt, size_t len)
 Transport send function of a lockstep helper.

Functions

void bt_hci_lockstep_init (struct bt_hci_lockstep *ls, const struct device *dev, bt_hci_lockstep_send_t send)
 Initialize a lockstep helper.
bool bt_hci_lockstep_feed (struct bt_hci_lockstep *ls, const uint8_t *pkt, size_t len)
 Feed a received HCI packet to a lockstep helper.
int bt_hci_lockstep_cmd_send_sync (struct bt_hci_lockstep *ls, uint16_t opcode, struct net_buf_simple *cmd, struct net_buf_simple *rsp)
 Send an HCI command and wait for its response.

Detailed Description

Bluetooth HCI lockstep command helper.