public final class Device extends Object
LibUsb.getDeviceList(Context, DeviceList).
Certain operations can be performed on a device, but in order to do any I/O
you will have to first obtain a device handle using
LibUsb.open(Device, DeviceHandle).
Devices are reference counted with LibUsb.refDevice(Device) and
LibUsb.unrefDevice(Device), and are freed when the reference count
reaches 0. New devices presented by
LibUsb.getDeviceList(Context, DeviceList) have a reference count of
1, and LibUsb.freeDeviceList(DeviceList, boolean) can optionally
decrease the reference count on all devices in the list.
LibUsb.open(Device, DeviceHandle) adds another reference which is
later destroyed by LibUsb.close(DeviceHandle).| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getPointer()
Returns the native pointer to the device structure.
|
int |
hashCode() |
String |
toString() |
Copyright © 2011–2018 usb4java Team. All rights reserved.