libusb20.3 (194674) | libusb20.3 (195957) |
---|---|
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 194674 2009-06-23 01:00:26Z thompsa $ | 27.\" $FreeBSD: head/lib/libusb/libusb20.3 195957 2009-07-30 00:11:41Z alfred $ |
28.\" 29.Dd June 22, 2009 30.Dt LIBUSB20 3 31.Os 32.Sh NAME 33.Nm libusb20 34. 35.Nd "USB access library" --- 269 unchanged lines hidden (view full) --- 305. 306The packet length can be used round up buffer sizes so that short USB 307packets are avoided for proxy buffers. 308. 309. 310.Pp 311. 312.Fn libusb20_tr_get_max_total_length | 28.\" 29.Dd June 22, 2009 30.Dt LIBUSB20 3 31.Os 32.Sh NAME 33.Nm libusb20 34. 35.Nd "USB access library" --- 269 unchanged lines hidden (view full) --- 305. 306The packet length can be used round up buffer sizes so that short USB 307packets are avoided for proxy buffers. 308. 309. 310.Pp 311. 312.Fn libusb20_tr_get_max_total_length |
313function will return the maximum value for the length sum of all 314USB frames associated with an USB transfer. | 313function will return the maximum value for the data length sum of all USB 314frames associated with an USB transfer. 315In case of control transfers the value returned does not include the 316length of the SETUP packet, 8 bytes, which is part of frame zero. 317The returned value of this function is always aligned to the maximum 318packet size, wMaxPacketSize, of the endpoint which the USB transfer is 319bound to. |
315. 316.Pp 317. 318.Fn libusb20_tr_get_status 319will return the status of an USB transfer. 320. 321Status values are defined by a set of LIBUSB20_TRANSFER_XXX enums. 322. --- 618 unchanged lines hidden --- | 320. 321.Pp 322. 323.Fn libusb20_tr_get_status 324will return the status of an USB transfer. 325. 326Status values are defined by a set of LIBUSB20_TRANSFER_XXX enums. 327. --- 618 unchanged lines hidden --- |