Interface USBInterface


public interface USBInterface
USB interface.

Instances of this class describe an interface of a USB device.

  • Method Details

    • number

      int number()
      Gets the interface number.

      It is equal to the bInterfaceNumber field of the interface descriptor.

      Returns:
      the interface number
    • isClaimed

      boolean isClaimed()
      Indicates if this interface is currently claimed for exclusive access.
      Returns:
      true if it is claimed, false otherwise.
    • alternate

      Gets the currently selected alternate interface setting.

      Initially, the alternate settings with number 0 is selected.

      Returns:
      the alternate interface setting.
    • getAlternate

      USBAlternateInterface getAlternate(int alternateNumber)
      Gets the alternate interface settings with the specified number.
      Parameters:
      alternateNumber - alternate setting number
      Returns:
      alternate interface setting
    • alternates

      Gets all alternate settings of this interface.
      Returns:
      a list of the alternate settings