com.ibm.jusb
Class UsbInterfaceDescriptorImp

java.lang.Object
  extended by com.ibm.jusb.UsbDescriptorImp
      extended by com.ibm.jusb.UsbInterfaceDescriptorImp
All Implemented Interfaces:
UsbDescriptor, UsbInterfaceDescriptor

public class UsbInterfaceDescriptorImp
extends UsbDescriptorImp
implements UsbInterfaceDescriptor

UsbInterfaceDescriptor implementation.

Author:
Dan Streetman

Constructor Summary
UsbInterfaceDescriptorImp(byte bLength, byte bDescriptorType, byte bInterfaceNumber, byte bAlternateSetting, byte bNumEndpoints, byte bInterfaceClass, byte bInterfaceSubClass, byte bInterfaceProtocol, byte iInterface)
          Constructor.
 
Method Summary
 byte bAlternateSetting()
          Get this descriptor's bAlternateSetting.
 byte bInterfaceClass()
          Get this descriptor's bInterfaceClass.
 byte bInterfaceNumber()
          Get this descriptor's bInterfaceNumber.
 byte bInterfaceProtocol()
          Get this descriptor's bInterfaceProtocol.
 byte bInterfaceSubClass()
          Get this descriptor's bInterfaceSubClass.
 byte bNumEndpoints()
          Get this descriptor's bNumEndpoints.
 byte iInterface()
          Get this descriptor's iInterface.
 java.lang.String toString()
          Get a String representing this.
 
Methods inherited from class com.ibm.jusb.UsbDescriptorImp
bDescriptorType, bLength, equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.usb.UsbDescriptor
bDescriptorType, bLength
 

Constructor Detail

UsbInterfaceDescriptorImp

public UsbInterfaceDescriptorImp(byte bLength,
                                 byte bDescriptorType,
                                 byte bInterfaceNumber,
                                 byte bAlternateSetting,
                                 byte bNumEndpoints,
                                 byte bInterfaceClass,
                                 byte bInterfaceSubClass,
                                 byte bInterfaceProtocol,
                                 byte iInterface)
Constructor.

Parameters:
bLength - This descriptor's bLength.
bDescriptorType - This descriptor's bDescriptorType.
bInterfaceNumber - This descriptor's bInterfaceNumber.
bAlternateSetting - This descriptor's bAlternateSetting.
bNumEndpoints - This descriptor's bNumEndpoints.
bInterfaceClass - This descriptor's bInterfaceClass.
bInterfaceSubClass - This descriptor's bInterfaceSubClass.
bInterfaceProtocol - This descriptor's bInterfaceProtocol.
iInterface - This descriptor's iInterface.
Method Detail

bInterfaceNumber

public byte bInterfaceNumber()
Get this descriptor's bInterfaceNumber.

Specified by:
bInterfaceNumber in interface UsbInterfaceDescriptor
Returns:
This descriptor's bInterfaceNumber.
See Also:
This is unsigned.

bAlternateSetting

public byte bAlternateSetting()
Get this descriptor's bAlternateSetting.

Specified by:
bAlternateSetting in interface UsbInterfaceDescriptor
Returns:
This descriptor's bAlternateSetting.
See Also:
This is unsigned.

bNumEndpoints

public byte bNumEndpoints()
Get this descriptor's bNumEndpoints.

Specified by:
bNumEndpoints in interface UsbInterfaceDescriptor
Returns:
This descriptor's bNumEndpoints.
See Also:
This is unsigned.

bInterfaceClass

public byte bInterfaceClass()
Get this descriptor's bInterfaceClass.

Specified by:
bInterfaceClass in interface UsbInterfaceDescriptor
Returns:
This descriptor's bInterfaceClass.
See Also:
This is unsigned.

bInterfaceSubClass

public byte bInterfaceSubClass()
Get this descriptor's bInterfaceSubClass.

Specified by:
bInterfaceSubClass in interface UsbInterfaceDescriptor
Returns:
This descriptor's bInterfaceSubClass.
See Also:
This is unsigned.

bInterfaceProtocol

public byte bInterfaceProtocol()
Get this descriptor's bInterfaceProtocol.

Specified by:
bInterfaceProtocol in interface UsbInterfaceDescriptor
Returns:
This descriptor's bInterfaceProtocol.
See Also:
This is unsigned.

iInterface

public byte iInterface()
Get this descriptor's iInterface.

Specified by:
iInterface in interface UsbInterfaceDescriptor
Returns:
This descriptor's iInterface.
See Also:
This is unsigned.

toString

public java.lang.String toString()
Get a String representing this.

Overrides:
toString in class UsbDescriptorImp
Returns:
A String representing this.