usb.windows
Class Windows

java.lang.Object
  |
  +--usb.core.HostFactory
        |
        +--usb.windows.Windows

public class Windows
extends HostFactory

Provides access to native USB host objects


Field Summary
static java.lang.String A_JUSB_DRIVER
          The string to regocnise a jUSB driver.
static boolean createUSB
          if true then debugs the USB issues
static boolean debug
           
static boolean debugDeviceImpl
          if true then debugs the DeviceImpl issues
static boolean debugEnum
          If true the debugs the enumeration process
static boolean debugJUSB
          if true then debugs the JUSB issues
static boolean debugUSB
          if true then debugs the USB issues
static boolean debugWatcher
          if true then debugs the Watcher issues
 
Constructor Summary
Windows()
          Not part of the API; implements reference implementation SPI.
 
Method Summary
 Host createHost()
          Not part of the API; implements reference implementation SPI.
static Host getHost()
          Provides access to a singelton USB Host
static java.lang.String getHostControllerDevicePath(int number)
          Return the ith host controller device path from the Windows OS
static java.lang.String getHostControllerName(java.lang.String hcdDevicePath)
          Return the host controller name of the Windows OS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static final boolean debug
See Also:
Constant Field Values

debugEnum

public static final boolean debugEnum
If true the debugs the enumeration process

See Also:
Constant Field Values

debugWatcher

public static final boolean debugWatcher
if true then debugs the Watcher issues

See Also:
Constant Field Values

debugUSB

public static final boolean debugUSB
if true then debugs the USB issues

See Also:
Constant Field Values

debugDeviceImpl

public static final boolean debugDeviceImpl
if true then debugs the DeviceImpl issues

See Also:
Constant Field Values

debugJUSB

public static final boolean debugJUSB
if true then debugs the JUSB issues

See Also:
Constant Field Values

createUSB

public static boolean createUSB
if true then debugs the USB issues


A_JUSB_DRIVER

public static final java.lang.String A_JUSB_DRIVER
The string to regocnise a jUSB driver. If the "DeviceDesc" value in the Windows registry for an usb device starts with this name then the device is supposed to be a jUSB device.

See Also:
Constant Field Values
Constructor Detail

Windows

public Windows()
Not part of the API; implements reference implementation SPI.

Method Detail

createHost

public Host createHost()
                throws java.io.IOException
Not part of the API; implements reference implementation SPI.

Specified by:
createHost in class HostFactory
java.io.IOException

getHost

public static Host getHost()
                    throws java.io.IOException
Provides access to a singelton USB Host

Throws:
java.io.IOException - When USB Host functions are not available.

getHostControllerName

public static java.lang.String getHostControllerName(java.lang.String hcdDevicePath)
Return the host controller name of the Windows OS

Parameters:
hcdDevicePath - The host controller device path from the Windows OS
Returns:
The name of the host controller or null.

getHostControllerDevicePath

public static java.lang.String getHostControllerDevicePath(int number)
Return the ith host controller device path from the Windows OS

Parameters:
number - The number indicates the ith host controller on the system. Start with 0 and increment until null is returned
Returns:
The host controller device path or null.