|
USBIP C library 0.7.0
Virtual USB devices & host drivers over USB/IP
|
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() | |
Options passed to bluetooth_add().
The callbacks fire on the USB serving thread; keep them short and hand work off to the controller.
| 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).
| iface | the Bluetooth handle. |
| cmd | the HCI command packet. |
| len | number of bytes in cmd. |
| 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).
| iface | the Bluetooth handle. |
| pdu | the ACL PDU (4-byte header + payload). |
| len | number of bytes in pdu. |
| int bt_opts::with_sco |
Declare the SCO isochronous interface (no-op, fidelity)
| void* bt_opts::user |
Opaque app pointer, retrievable via bluetooth_user()