Modifier and Type | Method and Description |
---|---|
Device |
DeviceList.get(int index)
Returns the device with the specified index.
|
static Device |
LibUsb.getDevice(DeviceHandle handle)
Get the underlying device for a handle.
|
static Device |
LibUsb.getParent(Device device)
Get the the parent from the specified device [EXPERIMENTAL].
|
static Device |
LibUsb.refDevice(Device device)
Increment the reference count of a device.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Device> |
DeviceList.iterator() |
Modifier and Type | Method and Description |
---|---|
static int |
LibUsb.getActiveConfigDescriptor(Device device,
ConfigDescriptor descriptor)
Get the USB configuration descriptor for the currently active
configuration.
|
static int |
LibUsb.getBusNumber(Device device)
Get the number of the bus that a device is connected to.
|
static int |
LibUsb.getConfigDescriptor(Device device,
byte index,
ConfigDescriptor descriptor)
Get a USB configuration descriptor based on its index.
|
static int |
LibUsb.getConfigDescriptorByValue(Device device,
byte value,
ConfigDescriptor descriptor)
Get a USB configuration descriptor with a specific bConfigurationValue.
|
static int |
LibUsb.getDeviceAddress(Device device)
Get the address of the device on the bus it is connected to.
|
static int |
LibUsb.getDeviceDescriptor(Device device,
DeviceDescriptor descriptor)
Get the USB device descriptor for a given device.
|
static int |
LibUsb.getDeviceSpeed(Device device)
Get the negotiated connection speed for a device.
|
static int |
LibUsb.getMaxIsoPacketSize(Device device,
byte endpoint)
Calculate the maximum packet size which a specific endpoint is capable
sending or receiving in the duration of 1 microframe.
|
static int |
LibUsb.getMaxPacketSize(Device device,
byte endpoint)
Convenience function to retrieve the wMaxPacketSize value for a
particular endpoint in the active device configuration.
|
static Device |
LibUsb.getParent(Device device)
Get the the parent from the specified device [EXPERIMENTAL].
|
static int |
LibUsb.getPortNumber(Device device)
Get the number of the port that a device is connected to.
|
static int |
LibUsb.getPortNumbers(Device device,
ByteBuffer path)
Get the list of all port numbers from root for the specified device.
|
static int |
LibUsb.getPortPath(Context context,
Device device,
ByteBuffer path)
Deprecated.
Please use
LibUsb.getPortNumbers(Device, ByteBuffer)
instead. |
static int |
LibUsb.open(Device device,
DeviceHandle handle)
Open a device and obtain a device handle.
|
int |
HotplugCallback.processEvent(Context context,
Device device,
int event,
Object userData)
Process a hotplug event.
|
static Device |
LibUsb.refDevice(Device device)
Increment the reference count of a device.
|
static void |
LibUsb.unrefDevice(Device device)
Decrement the reference count of a device.
|
Copyright © 2011–2018 usb4java Team. All rights reserved.