com.ibm.jusb
Class UsbDeviceDescriptorImp

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

public class UsbDeviceDescriptorImp
extends UsbDescriptorImp
implements UsbDeviceDescriptor


Constructor Summary
UsbDeviceDescriptorImp(byte bLength, byte bDescriptorType, short bcdUSB, byte bDeviceClass, byte bDeviceSubClass, byte bDeviceProtocol, byte bMaxPacketSize0, short idVendor, short idProduct, short bcdDevice, byte iManufacturer, byte iProduct, byte iSerialNumber, byte bNumConfigurations)
          Constructor.
 
Method Summary
 short bcdDevice()
          Get this descriptor's bcdDevice.
 short bcdUSB()
          Get this descriptor's bcdUSB.
 byte bDeviceClass()
          Get this descriptor's bDeviceClass.
 byte bDeviceProtocol()
          Get this descriptor's bDeviceProtocol.
 byte bDeviceSubClass()
          Get this descriptor's bDeviceSubClass.
 byte bMaxPacketSize0()
          Get this descriptor's bMaxPacketSize.
 byte bNumConfigurations()
          Get this descriptor's bNumConfigurations.
 short idProduct()
          Get this descriptor's idProduct.
 short idVendor()
          Get this descriptor's idVendor.
 byte iManufacturer()
          Get this descriptor's iManufacturer.
 byte iProduct()
          Get this descriptor's iProduct.
 byte iSerialNumber()
          Get this descriptor's iSerialNumber.
 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

UsbDeviceDescriptorImp

public UsbDeviceDescriptorImp(byte bLength,
                              byte bDescriptorType,
                              short bcdUSB,
                              byte bDeviceClass,
                              byte bDeviceSubClass,
                              byte bDeviceProtocol,
                              byte bMaxPacketSize0,
                              short idVendor,
                              short idProduct,
                              short bcdDevice,
                              byte iManufacturer,
                              byte iProduct,
                              byte iSerialNumber,
                              byte bNumConfigurations)
Constructor.

Parameters:
bLength - This descriptor's bLength.
bDescriptorType - This descriptor's bDescriptorType.
bcdUSB - This descriptor's bcdUSB.
bDeviceClass - This descriptor's bDeviceClass.
bDeviceSubClass - This descriptor's bDeviceSubClass.
bDeviceProtocol - This descriptor's bDeviceProtocol.
bMaxPacketSize0 - This descriptor's bMaxPacketSize0.
idVendor - This descriptor's idVendor.
idProduct - This descriptor's idProduct.
bcdDevice - This descriptor's bcdDevice.
iManufacturer - This descriptor's iManufacturer.
iProduct - This descriptor's iProduct.
iSerialNumber - This descriptor's iSerialNumber.
bNumConfigurations - This descriptor's bNumConfigurations.
Method Detail

bcdUSB

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

Specified by:
bcdUSB in interface UsbDeviceDescriptor
Returns:
This descriptor's bcdUSB.
See Also:
This is unsigned.

bDeviceClass

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

Specified by:
bDeviceClass in interface UsbDeviceDescriptor
Returns:
This descriptor's bDeviceClass.
See Also:
This is unsigned.

bDeviceSubClass

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

Specified by:
bDeviceSubClass in interface UsbDeviceDescriptor
Returns:
This descriptor's bDeviceSubClass.
See Also:
This is unsigned.

bDeviceProtocol

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

Specified by:
bDeviceProtocol in interface UsbDeviceDescriptor
Returns:
This descriptor's bDeviceProtocol.
See Also:
This is unsigned.

bMaxPacketSize0

public byte bMaxPacketSize0()
Get this descriptor's bMaxPacketSize.

Specified by:
bMaxPacketSize0 in interface UsbDeviceDescriptor
Returns:
This descriptor's bMaxPacketSize.
See Also:
This is unsigned.

idVendor

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

Specified by:
idVendor in interface UsbDeviceDescriptor
Returns:
This descriptor's idVendor.
See Also:
This is unsigned.

idProduct

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

Specified by:
idProduct in interface UsbDeviceDescriptor
Returns:
This descriptor's idProduct.
See Also:
This is unsigned.

bcdDevice

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

Specified by:
bcdDevice in interface UsbDeviceDescriptor
Returns:
This descriptor's bcdDevice.
See Also:
This is unsigned.

iManufacturer

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

Specified by:
iManufacturer in interface UsbDeviceDescriptor
Returns:
This descriptor's iManufacturer.
See Also:
This is unsigned.

iProduct

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

Specified by:
iProduct in interface UsbDeviceDescriptor
Returns:
This descriptor's iProduct.
See Also:
This is unsigned.

iSerialNumber

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

Specified by:
iSerialNumber in interface UsbDeviceDescriptor
Returns:
This descriptor's iSerialNumber.
See Also:
This is unsigned.

bNumConfigurations

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

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