public class UsbControlPipeImp extends UsbPipeImp implements UsbPipe
abortInProgress, CREATE_SHORT_PACKET_EXCEPTION_POLICY_KEY, createShortPacketException, listenerImp, listTable, PIPE_BULK_QUEUE_POLICY_KEY, PIPE_CONTROL_QUEUE_POLICY_KEY, PIPE_INTERRUPT_QUEUE_POLICY_KEY, PIPE_ISOCHRONOUS_QUEUE_POLICY_KEY, queueManager, queueSubmissions, submissionList| Constructor and Description |
|---|
UsbControlPipeImp()
Constructor.
|
UsbControlPipeImp(UsbControlPipeOsImp pipe)
Constructor.
|
UsbControlPipeImp(UsbEndpointImp ep)
Constructor.
|
UsbControlPipeImp(UsbEndpointImp ep,
UsbControlPipeOsImp pipe)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UsbIrp |
asyncSubmit(byte[] data)
Control pipes cannot handle raw byte[] submissions.
|
int |
syncSubmit(byte[] data)
Control pipes cannot handle raw byte[] submissions.
|
protected UsbIrpImp |
usbIrpToUsbIrpImp(UsbIrp irp)
Convert a UsbControlIrp to UsbControlIrpImp.
|
abortAllSubmissions, addRunnable, addUsbPipeListener, asyncSubmit, asyncSubmit, checkActive, checkDisconnected, checkOpen, close, createUsbControlIrp, createUsbIrp, createUsbIrpImp, fireEvent, getUsbEndpoint, getUsbEndpointImp, getUsbPipeOsImp, isActive, isDisconnected, isInDirection, isOpen, open, queueList, queueUsbIrpImp, removeUsbPipeListener, setPolicies, setupUsbIrpImp, setUsbEndpointImp, setUsbPipeOsImp, submitUsbIrpImpFromQueue, syncSubmit, syncSubmit, usbIrpImpComplete, usbIrpListToUsbIrpImpListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortAllSubmissions, addUsbPipeListener, asyncSubmit, asyncSubmit, close, createUsbControlIrp, createUsbIrp, getUsbEndpoint, isActive, isOpen, open, removeUsbPipeListener, syncSubmit, syncSubmitpublic 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.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 UsbPipesyncSubmit in class UsbPipeImpdata - 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 UsbPipeasyncSubmit in class UsbPipeImpdata - The buffer to use.UsbException - Raw byte[]s cannot be used on Control pipes.protected UsbIrpImp usbIrpToUsbIrpImp(UsbIrp irp) throws UsbException
If the UsbIrp is not a UsbControlIrp, a UsbException is thrown. This does not use the superclass method.
usbIrpToUsbIrpImp in class UsbPipeImpirp - The UsbControlIrp to convert.UsbException - If the UsbIrp is not ready for submission.Copyright © 2014 LSST. All Rights Reserved.