com.ibm.jusb
Class UsbConfigurationDescriptorImp

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

public class UsbConfigurationDescriptorImp
extends UsbDescriptorImp
implements UsbConfigurationDescriptor

UsbConfigurationDescriptor implementation.

Author:
Dan Streetman

Constructor Summary
UsbConfigurationDescriptorImp(byte bLength, byte bType, short wTotalLength, byte bNumInterfaces, byte bConfigurationValue, byte iConfiguration, byte bmAttributes, byte bMaxPower)
          Constructor.
 
Method Summary
 byte bConfigurationValue()
          Get this descriptor's bConfigurationValue.
 byte bmAttributes()
          Get this descriptor's bmAttributes.
 byte bMaxPower()
          Get this descriptor's bMaxPower.
 byte bNumInterfaces()
          Get this descriptor's bNumInterfaces.
 byte iConfiguration()
          Get this descriptor's iConfiguration.
 java.lang.String toString()
          Get a String representing this.
 short wTotalLength()
          Get this descriptor's wTotalLength.
 
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

UsbConfigurationDescriptorImp

public UsbConfigurationDescriptorImp(byte bLength,
                                     byte bType,
                                     short wTotalLength,
                                     byte bNumInterfaces,
                                     byte bConfigurationValue,
                                     byte iConfiguration,
                                     byte bmAttributes,
                                     byte bMaxPower)
Constructor.

Parameters:
bLength - Descriptor length.
bType - Descriptor type.
wTotalLength - Descriptor Total Length.
bNumInterfaces - Number of interfaces.
bConfigurationValue - The ConfigValue.
iConfiguration - The ConfigIndex.
bmAttributes - The attributes.
bMaxPower - The max power.
Method Detail

wTotalLength

public short wTotalLength()
Get this descriptor's wTotalLength.

Specified by:
wTotalLength in interface UsbConfigurationDescriptor
Returns:
This descriptor's wTotalLength.
See Also:
This is unsigned.

bNumInterfaces

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

Specified by:
bNumInterfaces in interface UsbConfigurationDescriptor
Returns:
This descriptor's bNumInterfaces.
See Also:
This is unsigned.

bConfigurationValue

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

Specified by:
bConfigurationValue in interface UsbConfigurationDescriptor
Returns:
This descriptor's bConfigurationValue.
See Also:
This is unsigned.

iConfiguration

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

Specified by:
iConfiguration in interface UsbConfigurationDescriptor
Returns:
This descriptor's iConfiguration.
See Also:
This is unsigned.

bmAttributes

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

Specified by:
bmAttributes in interface UsbConfigurationDescriptor
Returns:
This descriptor's bmAttributes.
See Also:
This is unsigned.

bMaxPower

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

Specified by:
bMaxPower in interface UsbConfigurationDescriptor
Returns:
This descriptor's bMaxPower.
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.