- descriptors extended from Usb_Descriptor
- toString() - javadoc added - interface changes (Strings, dll) git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@147 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -1,23 +1,38 @@
|
||||
package ch.ntb.usb;
|
||||
|
||||
/**
|
||||
* Represents an USB bus.<br>
|
||||
* This is the root class for the representation of the libusb USB structure.
|
||||
* Zero or more devices may be connected to an USB bus.
|
||||
*
|
||||
* @author schlaepfer
|
||||
*
|
||||
*/
|
||||
public class Usb_Bus {
|
||||
|
||||
/**
|
||||
* The next and previous bus object
|
||||
*/
|
||||
public Usb_Bus next, prev;
|
||||
|
||||
/**
|
||||
* Systems String representation of the bus
|
||||
*/
|
||||
public String dirname;
|
||||
|
||||
/**
|
||||
* Device objects attached to this bus
|
||||
*/
|
||||
public Usb_Device devices;
|
||||
|
||||
/**
|
||||
* Location in the USB bus linked list
|
||||
*/
|
||||
public long location;
|
||||
|
||||
public Usb_Device root_dev;
|
||||
|
||||
public String toString() {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append("** Usb_Bus **\n");
|
||||
sb.append("\tdirname: " + dirname + "\n");
|
||||
sb.append("\tlocation: " + location + "\n");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Usb_Bus " + dirname;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user