|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a USB hub.
Method Summary | |
java.util.List |
getAttachedUsbDevices()
Get all attached UsbDevices. |
byte |
getNumberOfPorts()
Get the number of (downstream) ports this hub has. |
UsbPort |
getUsbPort(byte number)
Get a specific UsbPort by port number. |
java.util.List |
getUsbPorts()
Get all the ports this hub has. |
boolean |
isRootUsbHub()
If this is the virtual root hub . |
Method Detail |
public byte getNumberOfPorts()
This is only the number of ports on the hub, not all ports are necessarily enabled, available, usable, or in some cases physically present. This only represents the number of downstream ports the hub claims to have. Note that all hubs have exactly one upstream port, which allows it to connect to the system (or another upstream hub). There is also a internal port which is generally only used by the hub itself. See the USB 1.1 specification sec 11.4 for details on the internal port, sec 11.5 for details on the downstream ports, and sec 11.6 for details on the upstream port.
public java.util.List getUsbPorts()
The port numbering is 1-based.
The List will be unmodifiable.
getUsbPort( byte number )
public UsbPort getUsbPort(byte number)
This gets the UsbPort with the specified number. The port numbering is 1-based (not 0-based), and the max port number is 255. See the USB 1.1 specification table 11.8 offset 7.
If the specified port does not exist, this returns null.
number
- The number (1-based) of the port to get.
public java.util.List getAttachedUsbDevices()
The List will be unmodifiable.
public boolean isRootUsbHub()
virtual root hub
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |