USBIP C library 0.7.0
Virtual USB devices & host drivers over USB/IP
Loading...
Searching...
No Matches
bt_opts Struct Reference

Options passed to bluetooth_add(). More...

#include <classes/bluetooth.h>

Data Fields

void(* on_command )(bt_hci *iface, const uint8_t *cmd, int len)
 An HCI command arrived from the host on endpoint 0 (host -> controller).
 
void(* on_acl )(bt_hci *iface, const uint8_t *pdu, int len)
 An ACL data PDU arrived from the host on the bulk-OUT endpoint (host -> controller).
 
int with_sco
 Declare the SCO isochronous interface (no-op, fidelity)
 
void * user
 Opaque app pointer, retrievable via bluetooth_user()

 

Detailed Description

Options passed to bluetooth_add().

The callbacks fire on the USB serving thread; keep them short and hand work off to the controller.

Field Documentation

◆ on_command

void(* bt_opts::on_command) (bt_hci *iface, const uint8_t *cmd, int len)

An HCI command arrived from the host on endpoint 0 (host -> controller).

Parameters
ifacethe Bluetooth handle.
cmdthe HCI command packet.
lennumber of bytes in cmd.

◆ on_acl

void(* bt_opts::on_acl) (bt_hci *iface, const uint8_t *pdu, int len)

An ACL data PDU arrived from the host on the bulk-OUT endpoint (host -> controller).

Parameters
ifacethe Bluetooth handle.
pduthe ACL PDU (4-byte header + payload).
lennumber of bytes in pdu.

◆ with_sco

int bt_opts::with_sco

Declare the SCO isochronous interface (no-op, fidelity)

◆ user

void* bt_opts::user

Opaque app pointer, retrievable via bluetooth_user()


The documentation for this struct was generated from the following file: