public interface USBInterface
USB interface.
Instances of this class describe an interface of a USB device.
-
Method Summary
Modifier and TypeMethodDescriptionGets the currently selected alternate interface setting.Gets all alternate settings of this interface.booleanIndicates if this interface is currently claimed for exclusive access.intnumber()Gets the interface number.
-
Method Details
-
number
int number()Gets the interface number.It is equal to the
bInterfaceNumberfield of the interface descriptor.- Returns:
- the interface number
-
isClaimed
boolean isClaimed()Indicates if this interface is currently claimed for exclusive access.- Returns:
trueif it is claimed,falseotherwise.
-
alternate
USBAlternateInterface alternate()Gets the currently selected alternate interface setting.Initially, the alternate settings with number 0 is selected.
- Returns:
- the alternate interface setting.
-
alternates
List<USBAlternateInterface> alternates()Gets all alternate settings of this interface.- Returns:
- a list of the alternate settings
-