|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Universal Serial Bus connects a set of (USB) devices to a Host. Such buses are largely autoconfiguring. Aspects such as power management, driver binding, and device configuration involve policy choices, typically made in cooperation between the host OS kernel and user-mode software such as applications or services for them.
The bus can be examined device by device. Because devices can be
inserted and removed at any time, there is no notion of a self-consistent
listing snapshot in this API. Rather than scanning the bus, instead
use addUSBListener
with an object that can immediately react to device addition or removal,
or directly walk the tree of USB devices.
Method Summary | |
java.lang.String |
getBusId()
Returns a host-specific stable identifier for this bus. |
Device |
getDevice(int address)
Returns an object representing the device with the specified address (1 through 127), or null if no such device exists. |
Host |
getHost()
Returns the USB host to which this bus is connected. |
Device |
getRootHub()
Returns the root hub of the bus, if it is known yet. |
Method Detail |
public Host getHost() throws java.io.IOException
public Device getRootHub() throws java.io.IOException
public Device getDevice(int address) throws java.io.IOException
Device.getAddress()
public java.lang.String getBusId() throws java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |