com.ibm.jusb.os.linux
Class LinuxPipeOsImp

java.lang.Object
  extended by com.ibm.jusb.os.DefaultUsbPipeOsImp
      extended by com.ibm.jusb.os.linux.LinuxPipeOsImp
All Implemented Interfaces:
LinuxRequest.Completion, UsbPipeOsImp

public class LinuxPipeOsImp
extends DefaultUsbPipeOsImp
implements UsbPipeOsImp, LinuxRequest.Completion

UsbPipeOsImp implementation for Linux platform.

This must be set up before use.

Author:
Dan Streetman

Field Summary
 
Fields inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp
HOST_CONTROLLER_OPEN_STRING, HOST_CONTROLLER_SUBMIT_STRING, OPEN_STRING, SUBMIT_STRING
 
Constructor Summary
LinuxPipeOsImp(UsbPipeImp pipe, com.ibm.jusb.os.linux.LinuxInterfaceOsImp iface)
          Constructor
 
Method Summary
 void abortAllSubmissions()
          Stop all submissions in progress
 void asyncSubmit(UsbIrpImp irp)
          Asynchronous submission using a UsbIrpImp.
 com.ibm.jusb.os.linux.LinuxInterfaceOsImp getLinuxInterfaceOsImp()
           
 UsbPipeImp getUsbPipeImp()
           
 void linuxRequestComplete(com.ibm.jusb.os.linux.LinuxRequest request)
           
 void setLinuxInterfaceOsImp(com.ibm.jusb.os.linux.LinuxInterfaceOsImp iface)
           
 void setUsbPipeImp(UsbPipeImp pipe)
           
 
Methods inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp
asyncSubmit, close, open, syncSubmit, syncSubmit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.jusb.os.UsbPipeOsImp
asyncSubmit, close, open, syncSubmit, syncSubmit
 

Constructor Detail

LinuxPipeOsImp

public LinuxPipeOsImp(UsbPipeImp pipe,
                      com.ibm.jusb.os.linux.LinuxInterfaceOsImp iface)
Constructor

Method Detail

getUsbPipeImp

public UsbPipeImp getUsbPipeImp()
Returns:
The UsbPipeImp for this

setUsbPipeImp

public void setUsbPipeImp(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(UsbIrpImp irp)
                 throws UsbException
Asynchronous submission using a UsbIrpImp.

Specified by:
asyncSubmit in interface UsbPipeOsImp
Overrides:
asyncSubmit in class 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 UsbPipeOsImp
Overrides:
abortAllSubmissions in class 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.