Package ch.ntb.usb

Class Usb_Device


  • public class Usb_Device
    extends java.lang.Object
    Represents an USB device.
    An USB device has one device descriptor and it may have multiple configuration descriptors.
    • Constructor Detail

      • Usb_Device

        public Usb_Device()
    • Method Detail

      • getBus

        public Usb_Bus 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

        public Usb_Device getChildren()
        Returns a reference to the first child.
        Returns:
        a reference to the first child
      • getConfig

        public Usb_Config_Descriptor[] getConfig()
        Returns the USB config descriptors.
        Returns:
        the USB config descriptors
      • getDescriptor

        public Usb_Device_Descriptor 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

        public java.lang.String getFilename()
        Returns the systems String representation.
        Returns:
        the systems String representation
      • getNext

        public Usb_Device 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

        public Usb_Device getPrev()
        Returns the pointer to the previous device.
        Returns:
        the pointer to the previous device or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object