javax.usb.util
Class DefaultUsbControlIrp

java.lang.Object
  extended by javax.usb.util.DefaultUsbIrp
      extended by javax.usb.util.DefaultUsbControlIrp
All Implemented Interfaces:
UsbControlIrp, UsbIrp

public class DefaultUsbControlIrp
extends DefaultUsbIrp
implements UsbControlIrp

UsbControlIrp default implementation.

This extends DefaultUsbIrp with the Control-specific methods.

Author:
Dan Streetman

Constructor Summary
DefaultUsbControlIrp(byte[] data, int offset, int length, boolean shortPacket, byte bmRequestType, byte bRequest, short wValue, short wIndex)
          Constructor.
DefaultUsbControlIrp(byte bmRequestType, byte bRequest, short wValue, short wIndex)
          Constructor.
 
Method Summary
 byte bmRequestType()
          Get the bmRequestType.
 byte bRequest()
          Get the bRequest.
 short wIndex()
          Get the wIndex.
 short wLength()
          Get the wLength.
 short wValue()
          Get the wValue.
 
Methods inherited from class javax.usb.util.DefaultUsbIrp
complete, getAcceptShortPacket, getActualLength, getData, getLength, getOffset, getUsbException, isComplete, isUsbException, setAcceptShortPacket, setActualLength, setComplete, setData, setData, setLength, setOffset, setUsbException, waitUntilComplete, waitUntilComplete
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.usb.UsbIrp
complete, getAcceptShortPacket, getActualLength, getData, getLength, getOffset, getUsbException, isComplete, isUsbException, setAcceptShortPacket, setActualLength, setComplete, setData, setData, setLength, setOffset, setUsbException, waitUntilComplete, waitUntilComplete
 

Constructor Detail

DefaultUsbControlIrp

public DefaultUsbControlIrp(byte bmRequestType,
                            byte bRequest,
                            short wValue,
                            short wIndex)
Constructor.

Parameters:
bmRequestType - The bmRequestType.
bRequest - The bRequest.
wValue - The wValue.
wIndex - The wIndex.

DefaultUsbControlIrp

public DefaultUsbControlIrp(byte[] data,
                            int offset,
                            int length,
                            boolean shortPacket,
                            byte bmRequestType,
                            byte bRequest,
                            short wValue,
                            short wIndex)
Constructor.

Parameters:
data - The data.
offset - The offset.
length - The length.
shortPacket - The Short Packet policy.
bmRequestType - The bmRequestType.
bRequest - The bRequest.
wValue - The wValue.
wIndex - The wIndex.
Method Detail

bmRequestType

public byte bmRequestType()
Get the bmRequestType.

Specified by:
bmRequestType in interface UsbControlIrp
Returns:
The bmRequestType.

bRequest

public byte bRequest()
Get the bRequest.

Specified by:
bRequest in interface UsbControlIrp
Returns:
The bRequest.

wValue

public short wValue()
Get the wValue.

Specified by:
wValue in interface UsbControlIrp
Returns:
The wValue.

wIndex

public short wIndex()
Get the wIndex.

Specified by:
wIndex in interface UsbControlIrp
Returns:
The wIndex.

wLength

public short wLength()
Get the wLength.

Returns:
The wLength.