public class WindowsPipeOsImp extends DefaultUsbPipeOsImp implements UsbPipeOsImp
This must be set up before use.
UsbPipeImp must be set
either in the constructor or by its setter.WindowsInterfaceOsImp must be set
either in the constructor or by its setter.| Modifier and Type | Field and Description |
|---|---|
protected byte |
endpointAddress |
protected List |
inProgressList |
protected byte |
pipeType |
allowOpen, HOST_CONTROLLER_OPEN_STRING, HOST_CONTROLLER_SUBMIT_STRING, OPEN_STRING, openString, SUBMIT_STRING, submitString| Constructor and Description |
|---|
WindowsPipeOsImp(UsbPipeImp pipe,
com.mcreations.usb.windows.WindowsInterfaceOsImp iface)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
asyncSubmit(UsbIrpImp irp)
Delegates to the
WindowsDeviceOsImp of this pipe. |
void |
close()
Close this pipe.
|
protected byte |
getEndpointAddress() |
protected byte |
getPipeType() |
UsbPipeImp |
getUsbPipeImp() |
com.mcreations.usb.windows.WindowsInterfaceOsImp |
getWindowsInterfaceOsImp() |
void |
open()
Opens the corresponding device of this pipe to get a
libusb device handle.
|
void |
setUsbPipeImp(UsbPipeImp pipe) |
void |
setWindowsInterfaceOsImp(com.mcreations.usb.windows.WindowsInterfaceOsImp iface) |
void |
syncSubmit(UsbIrpImp irp)
Synchronously submits this UsbIrpImp to the platform implementation.
|
abortAllSubmissions, allowOpen, asyncSubmit, getOpenString, getSubmitString, syncSubmitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortAllSubmissions, asyncSubmit, syncSubmitprotected byte pipeType
protected byte endpointAddress
protected List inProgressList
public WindowsPipeOsImp(UsbPipeImp pipe, com.mcreations.usb.windows.WindowsInterfaceOsImp iface)
public UsbPipeImp getUsbPipeImp()
public void setUsbPipeImp(UsbPipeImp pipe)
usbPipeImp - The UsbPipeImp for thispublic com.mcreations.usb.windows.WindowsInterfaceOsImp getWindowsInterfaceOsImp()
public void setWindowsInterfaceOsImp(com.mcreations.usb.windows.WindowsInterfaceOsImp iface)
iface - The WindowsInterfaceOsImpprotected byte getEndpointAddress()
protected byte getPipeType()
public void open()
throws UsbException
open in interface UsbPipeOsImpopen in class DefaultUsbPipeOsImpUsbException - If allowOpen is false.UsbPipeOsImp.open()public void close()
DefaultUsbPipeOsImpBy default, this does nothing. The implementation can override this method if appropriate.
close in interface UsbPipeOsImpclose in class DefaultUsbPipeOsImpUsbPipeOsImp.close()public void asyncSubmit(UsbIrpImp irp) throws UsbException
WindowsDeviceOsImp of this pipe.asyncSubmit in interface UsbPipeOsImpasyncSubmit in class DefaultUsbPipeOsImpirp - the UsbIrpImp to use for this submission.UsbException - If the UsbIrpImp was not accepted by the implementation.UsbPipeOsImp.asyncSubmit(com.ibm.jusb.UsbIrpImp)public void syncSubmit(UsbIrpImp irp) throws UsbException
DefaultUsbPipeOsImp
This is implemented using asyncSubmit(UsbIrpImp).
syncSubmit in interface UsbPipeOsImpsyncSubmit in class DefaultUsbPipeOsImpirp - the UsbIrpImp to use for this submission.UsbException - If the data transfer was unsuccessful.Copyright © 2014 LSST. All Rights Reserved.