lib: Add USB transfer helpers

Those helpers will provide more arguments in their callbacks, and handle
the libusb_transfer lifecycle, making it easier to use for drivers.
This commit is contained in:
Bastien Nocera
2018-09-26 14:11:09 +02:00
parent 192c4f3cfc
commit 96f2e07cdd
3 changed files with 208 additions and 0 deletions

View File

@@ -197,5 +197,11 @@ FP_INSTANCE_DATA
<SECTION>
<INCLUDE>fpi-usb.h</INCLUDE>
<FILE>fpi-usb</FILE>
fpi_usb_transfer
fpi_usb_transfer_cb_fn
fpi_usb_alloc
fpi_usb_fill_bulk_transfer
fpi_usb_submit_transfer
fpi_usb_cancel_transfer
</SECTION>