|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.jusb.UsbPipeImp com.ibm.jusb.UsbControlPipeImp
public class UsbControlPipeImp
UsbPipe platform-independent implementation for Control-type pipes.
Field Summary |
---|
Fields inherited from class com.ibm.jusb.UsbPipeImp |
---|
CREATE_SHORT_PACKET_EXCEPTION_POLICY_KEY, PIPE_BULK_QUEUE_POLICY_KEY, PIPE_CONTROL_QUEUE_POLICY_KEY, PIPE_INTERRUPT_QUEUE_POLICY_KEY, PIPE_ISOCHRONOUS_QUEUE_POLICY_KEY |
Constructor Summary | |
---|---|
UsbControlPipeImp()
Constructor. |
|
UsbControlPipeImp(UsbControlPipeOsImp pipe)
Constructor. |
|
UsbControlPipeImp(UsbEndpointImp ep)
Constructor. |
|
UsbControlPipeImp(UsbEndpointImp ep,
UsbControlPipeOsImp pipe)
Constructor. |
Method Summary | |
---|---|
UsbIrp |
asyncSubmit(byte[] data)
Control pipes cannot handle raw byte[] submissions. |
int |
syncSubmit(byte[] data)
Control pipes cannot handle raw byte[] submissions. |
Methods inherited from class com.ibm.jusb.UsbPipeImp |
---|
abortAllSubmissions, addUsbPipeListener, asyncSubmit, asyncSubmit, close, createUsbControlIrp, createUsbIrp, getUsbEndpoint, getUsbEndpointImp, getUsbPipeOsImp, isActive, isOpen, open, removeUsbPipeListener, setupUsbIrpImp, setUsbEndpointImp, setUsbPipeOsImp, syncSubmit, syncSubmit, usbIrpImpComplete |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.usb.UsbPipe |
---|
abortAllSubmissions, addUsbPipeListener, asyncSubmit, asyncSubmit, close, createUsbControlIrp, createUsbIrp, getUsbEndpoint, isActive, isOpen, open, removeUsbPipeListener, syncSubmit, syncSubmit |
Constructor Detail |
---|
public UsbControlPipeImp()
public UsbControlPipeImp(UsbEndpointImp ep)
ep
- The UsbEndpointImp.public UsbControlPipeImp(UsbControlPipeOsImp pipe)
pipe
- The platform-dependent pipe implementation.public UsbControlPipeImp(UsbEndpointImp ep, UsbControlPipeOsImp pipe)
ep
- The UsbEndpointImp.pipe
- The platform-dependent pipe implementation.Method Detail |
---|
public int syncSubmit(byte[] data) throws UsbException
Since Control pipes require a setup packet, raw byte[]s are disallowed. This will throw UsbException.
syncSubmit
in interface UsbPipe
syncSubmit
in class UsbPipeImp
data
- The buffer to use.
UsbException
- Raw byte[]s cannot be used on Control pipes.public UsbIrp asyncSubmit(byte[] data) throws UsbException
Since Control pipes require a setup packet, raw byte[]s are disallowed. This will throw UsbException.
asyncSubmit
in interface UsbPipe
asyncSubmit
in class UsbPipeImp
data
- The buffer to use.
UsbException
- Raw byte[]s cannot be used on Control pipes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |