public class DeviceDescriptor extends Descriptor
| Modifier and Type | Method and Description |
|---|---|
ConfigurationDescriptor |
getActiveConfigDescriptor()
get the currently active ConfigurationDescriptor
|
ConfigurationDescriptor |
getConfigDescriptor(int configValue)
get ConfigurationDescriptor with specified configuration value
|
java.util.List<ConfigurationDescriptor> |
getConfigDescriptors()
get all ConfigurationDescriptors of this DeviceDescriptor in a list
|
int |
getManufacturerDescIndex()
get index to retrieve manufacturer descriptor string
|
int |
getNofConfigurations()
get number of configurations
|
int |
getProductDescIndex()
get index to retrieve the product descriptor string
|
int |
getProductId()
get product id
|
int |
getSerialNumberIndex()
get index to retrieve the serial number string
|
int |
getVendorId()
get vendor id
|
void |
setActiveConfigDescriptor(int nofConfig)
NOT SUPPORTED at the moment!!
|
getLength, getTypepublic int getVendorId()
public int getProductId()
public int getNofConfigurations()
public java.util.List<ConfigurationDescriptor> getConfigDescriptors() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbExceptionpublic ConfigurationDescriptor getConfigDescriptor(int configValue) throws ch.ntb.inf.libusb.exceptions.LibusbException
configValue - ch.ntb.inf.libusb.exceptions.LibusbExceptionpublic ConfigurationDescriptor getActiveConfigDescriptor() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbExceptionpublic void setActiveConfigDescriptor(int nofConfig)
throws ch.ntb.inf.libusb.exceptions.LibusbException
nofConfig - ch.ntb.inf.libusb.exceptions.LibusbExceptionpublic int getSerialNumberIndex()
throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbExceptionpublic int getProductDescIndex()
throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbExceptionpublic int getManufacturerDescIndex()
throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException