Document ERROR_BUSY return value

This commit is contained in:
Klaus Reimer 2018-10-08 22:44:01 +02:00
parent 56d32eea99
commit 7ab6e6d3ed
1 changed files with 6 additions and 5 deletions

View File

@ -1940,11 +1940,12 @@ public final class LibUsb
* timeout, use value 0.
* @return on success the number of bytes actually transferred,
* {@link #ERROR_TIMEOUT} if the transfer timed out,
* {@link #ERROR_PIPE} if the control request was not supported by
* the device, {@link #ERROR_NO_DEVICE} if the device has been
* disconnected, {@link LIBUSB_ERROR_INVALID_PARAM} if the transfer
* size is larger than the operating system and/or hardware can
* support. Another ERROR code on other failures
* {@link #ERROR_PIPE} if the control request was not supported by the device,
* {@link #ERROR_NO_DEVICE} if the device has been disconnected,
* {@link #ERROR_BUSY} if called from event handling context,
* {@link #ERROR_INVALID_PARAM} if the transfer size is larger than the operating system and/or
* hardware can support.
* Another ERROR code on other failures
*/
public static native int controlTransfer(final DeviceHandle handle,
final byte bmRequestType, final byte bRequest, final short wValue,