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, getType
public 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.LibusbException
public ConfigurationDescriptor getConfigDescriptor(int configValue) throws ch.ntb.inf.libusb.exceptions.LibusbException
configValue
- ch.ntb.inf.libusb.exceptions.LibusbException
public ConfigurationDescriptor getActiveConfigDescriptor() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException
public void setActiveConfigDescriptor(int nofConfig) throws ch.ntb.inf.libusb.exceptions.LibusbException
nofConfig
- ch.ntb.inf.libusb.exceptions.LibusbException
public int getSerialNumberIndex() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException
public int getProductDescIndex() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException
public int getManufacturerDescIndex() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException