libusb20.3 (196696) | libusb20.3 (199575) |
---|---|
1.\" 2.\" Copyright (c) 2008 Hans Petter Selasky 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" | 1.\" 2.\" Copyright (c) 2008 Hans Petter Selasky 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" |
27.\" $FreeBSD: head/lib/libusb/libusb20.3 196696 2009-08-31 13:23:55Z jhb $ | 27.\" $FreeBSD: head/lib/libusb/libusb20.3 199575 2009-11-20 08:57:25Z thompsa $ |
28.\" | 28.\" |
29.Dd June 22, 2009 | 29.Dd November 18, 2009 |
30.Dt LIBUSB20 3 31.Os 32.Sh NAME 33.Nm libusb20 34. 35.Nd "USB access library" 36. 37. --- 55 unchanged lines hidden (view full) --- 93.Ft void 94.Fn libusb20_tr_setup_bulk "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint32_t timeout" 95.Ft void 96.Fn libusb20_tr_setup_control "struct libusb20_transfer *xfer" "void *psetup" "void *pbuf" "uint32_t timeout" 97.Ft void 98.Fn libusb20_tr_setup_intr "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint32_t timeout" 99.Ft void 100.Fn libusb20_tr_setup_isoc "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint61_t fr_index" | 30.Dt LIBUSB20 3 31.Os 32.Sh NAME 33.Nm libusb20 34. 35.Nd "USB access library" 36. 37. --- 55 unchanged lines hidden (view full) --- 93.Ft void 94.Fn libusb20_tr_setup_bulk "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint32_t timeout" 95.Ft void 96.Fn libusb20_tr_setup_control "struct libusb20_transfer *xfer" "void *psetup" "void *pbuf" "uint32_t timeout" 97.Ft void 98.Fn libusb20_tr_setup_intr "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint32_t timeout" 99.Ft void 100.Fn libusb20_tr_setup_isoc "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint61_t fr_index" |
101.Ft uint8_t 102.Fn libusb20_tr_bulk_intr_sync "struct libusb20_transfer *xfer" "void *pbuf" "uint32_t length" "uint32_t *pactlen" "uint32_t timeout" |
|
101.Ft void 102.Fn libusb20_tr_start "struct libusb20_transfer *xfer" 103.Ft void 104.Fn libusb20_tr_stop "struct libusb20_transfer *xfer" 105.Ft void 106.Fn libusb20_tr_submit "struct libusb20_transfer *xfer" 107.Ft void * 108.Fn libusb20_tr_get_priv_sc0 "struct libusb20_transfer *xfer" --- 337 unchanged lines hidden (view full) --- 446. 447.Pp 448. 449.Fn libusb20_tr_setup_isoc 450is a helper function for setting up a multi frame USB ISOCHRONOUS transfer. 451. 452.Pp 453. | 103.Ft void 104.Fn libusb20_tr_start "struct libusb20_transfer *xfer" 105.Ft void 106.Fn libusb20_tr_stop "struct libusb20_transfer *xfer" 107.Ft void 108.Fn libusb20_tr_submit "struct libusb20_transfer *xfer" 109.Ft void * 110.Fn libusb20_tr_get_priv_sc0 "struct libusb20_transfer *xfer" --- 337 unchanged lines hidden (view full) --- 448. 449.Pp 450. 451.Fn libusb20_tr_setup_isoc 452is a helper function for setting up a multi frame USB ISOCHRONOUS transfer. 453. 454.Pp 455. |
456.Fn libusb20_tr_bulk_intr_sync 457will perform a synchronous BULK or INTERRUPT transfer having length given by the 458.Fa length 459argument and buffer pointer given by the 460.Fa pbuf 461argument on the USB transfer given by the 462.Fa xfer 463argument. 464. 465If the 466.Fa pactlen 467argument is non-NULL the actual transfer length will be stored at the given pointer destination. 468. 469If the 470.Fa timeout 471argument is non-zero the transfer will timeout after the given value in milliseconds. 472. 473This function does not change the transfer flags, like short packet not ok. 474. 475This function returns zero on success else a LIBUSB20_TRANSFER_XXX value is returned. 476. 477.Pp 478. |
|
454.Fn libusb20_tr_start 455will get the USB transfer started, if not already 456started. 457. 458This function will not get the transfer queued in hardware. 459. 460This function is non-blocking. 461. --- 484 unchanged lines hidden --- | 479.Fn libusb20_tr_start 480will get the USB transfer started, if not already 481started. 482. 483This function will not get the transfer queued in hardware. 484. 485This function is non-blocking. 486. --- 484 unchanged lines hidden --- |