Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

actualLength() - Method in class org.usb4java.IsoPacketDescriptor
Returns the amount of data that was actually transferred.
actualLength() - Method in class org.usb4java.Transfer
Returns the actual length of data that was transferred.
allocateByteBuffer(int) - Static method in class org.usb4java.BufferUtils
Allocates a new direct ByteBuffer with the specified size and returns it.
allocateIntBuffer() - Static method in class org.usb4java.BufferUtils
Allocates a new IntBuffer with space for exactly one integer value.
allocateLongBuffer() - Static method in class org.usb4java.BufferUtils
Allocates a new LongBuffer with space for exactly one long value.
allocStreams(DeviceHandle, int, byte[]) - Static method in class org.usb4java.LibUsb
Allocate up to numStreams USB bulk streams on the specified endpoints.
allocTransfer() - Static method in class org.usb4java.LibUsb
Allocate a libusb transfer without support for isochronous transfers.
allocTransfer(int) - Static method in class org.usb4java.LibUsb
Allocate a libusb transfer with a specified number of isochronous packet descriptors.
altsetting() - Method in class org.usb4java.Interface
Returns the array with interface descriptors.
attachKernelDriver(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Re-attach an interface's kernel driver, which was previously detached using LibUsb.detachKernelDriver(DeviceHandle, int).

B

bAlternateSetting() - Method in class org.usb4java.InterfaceDescriptor
Returns the value used to select this alternate setting for this interface.
bcdDevice() - Method in class org.usb4java.DeviceDescriptor
Returns the device release number in binary-coded decimal.
bcdUSB() - Method in class org.usb4java.DeviceDescriptor
Returns the USB specification release number in binary-coded decimal.
bConfigurationValue() - Method in class org.usb4java.ConfigDescriptor
Returns the identifier value for this configuration.
bDescriptorType() - Method in class org.usb4java.BosDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.BosDevCapabilityDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.ConfigDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.ContainerIdDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.DeviceDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.EndpointDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.InterfaceDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the descriptor type.
bDescriptorType() - Method in class org.usb4java.Usb20ExtensionDescriptor
Returns the descriptor type.
bDevCapabilityType() - Method in class org.usb4java.BosDevCapabilityDescriptor
Returns the device capability type.
bDevCapabilityType() - Method in class org.usb4java.ContainerIdDescriptor
Returns the device capability type.
bDevCapabilityType() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the device capability type.
bDevCapabilityType() - Method in class org.usb4java.Usb20ExtensionDescriptor
Returns the device capability type.
bDeviceClass() - Method in class org.usb4java.DeviceDescriptor
Returns the USB-IF class code for the device.
bDeviceProtocol() - Method in class org.usb4java.DeviceDescriptor
Returns the USB-IF protocol code for the device, qualified by the bDeviceClass and bDeviceSubClass values.
bDeviceSubClass() - Method in class org.usb4java.DeviceDescriptor
Returns the USB-IF subclass code for the device, qualified by the bDeviceClass value.
bEndpointAddress() - Method in class org.usb4java.EndpointDescriptor
The address of the endpoint described by this descriptor.
bFunctionalitySupport() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the lowest speed at which all the functionality supported by the device is available to the user.
bInterfaceClass() - Method in class org.usb4java.InterfaceDescriptor
Returns the USB-IF class code for this interface.
bInterfaceNumber() - Method in class org.usb4java.InterfaceDescriptor
Returns the number of this interface.
bInterfaceProtocol() - Method in class org.usb4java.InterfaceDescriptor
Returns the USB-IF protocol code for this interface, qualified by the bInterfaceClass and bInterfaceSubClass values.
bInterfaceSubClass() - Method in class org.usb4java.InterfaceDescriptor
Returns the USB-IF subclass code for this interface, qualified by the bInterfaceClass value.
bInterval() - Method in class org.usb4java.EndpointDescriptor
Returns the interval for polling endpoint for data transfers.
bLength() - Method in class org.usb4java.BosDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.BosDevCapabilityDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.ConfigDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.ContainerIdDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.DeviceDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.EndpointDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.InterfaceDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the size of this descriptor (in bytes).
bLength() - Method in class org.usb4java.Usb20ExtensionDescriptor
Returns the size of this descriptor (in bytes).
BM_LPM_SUPPORT - Static variable in class org.usb4java.LibUsb
Supports Link Power Management (LPM).
BM_LTM_SUPPORT - Static variable in class org.usb4java.LibUsb
Supports Latency Tolerance Messages (LTM).
bmAttributes() - Method in class org.usb4java.ConfigDescriptor
Returns the configuration characteristics.
bmAttributes() - Method in class org.usb4java.EndpointDescriptor
Attributes which apply to the endpoint when it is configured using the bConfigurationValue.
bmAttributes() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns the attributes.
bmAttributes() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the bitmap of supported device level features.
bmAttributes() - Method in class org.usb4java.Usb20ExtensionDescriptor
Returns the bitmap of supported device level features.
bMaxBurst() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns the maximum number of packets the endpoint can send or receive as part of a burst.
bMaxPacketSize0() - Method in class org.usb4java.DeviceDescriptor
Returns the maximum packet size for endpoint 0.
bMaxPower() - Method in class org.usb4java.ConfigDescriptor
Returns the maximum power consumption of the USB device from this bus configuration when the device is fully operation.
bmRequestType() - Method in class org.usb4java.ControlSetup
Returns the request type.
bNumConfigurations() - Method in class org.usb4java.DeviceDescriptor
Returns the number of possible configurations.
bNumDeviceCaps() - Method in class org.usb4java.BosDescriptor
Returns the number of separate device capability descriptors in the BOS.
bNumEndpoints() - Method in class org.usb4java.InterfaceDescriptor
Returns the number of endpoints used by this interface (excluding the control endpoint).
bNumInterfaces() - Method in class org.usb4java.ConfigDescriptor
Returns the number of interfaces supported by this configuration.
BosDescriptor - Class in org.usb4java
A structure representing the Binary Device Object Store (BOS) descriptor.
BosDescriptor() - Constructor for class org.usb4java.BosDescriptor
Constructs a new BOS descriptor which can be passed to the LibUsb.getBosDescriptor(DeviceHandle, BosDescriptor) method.
BosDevCapabilityDescriptor - Class in org.usb4java
A generic representation of a BOS Device Capability descriptor.
bRefresh() - Method in class org.usb4java.EndpointDescriptor
For audio devices only: the rate at which synchronization feedback is provided.
bRequest() - Method in class org.usb4java.ControlSetup
Returns the request.
bReserved() - Method in class org.usb4java.ContainerIdDescriptor
Returns the reserved field.
bSynchAddress() - Method in class org.usb4java.EndpointDescriptor
For audio devices only: the address of the synch endpoint.
BT_CONTAINER_ID - Static variable in class org.usb4java.LibUsb
Container ID type.
BT_CONTAINER_ID_SIZE - Static variable in class org.usb4java.LibUsb
Size of a BOS descriptor.
BT_SS_USB_DEVICE_CAPABILITY - Static variable in class org.usb4java.LibUsb
SuperSpeed USB device capability.
BT_SS_USB_DEVICE_CAPABILITY_SIZE - Static variable in class org.usb4java.LibUsb
Size of a BOS descriptor.
BT_USB_2_0_EXTENSION - Static variable in class org.usb4java.LibUsb
USB 2.0 extensions.
BT_USB_2_0_EXTENSION_SIZE - Static variable in class org.usb4java.LibUsb
Size of a BOS descriptor.
BT_WIRELESS_USB_DEVICE_CAPABILITY - Static variable in class org.usb4java.LibUsb
Wireless USB device capability.
bU1DevExitLat() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the U1 Device Exit Latency.
bU2DevExitLat() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the U2 Device Exit Latency.
buffer() - Method in class org.usb4java.Transfer
Returns the data buffer.
BufferUtils - Class in org.usb4java
Provides some utility methods for working with IntBuffer and ByteBuffer.
bulkTransfer(DeviceHandle, byte, ByteBuffer, IntBuffer, long) - Static method in class org.usb4java.LibUsb
Perform a USB bulk transfer.

C

callback() - Method in class org.usb4java.Transfer
Returns the current callback object.
cancelTransfer(Transfer) - Static method in class org.usb4java.LibUsb
Asynchronously cancel a previously submitted transfer.
CAP_HAS_CAPABILITY - Static variable in class org.usb4java.LibUsb
The LibUsb.hasCapability(int) API is available.
CAP_HAS_HID_ACCESS - Static variable in class org.usb4java.LibUsb
The library can access HID devices without requiring user intervention.
CAP_HAS_HOTPLUG - Static variable in class org.usb4java.LibUsb
Hotplug support is available on this platform.
CAP_SUPPORTS_DETACH_KERNEL_DRIVER - Static variable in class org.usb4java.LibUsb
The library supports detaching of the default USB driver, using LibUsb.detachKernelDriver(DeviceHandle, int), if one is set by the OS kernel.
claimInterface(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Claim an interface on a given device handle.
CLASS_APPLICATION - Static variable in class org.usb4java.LibUsb
Application class.
CLASS_AUDIO - Static variable in class org.usb4java.LibUsb
Audio class.
CLASS_COMM - Static variable in class org.usb4java.LibUsb
Communications class.
CLASS_CONTENT_SECURITY - Static variable in class org.usb4java.LibUsb
Content Security.
CLASS_DATA - Static variable in class org.usb4java.LibUsb
Data class.
CLASS_DIAGNOSTIC_DEVICE - Static variable in class org.usb4java.LibUsb
Diagnostic Device.
CLASS_HID - Static variable in class org.usb4java.LibUsb
Human Interface Device class.
CLASS_HUB - Static variable in class org.usb4java.LibUsb
Hub class.
CLASS_IMAGE - Static variable in class org.usb4java.LibUsb
Image class.
CLASS_MASS_STORAGE - Static variable in class org.usb4java.LibUsb
Mass storage class.
CLASS_PER_INTERFACE - Static variable in class org.usb4java.LibUsb
In the context of a device descriptor, this bDeviceClass value indicates that each interface specifies its own class information and all interfaces operate independently.
CLASS_PERSONAL_HEALTHCARE - Static variable in class org.usb4java.LibUsb
Personal Healthcare.
CLASS_PHYSICAL - Static variable in class org.usb4java.LibUsb
Physical.
CLASS_PRINTER - Static variable in class org.usb4java.LibUsb
Printer class.
CLASS_PTP - Static variable in class org.usb4java.LibUsb
Image class.
CLASS_SMART_CARD - Static variable in class org.usb4java.LibUsb
Smart Card.
CLASS_VENDOR_SPEC - Static variable in class org.usb4java.LibUsb
Class is vendor-specific.
CLASS_VIDEO - Static variable in class org.usb4java.LibUsb
Video.
CLASS_WIRELESS - Static variable in class org.usb4java.LibUsb
Wireless class.
clearHalt(DeviceHandle, byte) - Static method in class org.usb4java.LibUsb
Clear the halt/stall condition for an endpoint.
close(DeviceHandle) - Static method in class org.usb4java.LibUsb
Close a device handle.
ConfigDescriptor - Class in org.usb4java
A structure representing the standard USB configuration descriptor.
ConfigDescriptor() - Constructor for class org.usb4java.ConfigDescriptor
Constructs a new config descriptor which can be passed to the LibUsb.getConfigDescriptor(Device, byte, ConfigDescriptor) method.
containerId() - Method in class org.usb4java.ContainerIdDescriptor
Returns the 128 bit UUID.
ContainerIdDescriptor - Class in org.usb4java
A structure representing the Container ID descriptor.
ContainerIdDescriptor() - Constructor for class org.usb4java.ContainerIdDescriptor
Constructs a new Container Id descriptor which can be passed to the LibUsb.getContainerIdDescriptor(Context, BosDevCapabilityDescriptor, ContainerIdDescriptor) method.
Context - Class in org.usb4java
Structure representing a libusb session.
Context() - Constructor for class org.usb4java.Context
Constructs a new libusb context.
CONTROL_SETUP_SIZE - Static variable in class org.usb4java.LibUsb
The size of a control setup packet.
ControlSetup - Class in org.usb4java
Setup packet for control transfers.
controlTransfer(DeviceHandle, byte, byte, short, short, ByteBuffer, long) - Static method in class org.usb4java.LibUsb
Perform a USB control transfer.
controlTransferGetData(Transfer) - Static method in class org.usb4java.LibUsb
Get the data section of a control transfer.
controlTransferGetSetup(Transfer) - Static method in class org.usb4java.LibUsb
Get the control setup packet of a control transfer.
cpuToLe16(short) - Static method in class org.usb4java.LibUsb
Convert a 16-bit value from host-endian to little-endian format.

D

decodeBCD(short) - Static method in class org.usb4java.DescriptorUtils
Decodes a binary-coded decimal into a string and returns it.
DescriptorUtils - Class in org.usb4java
Utility methods used for descriptor dumps.
detachKernelDriver(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Detach a kernel driver from an interface.
devCapability() - Method in class org.usb4java.BosDescriptor
Returns the array with the device capability descriptors.
devCapabilityData() - Method in class org.usb4java.BosDevCapabilityDescriptor
Returns the device capability data (bLength - 3 bytes).
devHandle() - Method in class org.usb4java.Transfer
Returns the handle of the device that this transfer will be submitted to.
Device - Class in org.usb4java
Structure representing a USB device detected on the system.
DeviceDescriptor - Class in org.usb4java
A structure representing the standard USB device descriptor.
DeviceDescriptor() - Constructor for class org.usb4java.DeviceDescriptor
Constructs a new device descriptor which can be passed to the LibUsb.getDeviceDescriptor(Device, DeviceDescriptor) method.
DeviceHandle - Class in org.usb4java
Structure representing a handle on a USB device.
DeviceHandle() - Constructor for class org.usb4java.DeviceHandle
Constructs a new device handle.
DeviceList - Class in org.usb4java
List of devices as returned by LibUsb.getDeviceList(Context, DeviceList).
DeviceList() - Constructor for class org.usb4java.DeviceList
Constructs a new device list.
devMemAlloc(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Attempts to allocate a block of persistent DMA memory suitable for transfers against the given device.
devMemFree(DeviceHandle, ByteBuffer, int) - Static method in class org.usb4java.LibUsb
Free device memory allocated with LibUsb.devMemAlloc(DeviceHandle, int).
DT_BOS - Static variable in class org.usb4java.LibUsb
BOS descriptor.
DT_BOS_MAX_SIZE - Static variable in class org.usb4java.LibUsb
We unwrap the BOS => define its maximum size.
DT_BOS_SIZE - Static variable in class org.usb4java.LibUsb
Size of a BOS descriptor.
DT_CONFIG - Static variable in class org.usb4java.LibUsb
Configuration descriptor.
DT_CONFIG_SIZE - Static variable in class org.usb4java.LibUsb
Size of a config descriptor.
DT_DEVICE - Static variable in class org.usb4java.LibUsb
Device descriptor.
DT_DEVICE_CAPABILITY - Static variable in class org.usb4java.LibUsb
Device Capability descriptor.
DT_DEVICE_CAPABILITY_SIZE - Static variable in class org.usb4java.LibUsb
Size of a device capability descriptor.
DT_DEVICE_SIZE - Static variable in class org.usb4java.LibUsb
Size of a device descriptor.
DT_ENDPOINT - Static variable in class org.usb4java.LibUsb
Endpoint descriptor.
DT_ENDPOINT_AUDIO_SIZE - Static variable in class org.usb4java.LibUsb
Size of an endpoint descriptor with audio extension.
DT_ENDPOINT_SIZE - Static variable in class org.usb4java.LibUsb
Size of an endpoint descriptor.
DT_HID - Static variable in class org.usb4java.LibUsb
HID descriptor.
DT_HUB - Static variable in class org.usb4java.LibUsb
Hub descriptor.
DT_HUB_NONVAR_SIZE - Static variable in class org.usb4java.LibUsb
Size of a hub descriptor.
DT_INTERFACE - Static variable in class org.usb4java.LibUsb
Interface descriptor.
DT_INTERFACE_SIZE - Static variable in class org.usb4java.LibUsb
Size of an interface descriptor.
DT_PHYSICAL - Static variable in class org.usb4java.LibUsb
Physical descriptor.
DT_REPORT - Static variable in class org.usb4java.LibUsb
HID report descriptor.
DT_SS_ENDPOINT_COMPANION - Static variable in class org.usb4java.LibUsb
SuperSpeed Endpoint Companion descriptor.
DT_SS_ENDPOINT_COMPANION_SIZE - Static variable in class org.usb4java.LibUsb
Size of a SuperSpeed endpoint companion descriptor.
DT_STRING - Static variable in class org.usb4java.LibUsb
String descriptor.
DT_SUPERSPEED_HUB - Static variable in class org.usb4java.LibUsb
SuperSpeed Hub descriptor.
dump() - Method in class org.usb4java.BosDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.BosDevCapabilityDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.ConfigDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.ContainerIdDescriptor
Returns a dump of this descriptor.
dump(ByteBuffer) - Static method in class org.usb4java.DescriptorUtils
Dumps the specified byte buffer into a hex string and returns it.
dump(DeviceDescriptor) - Static method in class org.usb4java.DescriptorUtils
Dumps the specified USB device descriptor into a string and returns it.
dump(DeviceDescriptor, String, String, String) - Static method in class org.usb4java.DescriptorUtils
Dumps the specified USB device descriptor into a string and returns it.
dump(ConfigDescriptor) - Static method in class org.usb4java.DescriptorUtils
Dumps the specified USB configuration descriptor into a string and returns it.
dump(InterfaceDescriptor) - Static method in class org.usb4java.DescriptorUtils
Dumps the specified USB interface descriptor into a string and returns it.
dump(EndpointDescriptor) - Static method in class org.usb4java.DescriptorUtils
Dumps the specified USB endpoint descriptor into a string and returns it.
dump() - Method in class org.usb4java.DeviceDescriptor
Returns a dump of this descriptor.
dump(DeviceHandle) - Method in class org.usb4java.DeviceDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.EndpointDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.Interface
Returns a dump of this interface.
dump() - Method in class org.usb4java.InterfaceDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns a dump of this descriptor.
dump() - Method in class org.usb4java.Usb20ExtensionDescriptor
Returns a dump of this descriptor.

E

endpoint() - Method in class org.usb4java.InterfaceDescriptor
Returns the array with endpoints.
endpoint() - Method in class org.usb4java.Transfer
Returns the address of the endpoint where this transfer will be sent.
ENDPOINT_ADDRESS_MASK - Static variable in class org.usb4java.LibUsb
Endpoint address mask.
ENDPOINT_DIR_MASK - Static variable in class org.usb4java.LibUsb
Endpoint direction mask.
ENDPOINT_IN - Static variable in class org.usb4java.LibUsb
In: device-to-host.
ENDPOINT_OUT - Static variable in class org.usb4java.LibUsb
Out: host-to-device.
EndpointDescriptor - Class in org.usb4java
A structure representing the standard USB endpoint descriptor.
equals(Object) - Method in class org.usb4java.BosDescriptor
 
equals(Object) - Method in class org.usb4java.BosDevCapabilityDescriptor
 
equals(Object) - Method in class org.usb4java.ConfigDescriptor
 
equals(Object) - Method in class org.usb4java.ContainerIdDescriptor
 
equals(Object) - Method in class org.usb4java.Context
 
equals(Object) - Method in class org.usb4java.ControlSetup
 
equals(Object) - Method in class org.usb4java.Device
 
equals(Object) - Method in class org.usb4java.DeviceDescriptor
 
equals(Object) - Method in class org.usb4java.DeviceHandle
 
equals(Object) - Method in class org.usb4java.DeviceList
 
equals(Object) - Method in class org.usb4java.EndpointDescriptor
 
equals(Object) - Method in class org.usb4java.HotplugCallbackHandle
 
equals(Object) - Method in class org.usb4java.Interface
 
equals(Object) - Method in class org.usb4java.InterfaceDescriptor
 
equals(Object) - Method in class org.usb4java.IsoPacketDescriptor
 
equals(Object) - Method in class org.usb4java.Pollfd
 
equals(Object) - Method in class org.usb4java.Pollfds
 
equals(Object) - Method in class org.usb4java.SsEndpointCompanionDescriptor
 
equals(Object) - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
 
equals(Object) - Method in class org.usb4java.Transfer
 
equals(Object) - Method in class org.usb4java.Usb20ExtensionDescriptor
 
equals(Object) - Method in class org.usb4java.Version
 
ERROR_ACCESS - Static variable in class org.usb4java.LibUsb
Access denied (insufficient permissions).
ERROR_BUSY - Static variable in class org.usb4java.LibUsb
Resource busy.
ERROR_COUNT - Static variable in class org.usb4java.LibUsb
Total number of error codes.
ERROR_INTERRUPTED - Static variable in class org.usb4java.LibUsb
System call interrupted (perhaps due to signal).
ERROR_INVALID_PARAM - Static variable in class org.usb4java.LibUsb
Invalid parameter.
ERROR_IO - Static variable in class org.usb4java.LibUsb
Input/output error.
ERROR_NO_DEVICE - Static variable in class org.usb4java.LibUsb
No such device (it may have been disconnected).
ERROR_NO_MEM - Static variable in class org.usb4java.LibUsb
Insufficient memory.
ERROR_NOT_FOUND - Static variable in class org.usb4java.LibUsb
Entity not found.
ERROR_NOT_SUPPORTED - Static variable in class org.usb4java.LibUsb
Operation not supported or unimplemented on this platform.
ERROR_OTHER - Static variable in class org.usb4java.LibUsb
Other error.
ERROR_OVERFLOW - Static variable in class org.usb4java.LibUsb
Overflow.
ERROR_PIPE - Static variable in class org.usb4java.LibUsb
Pipe error.
ERROR_TIMEOUT - Static variable in class org.usb4java.LibUsb
Operation timed out.
errorName(int) - Static method in class org.usb4java.LibUsb
Returns a string with the ASCII name of a libusb error or transfer status code.
eventHandlerActive(Context) - Static method in class org.usb4java.LibUsb
Determine if an active thread is handling events (i.e.
eventHandlingOk(Context) - Static method in class org.usb4java.LibUsb
Determine if it is still OK for this thread to be doing event handling.
events() - Method in class org.usb4java.Pollfd
Returns the event flags to poll.
exit(Context) - Static method in class org.usb4java.LibUsb
Deinitialize libusb.
extra() - Method in class org.usb4java.ConfigDescriptor
Extra descriptors.
extra() - Method in class org.usb4java.EndpointDescriptor
Extra descriptors.
extra() - Method in class org.usb4java.InterfaceDescriptor
Extra descriptors.
extraLength() - Method in class org.usb4java.ConfigDescriptor
Length of the extra descriptors, in bytes.
extraLength() - Method in class org.usb4java.EndpointDescriptor
Length of the extra descriptors, in bytes.
extraLength() - Method in class org.usb4java.InterfaceDescriptor
Length of the extra descriptors, in bytes.

F

fd() - Method in class org.usb4java.Pollfd
Returns the numeric file descriptor.
fillBulkStreamTransfer(Transfer, DeviceHandle, byte, int, ByteBuffer, TransferCallback, Object, long) - Static method in class org.usb4java.LibUsb
Helper function to populate the required Transfer fields for a bulk transfer using bulk streams.
fillBulkTransfer(Transfer, DeviceHandle, byte, ByteBuffer, TransferCallback, Object, long) - Static method in class org.usb4java.LibUsb
Helper function to populate the required Transfer fields for a bulk transfer.
fillControlSetup(ByteBuffer, byte, byte, short, short, short) - Static method in class org.usb4java.LibUsb
Helper function to populate the setup packet (first 8 bytes of the data buffer) for a control transfer.
fillControlTransfer(Transfer, DeviceHandle, ByteBuffer, TransferCallback, Object, long) - Static method in class org.usb4java.LibUsb
Helper function to populate the required Transfer fields for a control transfer.
fillInterruptTransfer(Transfer, DeviceHandle, byte, ByteBuffer, TransferCallback, Object, long) - Static method in class org.usb4java.LibUsb
Helper function to populate the required Transfer fields for an interrupt transfer.
fillIsoTransfer(Transfer, DeviceHandle, byte, ByteBuffer, int, TransferCallback, Object, long) - Static method in class org.usb4java.LibUsb
Helper function to populate the required Transfer fields for an isochronous transfer.
flags() - Method in class org.usb4java.Transfer
Returns the bitwise OR combination of libusb transfer flags.
freeBosDescriptor(BosDescriptor) - Static method in class org.usb4java.LibUsb
Free a BOS descriptor obtained from LibUsb.getBosDescriptor(DeviceHandle, BosDescriptor).
freeConfigDescriptor(ConfigDescriptor) - Static method in class org.usb4java.LibUsb
freeContainerIdDescriptor(ContainerIdDescriptor) - Static method in class org.usb4java.LibUsb
freeDeviceList(DeviceList, boolean) - Static method in class org.usb4java.LibUsb
Frees a list of devices previously discovered using LibUsb.getDeviceList(Context, DeviceList).
freePollfds(Pollfds) - Static method in class org.usb4java.LibUsb
Free a list of Pollfd structures.
freeSsEndpointCompanionDescriptor(SsEndpointCompanionDescriptor) - Static method in class org.usb4java.LibUsb
freeSsUsbDeviceCapabilityDescriptor(SsUsbDeviceCapabilityDescriptor) - Static method in class org.usb4java.LibUsb
freeStreams(DeviceHandle, byte[]) - Static method in class org.usb4java.LibUsb
Free USB bulk streams allocated with LibUsb.allocStreams().
freeTransfer(Transfer) - Static method in class org.usb4java.LibUsb
Free a transfer structure.
freeUsb20ExtensionDescriptor(Usb20ExtensionDescriptor) - Static method in class org.usb4java.LibUsb
FULL_SPEED_OPERATION - Static variable in class org.usb4java.LibUsb
Full speed operation supported (12MBit/s).

G

get(int) - Method in class org.usb4java.DeviceList
Returns the device with the specified index.
get(int) - Method in class org.usb4java.Pollfds
Returns the poll file descriptor with the specified index.
getActiveConfigDescriptor(Device, ConfigDescriptor) - Static method in class org.usb4java.LibUsb
Get the USB configuration descriptor for the currently active configuration.
getApiVersion() - Static method in class org.usb4java.LibUsb
Returns the API version of the underlying libusb library.
getBosDescriptor(DeviceHandle, BosDescriptor) - Static method in class org.usb4java.LibUsb
Get a Binary Object Store (BOS) descriptor.
getBuffer() - Method in class org.usb4java.DeviceDescriptor
Returns the Java byte buffer which contains the descriptor structure.
getBusNumber(Device) - Static method in class org.usb4java.LibUsb
Get the number of the bus that a device is connected to.
getConfigDescriptor(Device, byte, ConfigDescriptor) - Static method in class org.usb4java.LibUsb
Get a USB configuration descriptor based on its index.
getConfigDescriptorByValue(Device, byte, ConfigDescriptor) - Static method in class org.usb4java.LibUsb
Get a USB configuration descriptor with a specific bConfigurationValue.
getConfiguration(DeviceHandle, IntBuffer) - Static method in class org.usb4java.LibUsb
Determine the bConfigurationValue of the currently active configuration.
getContainerIdDescriptor(Context, BosDevCapabilityDescriptor, ContainerIdDescriptor) - Static method in class org.usb4java.LibUsb
Get a Container ID descriptor.
getDescriptor(DeviceHandle, byte, byte, ByteBuffer) - Static method in class org.usb4java.LibUsb
Retrieve a descriptor from the default control pipe.
getDevice(DeviceHandle) - Static method in class org.usb4java.LibUsb
Get the underlying device for a handle.
getDeviceAddress(Device) - Static method in class org.usb4java.LibUsb
Get the address of the device on the bus it is connected to.
getDeviceDescriptor(Device, DeviceDescriptor) - Static method in class org.usb4java.LibUsb
Get the USB device descriptor for a given device.
getDeviceList(Context, DeviceList) - Static method in class org.usb4java.LibUsb
Returns a list of USB devices currently attached to the system.
getDeviceSpeed(Device) - Static method in class org.usb4java.LibUsb
Get the negotiated connection speed for a device.
getDirectionName(byte) - Static method in class org.usb4java.DescriptorUtils
Returns the name of the USB traffic direction for the specified endpoint address.
getErrorCode() - Method in exception org.usb4java.LibUsbException
Returns the error code.
getIsoPacketBuffer(Transfer, int) - Static method in class org.usb4java.LibUsb
Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer.
getIsoPacketBufferSimple(Transfer, int) - Static method in class org.usb4java.LibUsb
Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer, for transfers where each packet is of identical size.
getMaxIsoPacketSize(Device, byte) - Static method in class org.usb4java.LibUsb
Calculate the maximum packet size which a specific endpoint is capable sending or receiving in the duration of 1 microframe.
getMaxPacketSize(Device, byte) - Static method in class org.usb4java.LibUsb
Convenience function to retrieve the wMaxPacketSize value for a particular endpoint in the active device configuration.
getNextTimeout(Context, LongBuffer) - Static method in class org.usb4java.LibUsb
Determine the next internal timeout that libusb needs to handle.
getParent(Device) - Static method in class org.usb4java.LibUsb
Get the the parent from the specified device [EXPERIMENTAL].
getPointer() - Method in class org.usb4java.BosDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.BosDevCapabilityDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.ConfigDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.ContainerIdDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.Context
Returns the native pointer to the context structure.
getPointer() - Method in class org.usb4java.Device
Returns the native pointer to the device structure.
getPointer() - Method in class org.usb4java.DeviceDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.DeviceHandle
Returns the native pointer to the device handle structure.
getPointer() - Method in class org.usb4java.DeviceList
Returns the native pointer.
getPointer() - Method in class org.usb4java.EndpointDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.Interface
Returns the native pointer.
getPointer() - Method in class org.usb4java.InterfaceDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.IsoPacketDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.Pollfd
Returns the native pointer to the pollfd structure.
getPointer() - Method in class org.usb4java.Pollfds
Returns the native pointer.
getPointer() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.Transfer
Returns the native pointer.
getPointer() - Method in class org.usb4java.Usb20ExtensionDescriptor
Returns the native pointer.
getPointer() - Method in class org.usb4java.Version
Returns the native pointer.
getPollfds(Context) - Static method in class org.usb4java.LibUsb
Retrieve a list of file descriptors that should be polled by your main loop as libusb event sources.
getPortNumber(Device) - Static method in class org.usb4java.LibUsb
Get the number of the port that a device is connected to.
getPortNumbers(Device, ByteBuffer) - Static method in class org.usb4java.LibUsb
Get the list of all port numbers from root for the specified device.
getPortPath(Context, Device, ByteBuffer) - Static method in class org.usb4java.LibUsb
Deprecated.
getSize() - Method in class org.usb4java.DeviceList
Returns the number of devices in the list.
getSize() - Method in class org.usb4java.Pollfds
Returns the number of poll file descriptors in the list.
getSpeedName(int) - Static method in class org.usb4java.DescriptorUtils
Returns the name for the specified speed number.
getSsEndpointCompanionDescriptor(Context, EndpointDescriptor, SsEndpointCompanionDescriptor) - Static method in class org.usb4java.LibUsb
Get an endpoints superspeed endpoint companion descriptor (if any).
getSsUsbDeviceCapabilityDescriptor(Context, BosDevCapabilityDescriptor, SsUsbDeviceCapabilityDescriptor) - Static method in class org.usb4java.LibUsb
Get a SuperSpeed USB Device Capability descriptor.
getStringDescriptor(DeviceHandle, byte) - Static method in class org.usb4java.LibUsb
getStringDescriptor(DeviceHandle, byte, short, ByteBuffer) - Static method in class org.usb4java.LibUsb
Retrieve a descriptor from a device.
getStringDescriptorAscii(DeviceHandle, byte, StringBuffer) - Static method in class org.usb4java.LibUsb
Retrieve a string descriptor in C style ASCII.
getSynchTypeName(byte) - Static method in class org.usb4java.DescriptorUtils
Returns the name for the synchronization type in the specified endpoint attributes.
getTransferTypeName(byte) - Static method in class org.usb4java.DescriptorUtils
Returns the name for the transfer type in the specified endpoint attributes.
getUsageTypeName(byte) - Static method in class org.usb4java.DescriptorUtils
Returns the name for the usage type in the specified endpoint attributes.
getUsb20ExtensionDescriptor(Context, BosDevCapabilityDescriptor, Usb20ExtensionDescriptor) - Static method in class org.usb4java.LibUsb
Get an USB 2.0 Extension descriptor.
getUSBClassName(byte) - Static method in class org.usb4java.DescriptorUtils
Returns the name of the specified USB class.
getValue() - Method in class org.usb4java.HotplugCallbackHandle
Returns the hotplug callback handle value.
getVersion() - Static method in class org.usb4java.LibUsb
Returns the version of the libusb runtime.

H

handleEvents(Context) - Static method in class org.usb4java.LibUsb
Handle any pending events in blocking mode.
handleEventsCompleted(Context, IntBuffer) - Static method in class org.usb4java.LibUsb
Handle any pending events in blocking mode.
handleEventsLocked(Context, long) - Static method in class org.usb4java.LibUsb
Handle any pending events by polling file descriptors, without checking if any other threads are already doing so.
handleEventsTimeout(Context, long) - Static method in class org.usb4java.LibUsb
Handle any pending events.
handleEventsTimeoutCompleted(Context, long, IntBuffer) - Static method in class org.usb4java.LibUsb
Handle any pending events.
hasCapability(int) - Static method in class org.usb4java.LibUsb
Check at runtime if the loaded library has a given capability.
hashCode() - Method in class org.usb4java.BosDescriptor
 
hashCode() - Method in class org.usb4java.BosDevCapabilityDescriptor
 
hashCode() - Method in class org.usb4java.ConfigDescriptor
 
hashCode() - Method in class org.usb4java.ContainerIdDescriptor
 
hashCode() - Method in class org.usb4java.Context
 
hashCode() - Method in class org.usb4java.ControlSetup
 
hashCode() - Method in class org.usb4java.Device
 
hashCode() - Method in class org.usb4java.DeviceDescriptor
 
hashCode() - Method in class org.usb4java.DeviceHandle
 
hashCode() - Method in class org.usb4java.DeviceList
 
hashCode() - Method in class org.usb4java.EndpointDescriptor
 
hashCode() - Method in class org.usb4java.HotplugCallbackHandle
 
hashCode() - Method in class org.usb4java.Interface
 
hashCode() - Method in class org.usb4java.InterfaceDescriptor
 
hashCode() - Method in class org.usb4java.IsoPacketDescriptor
 
hashCode() - Method in class org.usb4java.Pollfd
 
hashCode() - Method in class org.usb4java.Pollfds
 
hashCode() - Method in class org.usb4java.SsEndpointCompanionDescriptor
 
hashCode() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
 
hashCode() - Method in class org.usb4java.Transfer
 
hashCode() - Method in class org.usb4java.Usb20ExtensionDescriptor
 
hashCode() - Method in class org.usb4java.Version
 
HIGH_SPEED_OPERATION - Static variable in class org.usb4java.LibUsb
High speed operation supported (480MBit/s).
HOTPLUG_ENUMERATE - Static variable in class org.usb4java.LibUsb
Arm the callback and fire it for all matching currently attached devices.
HOTPLUG_EVENT_DEVICE_ARRIVED - Static variable in class org.usb4java.LibUsb
A device has been plugged in and is ready to use.
HOTPLUG_EVENT_DEVICE_LEFT - Static variable in class org.usb4java.LibUsb
A device has left and is no longer available.
HOTPLUG_MATCH_ANY - Static variable in class org.usb4java.LibUsb
Match any vendorId or productId or deviceClass.
HOTPLUG_NO_FLAGS - Static variable in class org.usb4java.LibUsb
Default value when not using any flags.
HotplugCallback - Interface in org.usb4java
Hotplug callback.
HotplugCallbackHandle - Class in org.usb4java
Hotplug Callback Handle.
HotplugCallbackHandle() - Constructor for class org.usb4java.HotplugCallbackHandle
Constructs a new hotplug callback handle.
hotplugDeregisterCallback(Context, HotplugCallbackHandle) - Static method in class org.usb4java.LibUsb
Deregisters a hotplug callback.
hotplugRegisterCallback(Context, int, int, int, int, int, HotplugCallback, Object, HotplugCallbackHandle) - Static method in class org.usb4java.LibUsb
Register a hotplug callback function.

I

iConfiguration() - Method in class org.usb4java.ConfigDescriptor
Returns the index of string descriptor describing this configuration.
idProduct() - Method in class org.usb4java.DeviceDescriptor
Returns the USB-IF product ID.
idVendor() - Method in class org.usb4java.DeviceDescriptor
Returns the USB-IF vendor ID.
iface() - Method in class org.usb4java.ConfigDescriptor
Returns the array with interfaces supported by this configuration.
iInterface() - Method in class org.usb4java.InterfaceDescriptor
Returns the index of string descriptor describing this interface.
iManufacturer() - Method in class org.usb4java.DeviceDescriptor
Returns the index of the string descriptor describing manufacturer.
init(Context) - Static method in class org.usb4java.LibUsb
Initialize libusb.
Interface - Class in org.usb4java
A collection of alternate settings for a particular USB interface.
InterfaceDescriptor - Class in org.usb4java
A structure representing the standard USB interface descriptor.
interruptEventHandler(Context) - Static method in class org.usb4java.LibUsb
Interrupt any active thread that is handling events.
interruptTransfer(DeviceHandle, byte, ByteBuffer, IntBuffer, long) - Static method in class org.usb4java.LibUsb
Perform a USB interrupt transfer.
iProduct() - Method in class org.usb4java.DeviceDescriptor
Returns the index of the string descriptor describing product.
iSerialNumber() - Method in class org.usb4java.DeviceDescriptor
Returns the index of the string descriptor containing device serial number.
ISO_SYNC_TYPE_ADAPTIVE - Static variable in class org.usb4java.LibUsb
Adaptive.
ISO_SYNC_TYPE_ASYNC - Static variable in class org.usb4java.LibUsb
Asynchronous.
ISO_SYNC_TYPE_MASK - Static variable in class org.usb4java.LibUsb
The mask used to filter out sync types from attributes.
ISO_SYNC_TYPE_NONE - Static variable in class org.usb4java.LibUsb
No synchronization.
ISO_SYNC_TYPE_SYNC - Static variable in class org.usb4java.LibUsb
Synchronous.
ISO_USAGE_TYPE_DATA - Static variable in class org.usb4java.LibUsb
Data endpoint.
ISO_USAGE_TYPE_FEEDBACK - Static variable in class org.usb4java.LibUsb
Feedback endpoint.
ISO_USAGE_TYPE_IMPLICIT - Static variable in class org.usb4java.LibUsb
Implicit feedback Data endpoint.
ISO_USAGE_TYPE_MASK - Static variable in class org.usb4java.LibUsb
The mask used to filter out usage types from attributes.
isoPacketDesc() - Method in class org.usb4java.Transfer
Array of isochronous packet descriptors, for isochronous transfers only.
IsoPacketDescriptor - Class in org.usb4java
Isochronous packet descriptor.
iterator() - Method in class org.usb4java.DeviceList
 
iterator() - Method in class org.usb4java.Pollfds
 

K

kernelDriverActive(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Determine if a kernel driver is active on an interface.

L

le16ToCpu(short) - Static method in class org.usb4java.LibUsb
Convert a 16-bit value from little-endian to host-endian format.
length() - Method in class org.usb4java.IsoPacketDescriptor
Returns the length of data to request in this packet.
length() - Method in class org.usb4java.Transfer
Returns the length of the data buffer.
LibUsb - Class in org.usb4java
Static class providing the constants and functions of libusb.
LibUsbException - Exception in org.usb4java
A runtime exception which automatically outputs the libusb error string.
LibUsbException(int) - Constructor for exception org.usb4java.LibUsbException
Constructs a libusb exception which just outputs the error code and the error message from libusb.
LibUsbException(String, int) - Constructor for exception org.usb4java.LibUsbException
Constructs a libusb exception which outputs the error code and the error message from libusb together with a custom error message.
load() - Static method in class org.usb4java.Loader
Loads the libusb native wrapper library.
Loader - Class in org.usb4java
Utility class to load native libraries from classpath.
LoaderException - Exception in org.usb4java
Thrown when JNI library could not be loaded.
LoaderException(String) - Constructor for exception org.usb4java.LoaderException
Constructor.
LoaderException(String, Throwable) - Constructor for exception org.usb4java.LoaderException
Constructor.
lockEvents(Context) - Static method in class org.usb4java.LibUsb
Acquire the event handling lock, blocking until successful acquisition if it is contended.
lockEventWaiters(Context) - Static method in class org.usb4java.LibUsb
Acquire the event waiters lock.
LOG_LEVEL_DEBUG - Static variable in class org.usb4java.LibUsb
Debug and informational messages are printed to stdout, warnings and errors to stderr.
LOG_LEVEL_ERROR - Static variable in class org.usb4java.LibUsb
Error messages are printed to stderr.
LOG_LEVEL_INFO - Static variable in class org.usb4java.LibUsb
Informational messages are printed to stdout, warning and error messages are printed to stderr.
LOG_LEVEL_NONE - Static variable in class org.usb4java.LibUsb
No messages ever printed by the library (default).
LOG_LEVEL_WARNING - Static variable in class org.usb4java.LibUsb
Warning and error messages are printed to stderr.
LOW_SPEED_OPERATION - Static variable in class org.usb4java.LibUsb
Low speed operation supported (1.5MBit/s).

M

major() - Method in class org.usb4java.Version
Returns the library major version.
micro() - Method in class org.usb4java.Version
Returns the library micro version.
minor() - Method in class org.usb4java.Version
Returns the library minor version.

N

nano() - Method in class org.usb4java.Version
Returns the library nano version.
numAltsetting() - Method in class org.usb4java.Interface
Returns the number of alternate settings that belong to this interface.
numIsoPackets() - Method in class org.usb4java.Transfer
Returns the number of isochronous packets.

O

open(Device, DeviceHandle) - Static method in class org.usb4java.LibUsb
Open a device and obtain a device handle.
openDeviceWithVidPid(Context, short, short) - Static method in class org.usb4java.LibUsb
Convenience function for finding a device with a particular idVendor/idProduct combination.
OPTION_LOG_LEVEL - Static variable in class org.usb4java.LibUsb
Set the log message verbosity.
OPTION_USE_USBDK - Static variable in class org.usb4java.LibUsb
Use the UsbDk backend for a specific context, if available.
org.usb4java - package org.usb4java
Low-Level classes based on the native libusb library.

P

Pollfd - Class in org.usb4java
File descriptor for polling.
pollfdAdded(FileDescriptor, int, Object) - Method in interface org.usb4java.PollfdListener
Callback function, invoked when a new file descriptor should be added to the set of file descriptors monitored for events.
PollfdListener - Interface in org.usb4java
Listener interface for pollfd notifications.
pollfdRemoved(FileDescriptor, Object) - Method in interface org.usb4java.PollfdListener
Callback function, invoked when a file descriptor should be removed from the set of file descriptors being monitored for events.
Pollfds - Class in org.usb4java
List of poll file descriptors as returned by LibUsb.getPollfds(Context).
pollfdsHandleTimeouts(Context) - Static method in class org.usb4java.LibUsb
Determines whether your application must apply special timing considerations when monitoring libusb's file descriptors.
POLLIN - Static variable in class org.usb4java.Pollfd
There is data to read
POLLOUT - Static variable in class org.usb4java.Pollfd
Writing now will not block.
processEvent(Context, Device, int, Object) - Method in interface org.usb4java.HotplugCallback
Process a hotplug event.
processTransfer(Transfer) - Method in interface org.usb4java.TransferCallback
Processes a transfer notification.

R

rc() - Method in class org.usb4java.Version
Returns the release candidate suffix string, e.g.
RECIPIENT_DEVICE - Static variable in class org.usb4java.LibUsb
Device.
RECIPIENT_ENDPOINT - Static variable in class org.usb4java.LibUsb
Endpoint.
RECIPIENT_INTERFACE - Static variable in class org.usb4java.LibUsb
Interface.
RECIPIENT_OTHER - Static variable in class org.usb4java.LibUsb
Other.
refDevice(Device) - Static method in class org.usb4java.LibUsb
Increment the reference count of a device.
releaseInterface(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Release an interface previously claimed with LibUsb.claimInterface(DeviceHandle, int).
REQUEST_CLEAR_FEATURE - Static variable in class org.usb4java.LibUsb
Clear or disable a specific feature.
REQUEST_GET_CONFIGURATION - Static variable in class org.usb4java.LibUsb
Get the current device configuration value.
REQUEST_GET_DESCRIPTOR - Static variable in class org.usb4java.LibUsb
Set device address for all future accesses.
REQUEST_GET_INTERFACE - Static variable in class org.usb4java.LibUsb
Return the selected alternate setting for the specified interface.
REQUEST_GET_STATUS - Static variable in class org.usb4java.LibUsb
Request status of the specific recipient.
REQUEST_SET_ADDRESS - Static variable in class org.usb4java.LibUsb
Set device address for all future accesses.
REQUEST_SET_CONFIGURATION - Static variable in class org.usb4java.LibUsb
Get the current device configuration value.
REQUEST_SET_DESCRIPTOR - Static variable in class org.usb4java.LibUsb
Set device address for all future accesses.
REQUEST_SET_FEATURE - Static variable in class org.usb4java.LibUsb
Set or enable a specific feature.
REQUEST_SET_INTERFACE - Static variable in class org.usb4java.LibUsb
Select an alternate interface for the specified interface.
REQUEST_SET_SEL - Static variable in class org.usb4java.LibUsb
Sets both the U1 and U2 Exit Latency.
REQUEST_SYNCH_FRAME - Static variable in class org.usb4java.LibUsb
Set then report an endpoint's synchronization frame.
REQUEST_TYPE_CLASS - Static variable in class org.usb4java.LibUsb
Class.
REQUEST_TYPE_RESERVED - Static variable in class org.usb4java.LibUsb
Reserved.
REQUEST_TYPE_STANDARD - Static variable in class org.usb4java.LibUsb
Standard.
REQUEST_TYPE_VENDOR - Static variable in class org.usb4java.LibUsb
Vendor.
resetDevice(DeviceHandle) - Static method in class org.usb4java.LibUsb
Perform a USB port reset to reinitialize a device.

S

SET_ISOCH_DELAY - Static variable in class org.usb4java.LibUsb
Delay from the time a host transmits a packet to the time it is received by the device.
setAutoDetachKernelDriver(DeviceHandle, boolean) - Static method in class org.usb4java.LibUsb
Enable/disable libusb's automatic kernel driver detachment.
setBmRequestType(byte) - Method in class org.usb4java.ControlSetup
Sets the request type.
setBRequest(byte) - Method in class org.usb4java.ControlSetup
Sets the request.
setBuffer(ByteBuffer) - Method in class org.usb4java.Transfer
Sets the data buffer.
setCallback(TransferCallback) - Method in class org.usb4java.Transfer
Sets the callback object.
setConfiguration(DeviceHandle, int) - Static method in class org.usb4java.LibUsb
Set the active configuration for a device.
setDebug(Context, int) - Static method in class org.usb4java.LibUsb
Deprecated.
setDevHandle(DeviceHandle) - Method in class org.usb4java.Transfer
Sets the handle of the device that this transfer will be submitted to.
setEndpoint(byte) - Method in class org.usb4java.Transfer
Sets the address of the endpoint where this transfer will be sent.
setFlags(byte) - Method in class org.usb4java.Transfer
Sets the bitwise OR combination of libusb transfer flags.
setInterfaceAltSetting(DeviceHandle, int, int) - Static method in class org.usb4java.LibUsb
Activate an alternate setting for an interface.
setIsoPacketLengths(Transfer, int) - Static method in class org.usb4java.LibUsb
Convenience function to set the length of all packets in an isochronous transfer, based on the Transfer.numIsoPackets() field.
setLength(int) - Method in class org.usb4java.IsoPacketDescriptor
Sets the length of data to request in this packet.
setLength(int) - Method in class org.usb4java.Transfer
Sets the length of the data buffer.
setLocale(String) - Static method in class org.usb4java.LibUsb
Set the language, and only the language, not the encoding! used for translatable libusb messages.
setNumIsoPackets(int) - Method in class org.usb4java.Transfer
Sets the number of isochronous packets.
setOption(Context, int) - Static method in class org.usb4java.LibUsb
Set an option in the library.
setOption(Context, int, int) - Static method in class org.usb4java.LibUsb
Set an option in the library.
setPollfdNotifiers(Context, PollfdListener, Object) - Static method in class org.usb4java.LibUsb
Register notification functions for file descriptor additions/removals.
setStreamId(int) - Method in class org.usb4java.Transfer
Set a transfer's bulk stream id.
setTimeout(long) - Method in class org.usb4java.Transfer
Sets the timeout for this transfer in milliseconds.
setType(byte) - Method in class org.usb4java.Transfer
Sets the type of the endpoint.
setUserData(Object) - Method in class org.usb4java.Transfer
Sets the user data object, representing user context data to pass to the callback function and that can be accessed from there.
setWIndex(short) - Method in class org.usb4java.ControlSetup
Sets the index.
setWLength(short) - Method in class org.usb4java.ControlSetup
Sets the number of bytes to transfer.
setWValue(short) - Method in class org.usb4java.ControlSetup
Sets the value.
slice(ByteBuffer, int, int) - Static method in class org.usb4java.BufferUtils
Slices a part of the specified ByteBuffer into a new byte buffer and returns it.
SPEED_FULL - Static variable in class org.usb4java.LibUsb
The device is operating at full speed (12MBit/s).
SPEED_HIGH - Static variable in class org.usb4java.LibUsb
The device is operating at high speed (480MBit/s).
SPEED_LOW - Static variable in class org.usb4java.LibUsb
The device is operating at low speed (1.5MBit/s).
SPEED_SUPER - Static variable in class org.usb4java.LibUsb
The device is operating at super speed (5000MBit/s).
SPEED_SUPER_PLUS - Static variable in class org.usb4java.LibUsb
The device is operating at super speed plus (10000MBit/s).
SPEED_UNKNOWN - Static variable in class org.usb4java.LibUsb
The OS doesn't report or know the device speed.
SsEndpointCompanionDescriptor - Class in org.usb4java
A structure representing the superspeed endpoint companion descriptor.
SsEndpointCompanionDescriptor() - Constructor for class org.usb4java.SsEndpointCompanionDescriptor
SsUsbDeviceCapabilityDescriptor - Class in org.usb4java
A structure representing the SuperSpeed USB Device Capability descriptor.
SsUsbDeviceCapabilityDescriptor() - Constructor for class org.usb4java.SsUsbDeviceCapabilityDescriptor
Constructs a new SuperSpeed USB Device Capability descriptor which can be passed to the LibUsb.getSsUsbDeviceCapabilityDescriptor(Context, BosDevCapabilityDescriptor, SsUsbDeviceCapabilityDescriptor) method.
status() - Method in class org.usb4java.IsoPacketDescriptor
Returns the status code for this packet.
status() - Method in class org.usb4java.Transfer
Returns the status of the transfer.
streamId() - Method in class org.usb4java.Transfer
Get a transfer's bulk stream id.
strError(int) - Static method in class org.usb4java.LibUsb
Returns a string with a short description of the given error code, this description is intended for displaying to the end user and will be in the language set by LibUsb.setLocale(String).
submitTransfer(Transfer) - Static method in class org.usb4java.LibUsb
Submit a transfer.
SUCCESS - Static variable in class org.usb4java.LibUsb
Success (no error).
SUPER_SPEED_OPERATION - Static variable in class org.usb4java.LibUsb
Superspeed operation supported (5000MBit/s).

T

timeout() - Method in class org.usb4java.Transfer
Returns the timeout for this transfer in milliseconds.
toString() - Method in class org.usb4java.BosDescriptor
 
toString() - Method in class org.usb4java.BosDevCapabilityDescriptor
 
toString() - Method in class org.usb4java.ConfigDescriptor
 
toString() - Method in class org.usb4java.ContainerIdDescriptor
 
toString() - Method in class org.usb4java.Context
 
toString() - Method in class org.usb4java.ControlSetup
 
toString() - Method in class org.usb4java.Device
 
toString() - Method in class org.usb4java.DeviceDescriptor
 
toString() - Method in class org.usb4java.DeviceHandle
 
toString() - Method in class org.usb4java.DeviceList
 
toString() - Method in class org.usb4java.EndpointDescriptor
 
toString() - Method in class org.usb4java.HotplugCallbackHandle
 
toString() - Method in class org.usb4java.Interface
 
toString() - Method in class org.usb4java.InterfaceDescriptor
 
toString() - Method in class org.usb4java.IsoPacketDescriptor
 
toString() - Method in class org.usb4java.Pollfd
 
toString() - Method in class org.usb4java.Pollfds
 
toString() - Method in class org.usb4java.SsEndpointCompanionDescriptor
 
toString() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
 
toString() - Method in class org.usb4java.Transfer
 
toString() - Method in class org.usb4java.Usb20ExtensionDescriptor
 
toString() - Method in class org.usb4java.Version
 
Transfer - Class in org.usb4java
The generic USB transfer structure.
TRANSFER_ADD_ZERO_PACKET - Static variable in class org.usb4java.LibUsb
Terminate transfers that are a multiple of the endpoint's wMaxPacketSize with an extra zero length packet.
TRANSFER_CANCELLED - Static variable in class org.usb4java.LibUsb
Transfer was cancelled.
TRANSFER_COMPLETED - Static variable in class org.usb4java.LibUsb
Transfer completed without error.
TRANSFER_ERROR - Static variable in class org.usb4java.LibUsb
Transfer failed.
TRANSFER_FREE_BUFFER - Static variable in class org.usb4java.LibUsb
Automatically free transfer buffer during LibUsb.freeTransfer(Transfer) Please note that this flag (which is originally 2) is effectively a no-op (set to zero) here in the Java wrapper, since the ByteBuffer that acts as a buffer for transfers is allocated by the JVM and is subject to garbage collection like any other object at some point.
TRANSFER_FREE_TRANSFER - Static variable in class org.usb4java.LibUsb
Automatically call LibUsb.freeTransfer(Transfer) after callback returns.
TRANSFER_NO_DEVICE - Static variable in class org.usb4java.LibUsb
Device was disconnected.
TRANSFER_OVERFLOW - Static variable in class org.usb4java.LibUsb
Device sent more data than requested.
TRANSFER_SHORT_NOT_OK - Static variable in class org.usb4java.LibUsb
Report short frames as errors.
TRANSFER_STALL - Static variable in class org.usb4java.LibUsb
For bulk/interrupt endpoints: halt condition detected (endpoint stalled).
TRANSFER_TIMED_OUT - Static variable in class org.usb4java.LibUsb
Transfer timed out.
TRANSFER_TYPE_BULK - Static variable in class org.usb4java.LibUsb
Bulk endpoint.
TRANSFER_TYPE_BULK_STREAM - Static variable in class org.usb4java.LibUsb
Stream endpoint.
TRANSFER_TYPE_CONTROL - Static variable in class org.usb4java.LibUsb
Control endpoint.
TRANSFER_TYPE_INTERRUPT - Static variable in class org.usb4java.LibUsb
Interrupt endpoint.
TRANSFER_TYPE_ISOCHRONOUS - Static variable in class org.usb4java.LibUsb
Isochronous endpoint.
TRANSFER_TYPE_MASK - Static variable in class org.usb4java.LibUsb
Transfer type mask.
TransferCallback - Interface in org.usb4java
Asynchronous transfer callback.
tryLockEvents(Context) - Static method in class org.usb4java.LibUsb
Attempt to acquire the event handling lock.
type() - Method in class org.usb4java.Transfer
Returns the type of the endpoint.

U

unlockEvents(Context) - Static method in class org.usb4java.LibUsb
Release the lock previously acquired with LibUsb.tryLockEvents(Context) or LibUsb.lockEvents(Context).
unlockEventWaiters(Context) - Static method in class org.usb4java.LibUsb
Release the event waiters lock.
unrefDevice(Device) - Static method in class org.usb4java.LibUsb
Decrement the reference count of a device.
Usb20ExtensionDescriptor - Class in org.usb4java
A structure representing the USB 2.0 Extension descriptor.
Usb20ExtensionDescriptor() - Constructor for class org.usb4java.Usb20ExtensionDescriptor
Constructs a new USB 2.0 Extension descriptor which can be passed to the LibUsb.getUsb20ExtensionDescriptor(Context, BosDevCapabilityDescriptor, Usb20ExtensionDescriptor) method.
userData() - Method in class org.usb4java.Transfer
Returns the current user data object.

V

Version - Class in org.usb4java
Structure providing the version of the libusb runtime.

W

waitForEvent(Context, long) - Static method in class org.usb4java.LibUsb
Wait for another thread to signal completion of an event.
wBytesPerInterval() - Method in class org.usb4java.SsEndpointCompanionDescriptor
Returns the total number of bytes this endpoint will transfer every service interval.
wIndex() - Method in class org.usb4java.ControlSetup
Returns the index.
wLength() - Method in class org.usb4java.ControlSetup
Returns the number of bytes to transfer.
wMaxPacketSize() - Method in class org.usb4java.EndpointDescriptor
Returns the maximum packet size this endpoint is capable of sending/receiving.
wSpeedSupported() - Method in class org.usb4java.SsUsbDeviceCapabilityDescriptor
Returns the bitmap encoding of the speed supported by this device when operating in SuperSpeed mode.
wTotalLength() - Method in class org.usb4java.BosDescriptor
Returns the length of this descriptor and all of its sub descriptors.
wTotalLength() - Method in class org.usb4java.ConfigDescriptor
Returns the total length of data returned for this configuration.
wValue() - Method in class org.usb4java.ControlSetup
Returns the value.
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links

Copyright © 2011–2018 usb4java Team. All rights reserved.