|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.jusb.os.linux.LinuxSetInterfaceRequest
public class LinuxSetInterfaceRequest
Interface for interface-changing Requests.
Nested Class Summary | |
---|---|
static interface |
LinuxRequest.Completion
|
Field Summary | |
---|---|
static int |
LINUX_CLAIM_INTERFACE_REQUEST
|
static int |
LINUX_IS_CLAIMED_INTERFACE_REQUEST
|
static int |
LINUX_ISOCHRONOUS_REQUEST
|
static int |
LINUX_PIPE_REQUEST
|
static int |
LINUX_RELEASE_INTERFACE_REQUEST
|
static int |
LINUX_SET_CONFIGURATION_REQUEST
|
static int |
LINUX_SET_INTERFACE_REQUEST
|
Constructor Summary | |
---|---|
LinuxSetInterfaceRequest()
|
Method Summary | |
---|---|
byte |
bmRequestType()
|
byte |
bRequest()
|
void |
completeUsbIrp()
Complete the UsbIrp |
protected void |
executeCompletion()
Run the Completion. |
boolean |
getAcceptShortPacket()
|
LinuxRequest.Completion |
getCompletion()
|
byte[] |
getData()
|
byte |
getDirection()
|
byte |
getEndpointAddress()
|
int |
getError()
|
int |
getInterface()
|
int |
getLength()
|
int |
getOffset()
|
int |
getPipeType()
|
int |
getSetting()
|
byte[] |
getSetupPacket()
|
int |
getType()
Get the type of this request. |
long |
getUrbAddress()
|
com.ibm.jusb.UsbIrpImp |
getUsbIrpImp()
|
boolean |
isCompleted()
|
void |
notifyCompleted()
Notify waiteers of completion. |
void |
setActualLength(int len)
|
void |
setCompleted(boolean c)
Set completed. |
void |
setCompletion(LinuxRequest.Completion c)
|
void |
setEndpointAddress(byte addr)
|
void |
setError(int error)
|
void |
setPipeType(byte type)
|
void |
setUrbAddress(long address)
|
void |
setUsbIrpImp(com.ibm.jusb.UsbControlIrpImp irp)
|
void |
setUsbIrpImp(com.ibm.jusb.UsbIrpImp irp)
|
void |
waitUntilCompleted()
Wait forever until completed. |
void |
waitUntilCompleted(long timeout)
Wait until completed. |
short |
wIndex()
|
short |
wValue()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LINUX_PIPE_REQUEST
public static final int LINUX_SET_INTERFACE_REQUEST
public static final int LINUX_SET_CONFIGURATION_REQUEST
public static final int LINUX_CLAIM_INTERFACE_REQUEST
public static final int LINUX_IS_CLAIMED_INTERFACE_REQUEST
public static final int LINUX_RELEASE_INTERFACE_REQUEST
public static final int LINUX_ISOCHRONOUS_REQUEST
Constructor Detail |
---|
public LinuxSetInterfaceRequest()
Method Detail |
---|
public int getType()
public int getInterface()
public int getSetting()
public void setUsbIrpImp(com.ibm.jusb.UsbControlIrpImp irp)
irp
- The UsbControlIrpImppublic void setUsbIrpImp(com.ibm.jusb.UsbIrpImp irp)
irp
- The (Control)UsbIrpImppublic byte bmRequestType()
public byte bRequest()
public short wValue()
public short wIndex()
public byte[] getSetupPacket()
public byte getDirection()
public byte[] getData()
public int getOffset()
public int getLength()
public boolean getAcceptShortPacket()
public void setActualLength(int len)
len
- The actual length.public com.ibm.jusb.UsbIrpImp getUsbIrpImp()
public long getUrbAddress()
public void setUrbAddress(long address)
address
- the address of the assocaited URBpublic void setCompleted(boolean c)
c
- If this is completed or notpublic void completeUsbIrp()
public void setPipeType(byte type)
type
- The pipe type.public void setEndpointAddress(byte addr)
addr
- The endpoint addresspublic int getPipeType()
public byte getEndpointAddress()
public int getError()
public void setError(int error)
error
- The number of the error that occurred.public void waitUntilCompleted()
public void waitUntilCompleted(long timeout)
public boolean isCompleted()
public void notifyCompleted()
protected void executeCompletion()
public void setCompletion(LinuxRequest.Completion c)
c
- The Completion.public LinuxRequest.Completion getCompletion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |