com.ibm.jusb
Class VirtualRootUsbHubImp
java.lang.Object
com.ibm.jusb.UsbDeviceImp
com.ibm.jusb.UsbHubImp
com.ibm.jusb.VirtualRootUsbHubImp
- All Implemented Interfaces:
- UsbIrpImp.UsbIrpImpListener, java.util.EventListener, UsbDevice, UsbHub
public class VirtualRootUsbHubImp
- extends UsbHubImp
- implements UsbHub
Virtual root UsbHub implementation.
- Author:
- Dan Streetman
Methods inherited from class com.ibm.jusb.UsbDeviceImp |
addUsbConfigurationImp, addUsbDeviceListener, asyncSubmit, asyncSubmit, containsUsbConfiguration, createUsbControlIrp, getActiveUsbConfiguration, getActiveUsbConfigurationImp, getActiveUsbConfigurationNumber, getCachedUsbStringDescriptor, getManufacturerString, getParentUsbPort, getProductString, getSerialNumberString, getSpeed, getString, getUsbConfiguration, getUsbConfigurationImp, getUsbConfigurations, getUsbDeviceDescriptor, getUsbDeviceOsImp, getUsbStringDescriptor, isConfigured, removeUsbDeviceListener, setActiveUsbConfigurationNumber, setCachedUsbStringDescriptor, setSpeed, setUsbDeviceDescriptor, setUsbDeviceOsImp, syncSubmit, syncSubmit, usbIrpImpComplete |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.usb.UsbDevice |
addUsbDeviceListener, asyncSubmit, asyncSubmit, containsUsbConfiguration, createUsbControlIrp, getActiveUsbConfiguration, getActiveUsbConfigurationNumber, getManufacturerString, getParentUsbPort, getProductString, getSerialNumberString, getSpeed, getString, getUsbConfiguration, getUsbConfigurations, getUsbDeviceDescriptor, getUsbStringDescriptor, isConfigured, isUsbHub, removeUsbDeviceListener, syncSubmit, syncSubmit |
MANUFACTURER_INDEX
public static final byte MANUFACTURER_INDEX
- See Also:
- Constant Field Values
PRODUCT_INDEX
public static final byte PRODUCT_INDEX
- See Also:
- Constant Field Values
SERIALNUMBER_INDEX
public static final byte SERIALNUMBER_INDEX
- See Also:
- Constant Field Values
MANUFACTURER_STRING
public static final java.lang.String MANUFACTURER_STRING
- See Also:
- Constant Field Values
PRODUCT_STRING
public static final java.lang.String PRODUCT_STRING
- See Also:
- Constant Field Values
SERIALNUMBER_STRING
public static final java.lang.String SERIALNUMBER_STRING
- See Also:
- Constant Field Values
ENCODING
public static final java.lang.String ENCODING
- See Also:
- Constant Field Values
VIRTUAL_ROOT_USBHUB_SUBMIT_STRING
public static final java.lang.String VIRTUAL_ROOT_USBHUB_SUBMIT_STRING
- See Also:
- Constant Field Values
VENDOR_ID
public static final short VENDOR_ID
- See Also:
- Constant Field Values
PRODUCT_ID
public static final short PRODUCT_ID
- See Also:
- Constant Field Values
DEVICE_BCD
public static final short DEVICE_BCD
- See Also:
- Constant Field Values
USB_BCD
public static final short USB_BCD
- See Also:
- Constant Field Values
CONFIG_NUM
public static final byte CONFIG_NUM
- See Also:
- Constant Field Values
CONFIG_TOTAL_LEN
public static final short CONFIG_TOTAL_LEN
- See Also:
- Constant Field Values
INTERFACE_NUM
public static final byte INTERFACE_NUM
- See Also:
- Constant Field Values
SETTING_NUM
public static final byte SETTING_NUM
- See Also:
- Constant Field Values
stringLangId
public static final byte[] stringLangId
deviceDescriptorBytes
public static final byte[] deviceDescriptorBytes
virtualDeviceDescriptor
public static final UsbDeviceDescriptorImp virtualDeviceDescriptor
configurationDescriptorBytes
public static final byte[] configurationDescriptorBytes
virtualConfigurationDescriptor
public static final UsbConfigurationDescriptorImp virtualConfigurationDescriptor
virtualInterfaceDescriptor
public static final UsbInterfaceDescriptorImp virtualInterfaceDescriptor
VirtualRootUsbHubImp
public VirtualRootUsbHubImp()
connect
public void connect(UsbHubImp hub,
byte portNumber)
throws UsbException
- No connect operation
- Overrides:
connect
in class UsbDeviceImp
- Parameters:
hub
- The parent.portNumber
- The port on the parent this is connected to.
- Throws:
UsbException
isRootUsbHub
public boolean isRootUsbHub()
- Description copied from interface:
UsbHub
- If this is the
virtual root hub
.
- Specified by:
isRootUsbHub
in interface UsbHub
- Overrides:
isRootUsbHub
in class UsbHubImp
- Returns:
- true if this is the virtual root hub
disconnect
public void disconnect()
- No disconnect
- Overrides:
disconnect
in class UsbDeviceImp
setParentUsbPortImp
public void setParentUsbPortImp(UsbPortImp port)
- No UsbPort use
- Overrides:
setParentUsbPortImp
in class UsbDeviceImp
- Parameters:
port
- The parent port
getParentUsbPortImp
public UsbPortImp getParentUsbPortImp()
- No UsbPort use
- Overrides:
getParentUsbPortImp
in class UsbDeviceImp
- Returns:
- The port that this device is attached to