Package ch.ntb.usb

Class Usb_Interface_Descriptor

    • Field Detail

      • USB_MAXINTERFACES

        public static final int USB_MAXINTERFACES
        Maximum number of interfaces
        See Also:
        Constant Field Values
    • Constructor Detail

      • Usb_Interface_Descriptor

        public Usb_Interface_Descriptor()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBInterfaceClass

        public byte getBInterfaceClass()
        Returns the class code (Assigned by www.usb.org).
        Returns:
        the class code
      • getBInterfaceNumber

        public byte getBInterfaceNumber()
        Returns the number (identifier) of this interface.
        Returns:
        the number (identifier) of this interface
      • getBInterfaceProtocol

        public byte getBInterfaceProtocol()
        Returns the protocol code (Assigned by www.usb.org).
        Returns:
        the protocol code
      • getBInterfaceSubClass

        public byte getBInterfaceSubClass()
        Returns the subclass code (Assigned by www.usb.org).
        Returns:
        the subclass code
      • getBNumEndpoints

        public byte getBNumEndpoints()
        Returns the number of endpoints used for this interface.
        Returns:
        the number of endpoints used for this interface
      • getEndpoint

        public Usb_Endpoint_Descriptor[] getEndpoint()
        Returns an array of endpoint descriptors.
        Returns:
        an array of endpoint descriptors
      • getExtra

        public byte[] getExtra()
        Returns the data of extra descriptor(s) if available.
        Returns:
        null or a byte array with the extra descriptor data
      • getExtralen

        public int getExtralen()
        Returns the number of bytes of the extra descriptor.
        Returns:
        the number of bytes of the extra descriptor
      • getIInterface

        public byte getIInterface()
        Returns the index of the String descriptor describing this interface.
        Returns:
        the index of the String descriptor