public class Interface extends ConfigurationDescriptor
Modifier and Type | Method and Description |
---|---|
void |
attachKernelDriver(int interfaceNumber)
NOT SUPPORTED at the moment, only relevant with Linux, not supported with Windows
|
void |
detachKernelDriver(int interfaceNumber)
NOT SUPPORTED at the moment, only relevant with Linux, not supported with Windows
|
InterfaceDescriptor |
getAlternateSetting(int ifaceNum)
get alternate setting (InterfaceDescriptor) with specified interface number
|
java.util.List<InterfaceDescriptor> |
getAlternateSettings()
get List of alternate settings the interface supports
|
int |
getNumberOfAlternateSettings()
get number of alternate settings
|
boolean |
kernelDriverActive(int interfaceNumber)
NOT SUPPORTED at the moment, only relevant with Linux, not supported with Windows
|
void |
setAltSetting(int interfaceNumber,
int alternateSetting)
NOT SUPPORTED at the moment, only relevant with Linux, not supported with Windows
|
void |
setAutoDetachKernelDriver(boolean enable)
NOT SUPPORTED at the moment, only relevant with Linux, not supported with Windows
|
getAllInterfaces, getConfigValue, getInterface, getNofInterfaces
getActiveConfigDescriptor, getConfigDescriptor, getConfigDescriptors, getManufacturerDescIndex, getNofConfigurations, getProductDescIndex, getProductId, getSerialNumberIndex, getVendorId, setActiveConfigDescriptor
getLength, getType
public java.util.List<InterfaceDescriptor> getAlternateSettings() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException
public int getNumberOfAlternateSettings() throws ch.ntb.inf.libusb.exceptions.LibusbException
ch.ntb.inf.libusb.exceptions.LibusbException
public InterfaceDescriptor getAlternateSetting(int ifaceNum) throws ch.ntb.inf.libusb.exceptions.LibusbException
ifaceNum
- interface numberch.ntb.inf.libusb.exceptions.LibusbException
public boolean kernelDriverActive(int interfaceNumber)
interfaceNumber
- public void detachKernelDriver(int interfaceNumber)
interfaceNumber
- public void attachKernelDriver(int interfaceNumber)
interfaceNumber
- public void setAutoDetachKernelDriver(boolean enable)
enable
- public void setAltSetting(int interfaceNumber, int alternateSetting)
interfaceNumber
- alternateSetting
-