libusb20.3 (09c817ba36db7c3a4ff5e25ac55816ca181a403d) | libusb20.3 (390065b18e0ee636279b106ff06f0a1463589ab1) |
---|---|
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: --- 296 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 | 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: --- 296 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 --- |