Top Description Fields Constructors Methods
javax.usb.util

public Class DefaultUsbControlIrp

extends DefaultUsbIrp
implements UsbControlIrp
Class Inheritance
All Implemented Interfaces
javax.usb.UsbControlIrp, javax.usb.UsbIrp
Imports
java.util.*, javax.usb.*

UsbControlIrp default implementation.

This extends DefaultUsbIrp with the Control-specific methods.

Author
Dan Streetman

Field Summary

Modifier and TypeField and Description
protected byte
protected byte
protected short
protected short
Inherited from javax.usb.util.DefaultUsbIrp:
acceptShortPacketactualLengthcompletedatalengthoffsetusbException

Constructor Summary

AccessConstructor and Description
public
DefaultUsbControlIrp(byte
The bmRequestType.
bmRequestType
,
byte
The bRequest.
bRequest
,
short
The wValue.
wValue
,
short
The wIndex.
wIndex
)

Constructor.

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

Constructor.

Method Summary

Modifier and TypeMethod and Description
public byte

Returns:

The bmRequestType.
bmRequestType
()

Implements javax.usb.UsbControlIrp.bmRequestType.

Get the bmRequestType.
public byte

Returns:

The bRequest.
bRequest
()

Implements javax.usb.UsbControlIrp.bRequest.

Get the bRequest.
public short

Returns:

The wIndex.
wIndex
()

Implements javax.usb.UsbControlIrp.wIndex.

Get the wIndex.
public short

Returns:

The wLength.
wLength
()

Get the wLength.

public short

Returns:

The wValue.
wValue
()

Implements javax.usb.UsbControlIrp.wValue.

Get the wValue.
Inherited from javax.usb.util.DefaultUsbIrp:
completegetAcceptShortPacketgetActualLengthgetDatagetLengthgetOffsetgetUsbExceptionisCompleteisUsbExceptionsetAcceptShortPacketsetActualLengthsetCompletesetDatasetDatasetLengthsetOffsetsetUsbExceptionwaitUntilCompletewaitUntilComplete

Field Detail

bmRequestTypeback to summary
protected byte bmRequestType
bRequestback to summary
protected byte bRequest
wIndexback to summary
protected short wIndex
wValueback to summary
protected short wValue

Constructor Detail

DefaultUsbControlIrpback to summary
public DefaultUsbControlIrp(byte bmRequestType, byte bRequest, short wValue, short wIndex)

Constructor.

Parameters
bmRequestType:byte

The bmRequestType.

bRequest:byte

The bRequest.

wValue:short

The wValue.

wIndex:short

The wIndex.

DefaultUsbControlIrpback to summary
public DefaultUsbControlIrp(byte[] data, int offset, int length, boolean shortPacket, byte bmRequestType, byte bRequest, short wValue, short wIndex)

Constructor.

Parameters
data:byte[]

The data.

offset:int

The offset.

length:int

The length.

shortPacket:boolean

The Short Packet policy.

bmRequestType:byte

The bmRequestType.

bRequest:byte

The bRequest.

wValue:short

The wValue.

wIndex:short

The wIndex.

Method Detail

bmRequestTypeback to summary
public byte bmRequestType()

Implements javax.usb.UsbControlIrp.bmRequestType.

Get the bmRequestType.

Returns:byte

The bmRequestType.

bRequestback to summary
public byte bRequest()

Implements javax.usb.UsbControlIrp.bRequest.

Get the bRequest.

Returns:byte

The bRequest.

wIndexback to summary
public short wIndex()

Implements javax.usb.UsbControlIrp.wIndex.

Get the wIndex.

Returns:short

The wIndex.

wLengthback to summary
public short wLength()

Get the wLength.

Returns:short

The wLength.

wValueback to summary
public short wValue()

Implements javax.usb.UsbControlIrp.wValue.

Get the wValue.

Returns:short

The wValue.