Interface USBInterface


public interface USBInterface
USB interface.

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

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the currently selected alternate interface setting.
    Gets all alternate settings of this interface.
    boolean
    Indicates if this interface is currently claimed for exclusive access.
    int
    Gets the interface number.
  • 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.
    • alternates

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