Interface USBAlternateInterface


public interface USBAlternateInterface
USB alternate interface setting.

Instances of this class describe an alternate setting of a USB interface.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the interface class.
    Gets the endpoints of this alternate interface settings.
    int
    Gets the alternate setting number.
    int
    Gets the interface protocol.
    int
    Gets the interface subclass.
  • Method Details

    • number

      int number()
      Gets the alternate setting number.

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

      Returns:
      the alternate setting number
    • classCode

      int classCode()
      Gets the interface class.

      Interface classes are defined by the USB standard.

      Returns:
      the interface class
    • subclassCode

      int subclassCode()
      Gets the interface subclass.

      Interface subclasses are defined by the USB standard.

      Returns:
      the interface subclass
    • protocolCode

      int protocolCode()
      Gets the interface protocol.

      Interface protocols are defined by the USB standard.

      Returns:
      the interface protocol
    • endpoints

      List<USBEndpoint> endpoints()
      Gets the endpoints of this alternate interface settings.

      The endpoint list does not include endpoint 0, which is always available and reserved for control transfers.

      Returns:
      a list of endpoints.