public class DefaultUsbControlPipeOsImp extends DefaultUsbPipeOsImp implements UsbControlPipeOsImp
This is identical to DefaultUsbPipeOsImp except all the methods require
UsbControlIrpImps, not UsbIrpImps. This should be driven by a UsbControlPipeImp,
not a normal UsbPipeImp.
allowOpen, HOST_CONTROLLER_OPEN_STRING, HOST_CONTROLLER_SUBMIT_STRING, OPEN_STRING, openString, SUBMIT_STRING, submitString| Constructor and Description |
|---|
DefaultUsbControlPipeOsImp()
Constructor.
|
DefaultUsbControlPipeOsImp(boolean open)
Constructor.
|
DefaultUsbControlPipeOsImp(String open,
String submit)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
asyncSubmit(UsbControlIrpImp irp)
Asynchronously submits this UsbControlIrpImp to the platform implementation.
|
void |
asyncSubmit(UsbIrpImp irp)
Asynchronously submits this UsbIrpImp to the platform implementation.
|
void |
syncSubmit(UsbControlIrpImp irp)
Synchronously submits this UsbControlIrpImp to the platform implementation.
|
void |
syncSubmit(UsbIrpImp irp)
Synchronously submit a UsbControlIrpImp.
|
abortAllSubmissions, allowOpen, asyncSubmit, close, getOpenString, getSubmitString, open, syncSubmitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortAllSubmissions, asyncSubmit, close, open, syncSubmitpublic DefaultUsbControlPipeOsImp()
public DefaultUsbControlPipeOsImp(String open, String submit)
open - The String to use in UsbExceptions thrown in open().submit - The String to use in UsbExceptions thrown in submit methods.public DefaultUsbControlPipeOsImp(boolean open)
If this is true, opening is allowed.
open - If this should allow opening.public void syncSubmit(UsbIrpImp irp) throws UsbException, ClassCastException
This casts the UsbIrpImp to a UsbControlIrpImp and uses the
syncSubmit(UsbControlIrpImp) method.
syncSubmit in interface UsbPipeOsImpsyncSubmit in class DefaultUsbPipeOsImpirp - The UsbControlIrpImp to submit.UsbException - If syncSubmit(UsbControlIrpImp) throws a UsbException.ClassCastExceptionpublic void asyncSubmit(UsbIrpImp irp) throws UsbException, ClassCastException
This casts the UsbIrpImp to a UsbControlIrpImp and uses the
asyncSubmit(UsbControlIrpImp) method.
asyncSubmit in interface UsbPipeOsImpasyncSubmit in class DefaultUsbPipeOsImpirp - The UsbControlIrpImp to submit.UsbException - If asyncSubmit(UsbControlIrpImp) throws a UsbException.ClassCastExceptionpublic void syncSubmit(UsbControlIrpImp irp) throws UsbException
This uses asyncSubmit(UsbControlIrpImp).
syncSubmit in interface UsbControlPipeOsImpirp - the UsbControlIrpImp to use for this submission.UsbException - If the data transfer was unsuccessful.public void asyncSubmit(UsbControlIrpImp irp) throws UsbException
By default, this throws UsbException with the String defined by getSubmitString.
The implementation should override (at least) this method.
asyncSubmit in interface UsbControlPipeOsImpirp - the UsbControlIrpImp to use for this submission.UsbException - If the initial submission was unsuccessful.Copyright © 2014 LSST. All Rights Reserved.