public class LinuxSetInterfaceRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LinuxRequest.Completion |
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
LinuxSetInterfaceRequest() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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(UsbControlIrpImp irp) |
void |
setUsbIrpImp(UsbIrpImp irp) |
void |
waitUntilCompleted()
Wait forever until completed.
|
void |
waitUntilCompleted(long timeout)
Wait until completed.
|
short |
wIndex() |
short |
wValue() |
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
public int getType()
public int getInterface()
public int getSetting()
public void setUsbIrpImp(UsbControlIrpImp irp)
irp - The UsbControlIrpImppublic void setUsbIrpImp(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 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()
Copyright © 2014 LSST. All Rights Reserved.