Package ch.ntb.usb

Class USB

java.lang.Object
ch.ntb.usb.USB

public class USB extends Object
This class manages all USB devices and defines some USB specific constants.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    The maximum packet size of a bulk transfer when operating in fullspeed (12 MB/s) mode.
    static int
    The maximum packet size of a bulk transfer when operating in highspeed (480 MB/s) mode.
    static final int
    This request is used to clear or disable a specific feature (USB spec 9.4.1).
    static final int
    This request returns the current device configuration value (USB spec 9.4.2).
    static final int
    This request returns the specified descriptor if the descriptor exists (USB spec 9.4.3).
    static final int
    This request returns the selected alternate setting for the specified interface (USB spec 9.4.4).
    static final int
    This request returns status for the specified recipient (USB spec 9.4.5).
    static final int
    This request sets the device address for all future device accesses (USB spec 9.4.6).
    static final int
    This request sets the device configuration (USB spec 9.4.7).
    static final int
    This request is optional and may be used to update existing descriptors or new descriptors may be added (USB spec 9.4.8).
    static final int
    This request is used to set or enable a specific feature (USB spec 9.4.9).
    static final int
    This request allows the host to select an alternate setting for the specified interface (USB spec 9.4.10).
    static final int
    This request is used to set and then report an endpoint’s synchronization frame (USB spec 9.4.11).
    static final int
    Identifies the direction of data transfer in the second phase of the control transfer.
    The state of the Direction bit is ignored if the wLength field is zero, signifying there is no Data stage.
    Specifies bit 7 of bmRequestType.
    static final int
    Identifies the direction of data transfer in the second phase of the control transfer.
    The state of the Direction bit is ignored if the wLength field is zero, signifying there is no Data stage.
    Specifies bit 7 of bmRequestType.
    static final int
    Specifies the intended recipient of the request.
    Requests may be directed to the device, an interface on the device, or a specific endpoint on a device.
    static final int
    Specifies the intended recipient of the request.
    Requests may be directed to the device, an interface on the device, or a specific endpoint on a device.
    static final int
    Specifies the intended recipient of the request.
    Requests may be directed to the device, an interface on the device, or a specific endpoint on a device.
    static final int
    Specifies the intended recipient of the request.
    Requests may be directed to the device, an interface on the device, or a specific endpoint on a device.
    static final int
    Specifies the type of the request.
    Specifies bits 6..5 of bmRequestType.
    static final int
    Specifies the type of the request.
    Specifies bits 6..5 of bmRequestType.
    static final int
    Specifies the type of the request.
    Specifies bits 6..5 of bmRequestType.
    static final int
    Specifies the type of the request.
    Specifies bits 6..5 of bmRequestType.
  • Constructor Summary

    Constructors
    Constructor
    Description
    USB()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Usb_Bus
    Returns the root Usb_Bus element.
    static Device
    getDevice(short idVendor, short idProduct)
    static Device
    getDevice(short idVendor, short idProduct, String filename)
    Create a new device an register it in a device queue.
    static void
    Explicitly calls LibusbJava.usb_init().

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait