com.ibm.jusb.os.linux
Class LinuxPipeOsImp
java.lang.Object
com.ibm.jusb.os.DefaultUsbPipeOsImp
com.ibm.jusb.os.linux.LinuxPipeOsImp
- All Implemented Interfaces:
- LinuxRequest.Completion, com.ibm.jusb.os.UsbPipeOsImp
public class LinuxPipeOsImp
- extends com.ibm.jusb.os.DefaultUsbPipeOsImp
- implements com.ibm.jusb.os.UsbPipeOsImp, LinuxRequest.Completion
UsbPipeOsImp implementation for Linux platform.
This must be set up before use.
- Author:
- Dan Streetman
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 |
LinuxPipeOsImp(com.ibm.jusb.UsbPipeImp pipe,
com.ibm.jusb.os.linux.LinuxInterfaceOsImp iface)
Constructor |
Methods inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp |
allowOpen, asyncSubmit, close, getOpenString, getSubmitString, open, syncSubmit, 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 |
asyncSubmit, close, open, syncSubmit, syncSubmit |
pipeType
protected byte pipeType
endpointAddress
protected byte endpointAddress
inProgressList
protected List inProgressList
ABORT_TIMEOUT_ERROR
protected static final int ABORT_TIMEOUT_ERROR
- See Also:
- Constant Field Values
ABORT_COMPLETION_TIMEOUT
protected static final long ABORT_COMPLETION_TIMEOUT
- See Also:
- Constant Field Values
LinuxPipeOsImp
public LinuxPipeOsImp(com.ibm.jusb.UsbPipeImp pipe,
com.ibm.jusb.os.linux.LinuxInterfaceOsImp iface)
- Constructor
getUsbPipeImp
public com.ibm.jusb.UsbPipeImp getUsbPipeImp()
- Returns:
- The UsbPipeImp for this
setUsbPipeImp
public void setUsbPipeImp(com.ibm.jusb.UsbPipeImp pipe)
- Parameters:
pipe
- The UsbPipeImp for this
getLinuxInterfaceOsImp
public com.ibm.jusb.os.linux.LinuxInterfaceOsImp getLinuxInterfaceOsImp()
- Returns:
- The LinuxInterfaceOsImp
setLinuxInterfaceOsImp
public void setLinuxInterfaceOsImp(com.ibm.jusb.os.linux.LinuxInterfaceOsImp iface)
- Parameters:
iface
- The LinuxInterfaceOsImp
asyncSubmit
public void asyncSubmit(com.ibm.jusb.UsbIrpImp irp)
throws UsbException
- Asynchronous submission using a UsbIrpImp.
- Specified by:
asyncSubmit
in interface com.ibm.jusb.os.UsbPipeOsImp
- Overrides:
asyncSubmit
in class com.ibm.jusb.os.DefaultUsbPipeOsImp
- Parameters:
irp
- the UsbIrpImp to use for this submission
- Throws:
UsbException
- if error occurs
abortAllSubmissions
public void abortAllSubmissions()
- Stop all submissions in progress
- Specified by:
abortAllSubmissions
in interface com.ibm.jusb.os.UsbPipeOsImp
- Overrides:
abortAllSubmissions
in class com.ibm.jusb.os.DefaultUsbPipeOsImp
linuxRequestComplete
public void linuxRequestComplete(com.ibm.jusb.os.linux.LinuxRequest request)
- Specified by:
linuxRequestComplete
in interface LinuxRequest.Completion
- Parameters:
request
- The LinuxRequest that completed.
usbIrpImpToLinuxPipeRequest
protected com.ibm.jusb.os.linux.LinuxPipeRequest usbIrpImpToLinuxPipeRequest(com.ibm.jusb.UsbIrpImp usbIrpImp)
throws UsbException
- Create a LinuxPipeRequest to wrap a UsbIrpImp.
- Parameters:
usbIrpImp
- The UsbIrpImp.
- Returns:
- A LinuxPipeRequest for a UsbIrpImp.
- Throws:
If
- there is an error while converting.
UsbException
getEndpointAddress
protected byte getEndpointAddress()
- Returns:
- The endpoint address
getPipeType
protected byte getPipeType()
- Returns:
- The pipe type
Copyright © 2013. All Rights Reserved.