Package ch.ntb.usb
Class Usb_Device
java.lang.Object
ch.ntb.usb.Usb_Device
Represents an USB device.
An USB device has one device descriptor and it may have multiple configuration descriptors.
An USB device has one device descriptor and it may have multiple configuration descriptors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBus()
Returns the reference to the bus to which this device is connected.Returns a reference to the first child.Returns the USB config descriptors.Returns the USB device descriptor.byte
Returns the number assigned to this device.Returns the systems String representation.getNext()
Returns the pointer to the next device.byte
Returns the number of children of this device.getPrev()
Returns the pointer to the previous device.toString()
-
Constructor Details
-
Usb_Device
public Usb_Device()
-
-
Method Details
-
getBus
Returns the reference to the bus to which this device is connected.- Returns:
- the reference to the bus to which this device is connected
-
getChildren
Returns a reference to the first child.- Returns:
- a reference to the first child
-
getConfig
Returns the USB config descriptors.- Returns:
- the USB config descriptors
-
getDescriptor
Returns the USB device descriptor.- Returns:
- the USB device descriptor
-
getDevnum
public byte getDevnum()Returns the number assigned to this device.- Returns:
- the number assigned to this device
-
getFilename
Returns the systems String representation.- Returns:
- the systems String representation
-
getNext
Returns the pointer to the next device.- Returns:
- the pointer to the next device or null
-
getNumChildren
public byte getNumChildren()Returns the number of children of this device.- Returns:
- the number of children of this device
-
getPrev
Returns the pointer to the previous device.- Returns:
- the pointer to the previous device or null
-
toString
-