|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jusb.os.DefaultUsbPipeOsImp
com.mcreations.usb.windows.WindowsPipeOsImp
public class WindowsPipeOsImp
UsbPipeOsImp implementation for Windows platform.
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.
| Field Summary | |
|---|---|
protected byte |
endpointAddress
|
protected List |
inProgressList
|
protected byte |
pipeType
|
| Fields inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp |
|---|
allowOpen, HOST_CONTROLLER_OPEN_STRING, HOST_CONTROLLER_SUBMIT_STRING, OPEN_STRING, openString, SUBMIT_STRING, submitString |
| Constructor Summary | |
|---|---|
WindowsPipeOsImp(UsbPipeImp pipe,
com.mcreations.usb.windows.WindowsInterfaceOsImp iface)
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp |
|---|
abortAllSubmissions, allowOpen, asyncSubmit, getOpenString, getSubmitString, syncSubmit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.jusb.os.UsbPipeOsImp |
|---|
abortAllSubmissions, asyncSubmit, syncSubmit |
| Field Detail |
|---|
protected byte pipeType
protected byte endpointAddress
protected List inProgressList
| Constructor Detail |
|---|
public WindowsPipeOsImp(UsbPipeImp pipe,
com.mcreations.usb.windows.WindowsInterfaceOsImp iface)
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||