|
USBIP C library 0.7.0
Virtual USB devices & host drivers over USB/IP
|
Collaboration diagram for Bluetooth - HCI transport:Files | |
| file | bluetooth.h |
| USB Bluetooth (class 0xE0/0x01/0x01) DEVICE class. | |
Data Structures | |
| struct | bt_opts |
| Options passed to bluetooth_add(). More... | |
Typedefs | |
| typedef struct bt_hci | bt_hci |
| One Bluetooth HCI transport: a single instance of the class on a device. | |
Functions | |
| bt_hci * | bluetooth_add (usbip_device *dev, const bt_opts *opts) |
| Add a Bluetooth dongle (HCI transport) to a device. | |
| int | bt_send_event (bt_hci *iface, const void *evt, int len) |
| Send an HCI event to the host on the interrupt-IN endpoint (controller -> host). | |
| int | bt_send_acl (bt_hci *iface, const void *pdu, int len) |
| Send an ACL data PDU to the host on the bulk-IN endpoint (controller -> host). | |
| void * | bluetooth_user (bt_hci *iface) |
| Retrieve the opaque application pointer passed as bt_opts::user. | |
Variables | |
| const usbip_device_class | usbip_device_bluetooth |
| The Bluetooth class, for usbip_device_add_class() | |
One Bluetooth HCI transport: a single instance of the class on a device.
Opaque - create one with bluetooth_add() and use the functions below. Distinct from the other classes' handles, so mixing them up is a compile error rather than a misread state block.
| bt_hci * bluetooth_add | ( | usbip_device * | dev, |
| const bt_opts * | opts | ||
| ) |
Add a Bluetooth dongle (HCI transport) to a device.
Sets the device class to USB_CLASS_WIRELESS / 0x01 / 0x01 (Wireless Controller / RF / Bluetooth).
| dev | the device. |
| opts | host->controller callbacks + options (see bt_opts). |
NULL. | int bt_send_event | ( | bt_hci * | iface, |
| const void * | evt, | ||
| int | len | ||
| ) |
Send an HCI event to the host on the interrupt-IN endpoint (controller -> host).
| iface | the interface from bluetooth_add(). |
| evt | the HCI event packet. |
| len | event length in bytes. |
| int bt_send_acl | ( | bt_hci * | iface, |
| const void * | pdu, | ||
| int | len | ||
| ) |
Send an ACL data PDU to the host on the bulk-IN endpoint (controller -> host).
| iface | the interface from bluetooth_add(). |
| pdu | the ACL PDU (4-byte header + payload). |
| len | PDU length in bytes. |
| void * bluetooth_user | ( | bt_hci * | iface | ) |
Retrieve the opaque application pointer passed as bt_opts::user.
| iface | the interface from bluetooth_add(). |
user pointer.
|
extern |
The Bluetooth class, for usbip_device_add_class()