Package ch.ntb.usb
Class Usb_Bus
java.lang.Object
ch.ntb.usb.Usb_Bus
Represents an USB bus.
This is the root class for the representation of the libusb USB structure. Zero or more devices may be connected to an USB bus.
This is the root class for the representation of the libusb USB structure. Zero or more devices may be connected to an USB bus.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the first device ojects of the devices linked list.Returns the systems String representation of the bus.long
Returns the location in the USB bus linked list.getNext()
Returns the next bus object.getPrev()
Returns the previous bus object.Get the root device of this bus.toString()
-
Constructor Details
-
Usb_Bus
public Usb_Bus()
-
-
Method Details
-
getDevices
Get the first device ojects of the devices linked list.- Returns:
- the first device ojects of the devices linked list or null
-
getDirname
Returns the systems String representation of the bus.- Returns:
- the systems String representation of the bus
-
getNext
Returns the next bus object.- Returns:
- Returns the next bus object or null
-
getPrev
Returns the previous bus object.- Returns:
- Returns the previous bus object or null
-
getRootDev
Get the root device of this bus.- Returns:
- the root device oject or null
-
getLocation
public long getLocation()Returns the location in the USB bus linked list.- Returns:
- the location in the USB bus linked list
-
toString
-