com.ibm.jusb
Class UsbEndpointDescriptorImp

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

public class UsbEndpointDescriptorImp
extends UsbDescriptorImp
implements UsbEndpointDescriptor

UsbEndpointDescriptor implementation.

Author:
Dan Streetman

Constructor Summary
UsbEndpointDescriptorImp(byte bLength, byte bDescriptorType, byte bEndpointAddress, byte bmAttributes, byte bInterval, short wMaxPacketSize)
          Constructor.
 
Method Summary
 byte bEndpointAddress()
          Get this descriptor's bEndpointAddress.
 byte bInterval()
          Get this descriptor's bInterval.
 byte bmAttributes()
          Get this descriptor's bmAttributes.
 java.lang.String toString()
          Get a String representing this.
 short wMaxPacketSize()
          Get this descriptor's wMaxPacketSize.
 
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

UsbEndpointDescriptorImp

public UsbEndpointDescriptorImp(byte bLength,
                                byte bDescriptorType,
                                byte bEndpointAddress,
                                byte bmAttributes,
                                byte bInterval,
                                short wMaxPacketSize)
Constructor.

Parameters:
bLength - This descriptor's bLength.
bDescriptorType - This descriptor's bDescriptorType.
bEndpointAddress - This descriptor's bEndpointAddress.
bmAttributes - This descriptor's bmAttributes.
bInterval - This descriptor's bInterval.
wMaxPacketSize - This descriptor's wMaxPacketSize.
Method Detail

bEndpointAddress

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

Specified by:
bEndpointAddress in interface UsbEndpointDescriptor
Returns:
This descriptor's bEndpointAddress.
See Also:
This is unsigned.

bmAttributes

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

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

wMaxPacketSize

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

Specified by:
wMaxPacketSize in interface UsbEndpointDescriptor
Returns:
This descriptor's wMaxPacketSize.
See Also:
This is unsigned.

bInterval

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

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