| Package | Description |
|---|---|
| com.ibm.jusb | |
| com.ibm.jusb.os | |
| com.ibm.jusb.os.linux | |
| com.ibm.jusb.tools.swing | |
| com.mcreations.usb.windows | |
| javax.usb |
Core interfaces and classes modeling USB devices, descriptors, communication pipes and requests/operations.
|
| javax.usb.event |
Classes and interfaces modeling an event model (similar to JavaBeans event model) for USB devices and pipes.
|
| javax.usb.util |
Various utility classes and interfaces that are used by other classes and interfaces in the javax.usb specification.
|
| org.lsst.ccs.drivers.usb |
| Modifier and Type | Method and Description |
|---|---|
void |
UsbHubImp.addUsbDeviceImp(UsbDeviceImp usbDeviceImp,
byte portNumber)
Attach this device to this hub at the specified port.
|
UsbIrp |
UsbPipeImp.asyncSubmit(byte[] data)
Asynchonously submits this byte[] array to the UsbPipe.
|
UsbIrp |
UsbControlPipeImp.asyncSubmit(byte[] data)
Control pipes cannot handle raw byte[] submissions.
|
void |
UsbPipeImp.asyncSubmit(List list)
Asynchronous submission using a List of UsbIrps.
|
void |
UsbDeviceImp.asyncSubmit(List list)
Submit a List of UsbControlIrps asynchronously to the Default Control Pipe.
|
void |
UsbDeviceImp.asyncSubmit(UsbControlIrp irp)
Submit a UsbControlIrp asynchronously to the Default Control Pipe.
|
void |
UsbPipeImp.asyncSubmit(UsbIrp usbIrp)
Asynchronous submission using a UsbIrp.
|
static void |
UsbControlIrpImp.checkUsbControlIrp(UsbControlIrp irp)
Check the specified UsbControlIrp.
|
static void |
UsbIrpImp.checkUsbIrp(UsbIrp irp)
Check the specified UsbIrp.
|
void |
UsbInterfaceImp.claim()
Claim this interface.
|
void |
UsbInterfaceImp.claim(UsbInterfacePolicy policy)
Claim this interface using a UsbInterfacePolicy.
|
void |
UsbPipeImp.close()
Closes this UsbPipe.
|
void |
VirtualRootUsbHubImp.connect(UsbHubImp hub,
byte portNumber)
No connect operation
|
void |
UsbDeviceImp.connect(UsbHubImp hub,
byte portNumber)
Connect to the parent UsbHubImp.
|
String |
UsbConfigurationImp.getConfigurationString() |
String |
UsbInterfaceImp.getInterfaceString() |
protected short |
UsbDeviceImp.getLangId() |
String |
UsbDeviceImp.getManufacturerString() |
String |
UsbDeviceImp.getProductString() |
String |
UsbDeviceImp.getSerialNumberString() |
String |
UsbDeviceImp.getString(byte index) |
UsbStringDescriptor |
UsbDeviceImp.getUsbStringDescriptor(byte index) |
void |
UsbPipeImp.open()
Opens this UsbPipe.
|
void |
UsbInterfaceImp.release()
Release this interface.
|
protected void |
UsbDeviceImp.requestUsbStringDescriptor(byte index)
Update the UsbStringDescriptor at the specified index.
|
int |
UsbPipeImp.syncSubmit(byte[] data)
Synchonously submits this byte[] array to the UsbPipe.
|
int |
UsbControlPipeImp.syncSubmit(byte[] data)
Control pipes cannot handle raw byte[] submissions.
|
void |
UsbPipeImp.syncSubmit(List list)
Synchronous submission using a List of UsbIrps.
|
void |
UsbDeviceImp.syncSubmit(List list)
Submit a List of UsbControlIrps synchronously to the Default Control Pipe.
|
void |
UsbDeviceImp.syncSubmit(UsbControlIrp irp)
Submit a UsbControlIrp synchronously to the Default Control Pipe.
|
void |
UsbPipeImp.syncSubmit(UsbIrp usbIrp)
Synchronous submission using a UsbIrp.
|
protected List |
UsbDeviceImp.usbControlIrpListToUsbControlIrpImpList(List list)
Convert a List of UsbControlIrps to a List of UsbControlIrpImps.
|
protected UsbControlIrpImp |
UsbDeviceImp.usbControlIrpToUsbControlIrpImp(UsbControlIrp usbControlIrp)
Convert a UsbControlIrp to a UsbControlIrpImp.
|
protected List |
UsbPipeImp.usbIrpListToUsbIrpImpList(List list) |
protected UsbIrpImp |
UsbPipeImp.usbIrpToUsbIrpImp(UsbIrp irp)
Convert a UsbIrp to UsbIrpImp.
|
protected UsbIrpImp |
UsbControlPipeImp.usbIrpToUsbIrpImp(UsbIrp irp)
Convert a UsbControlIrp to UsbControlIrpImp.
|
| Modifier and Type | Method and Description |
|---|---|
void |
UsbPipeOsImp.asyncSubmit(List list)
Asynchronously submits a List of UsbIrpImps to the platform implementation.
|
void |
DefaultUsbPipeOsImp.asyncSubmit(List list)
Asynchronously submits a List of UsbIrpImps to the platform implementation.
|
void |
DefaultUsbDeviceOsImp.asyncSubmit(List list)
Asynchronously submit a List of UsbControlIrpImps.
|
void |
UsbDeviceOsImp.asyncSubmit(List list)
Asynchronously submit a List of UsbControlIrpImps.
|
void |
UsbControlPipeOsImp.asyncSubmit(UsbControlIrpImp irp)
Asynchronously submits this UsbControlIrpImp to the platform implementation.
|
void |
DefaultUsbDeviceOsImp.asyncSubmit(UsbControlIrpImp usbControlIrpImp)
Asynchronously submit a UsbControlIrpImp.
|
void |
DefaultUsbControlPipeOsImp.asyncSubmit(UsbControlIrpImp irp)
Asynchronously submits this UsbControlIrpImp to the platform implementation.
|
void |
UsbDeviceOsImp.asyncSubmit(UsbControlIrpImp controlUsbIrpImp)
Asynchronously submit a UsbControlIrpImp.
|
void |
UsbPipeOsImp.asyncSubmit(UsbIrpImp irp)
Asynchronously submits this UsbIrpImp to the platform implementation.
|
void |
DefaultUsbPipeOsImp.asyncSubmit(UsbIrpImp irp)
Asynchronously submits this UsbIrpImp to the platform implementation.
|
void |
DefaultUsbControlPipeOsImp.asyncSubmit(UsbIrpImp irp)
Asynchronously submits this UsbIrpImp to the platform implementation.
|
void |
UsbInterfaceOsImp.claim()
Claim this interface.
|
void |
DefaultUsbInterfaceOsImp.claim()
Claim this interface.
|
void |
UsbInterfaceOsImp.claim(UsbInterfacePolicy policy)
Claim this interface using a UsbInterfacePolicy.
|
void |
DefaultUsbInterfaceOsImp.claim(UsbInterfacePolicy policy)
Claim this interface using a UsbInterfacePolicy.
|
UsbHub |
AbstractUsbServices.getRootUsbHub() |
void |
UsbPipeOsImp.open()
Open this pipe.
|
void |
DefaultUsbPipeOsImp.open()
Open this pipe.
|
void |
UsbInterfaceOsImp.release()
Release this interface.
|
void |
DefaultUsbInterfaceOsImp.release()
Release this interface.
|
void |
UsbPipeOsImp.syncSubmit(List list)
Synchronously submits a List of UsbIrpImps to the platform implementation.
|
void |
DefaultUsbPipeOsImp.syncSubmit(List list)
Synchronously submits a List of UsbIrpImps to the platform implementation.
|
void |
DefaultUsbDeviceOsImp.syncSubmit(List list)
Synchronously submit a List of UsbControlIrpImps.
|
void |
UsbDeviceOsImp.syncSubmit(List list)
Synchronously submit a List of UsbControlIrpImps.
|
void |
UsbControlPipeOsImp.syncSubmit(UsbControlIrpImp irp)
Synchronously submits this UsbControlIrpImp to the platform implementation.
|
void |
DefaultUsbDeviceOsImp.syncSubmit(UsbControlIrpImp usbControlIrpImp)
Synchronously submit a UsbControlIrpImp.
|
void |
DefaultUsbControlPipeOsImp.syncSubmit(UsbControlIrpImp irp)
Synchronously submits this UsbControlIrpImp to the platform implementation.
|
void |
UsbDeviceOsImp.syncSubmit(UsbControlIrpImp controlUsbIrpImp)
Synchronously submit a UsbControlIrpImp.
|
void |
UsbPipeOsImp.syncSubmit(UsbIrpImp irp)
Synchronously submits this UsbIrpImp to the platform implementation.
|
void |
DefaultUsbPipeOsImp.syncSubmit(UsbIrpImp irp)
Synchronously submits this UsbIrpImp to the platform implementation.
|
void |
DefaultUsbControlPipeOsImp.syncSubmit(UsbIrpImp irp)
Synchronously submit a UsbControlIrpImp.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LinuxPipeOsImp.asyncSubmit(UsbIrpImp irp)
Asynchronous submission using a UsbIrpImp.
|
UsbHub |
LinuxUsbServices.getRootUsbHub() |
protected com.ibm.jusb.os.linux.LinuxPipeRequest |
LinuxPipeOsImp.usbIrpImpToLinuxPipeRequest(UsbIrpImp usbIrpImp)
Create a LinuxPipeRequest to wrap a UsbIrpImp.
|
| Constructor and Description |
|---|
LinuxUsbServices() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
UsbDevicePanel.gotError(UsbException uE) |
protected void |
UsbPipePanel.gotError(UsbException uE) |
| Modifier and Type | Method and Description |
|---|---|
void |
UsbControlIrpPanel.submit(UsbDevice device) |
void |
UsbIrpPanel.submit(UsbPipe pipe) |
| Modifier and Type | Method and Description |
|---|---|
void |
WindowsPipeOsImp.asyncSubmit(UsbIrpImp irp)
Delegates to the
WindowsDeviceOsImp of this pipe. |
UsbHub |
WindowsUsbServices.getRootUsbHub() |
void |
WindowsPipeOsImp.open()
Opens the corresponding device of this pipe to get a
libusb device handle.
|
void |
WindowsPipeOsImp.syncSubmit(UsbIrpImp irp) |
| Constructor and Description |
|---|
WindowsUsbServices() |
| Modifier and Type | Class and Description |
|---|---|
class |
UsbAbortException
Exception indicating a submission was aborted.
|
class |
UsbBabbleException
Exception indicating a Babble error.
|
class |
UsbBitStuffException
Exception indicating a Bit-Stuff violation.
|
class |
UsbClaimException
Exception indicating an UsbInterface claim state prevents the current operation.
|
class |
UsbCRCException
Exception indicating a CRC error.
|
class |
UsbNativeClaimException
Exception indicating an UsbInterface is already natively claimed.
|
class |
UsbPIDException
Exception indicating a PID error.
|
class |
UsbPlatformException
Exception indicating a platform-specific UsbException.
|
class |
UsbShortPacketException
Exception indicating a short packet was detected.
|
class |
UsbStallException
Exception indicating a stall.
|
| Modifier and Type | Method and Description |
|---|---|
UsbException |
UsbIrp.getUsbException()
Get the UsbException.
|
| Modifier and Type | Method and Description |
|---|---|
void |
UsbIrp.setUsbException(UsbException usbException)
Set the UsbException.
|
| Modifier and Type | Method and Description |
|---|---|
UsbIrp |
UsbPipe.asyncSubmit(byte[] data)
Asynchonously submit a byte[] to the UsbPipe.
|
void |
UsbDevice.asyncSubmit(List list)
Submit a List of UsbControlIrps asynchronously to the Default Control Pipe.
|
void |
UsbPipe.asyncSubmit(List list)
Asynchonously submit a List of UsbIrps to the UsbPipe.
|
void |
UsbDevice.asyncSubmit(UsbControlIrp irp)
Submit a UsbControlIrp asynchronously to the Default Control Pipe.
|
void |
UsbPipe.asyncSubmit(UsbIrp irp)
Asynchonously submit a UsbIrp to the UsbPipe.
|
void |
UsbInterface.claim()
Claim this interface.
|
void |
UsbInterface.claim(UsbInterfacePolicy policy)
Claim this interface using a UsbInterfacePolicy.
|
void |
UsbPipe.close()
Close this UsbPipe.
|
String |
UsbConfiguration.getConfigurationString()
Get the configuration String.
|
String |
UsbInterface.getInterfaceString()
Get the interface String.
|
String |
UsbDevice.getManufacturerString()
Get the manufacturer String.
|
String |
UsbDevice.getProductString()
Get the product String.
|
static Properties |
UsbHostManager.getProperties()
Get the Properties loaded from the properties file.
|
UsbHub |
UsbServices.getRootUsbHub()
Get the virtual UsbHub to which all physical Host Controller UsbHubs are attached.
|
String |
UsbDevice.getSerialNumberString()
Get the serial number String.
|
String |
UsbDevice.getString(byte index)
Get the String from the specified string descriptor.
|
static UsbServices |
UsbHostManager.getUsbServices()
Get the UsbServices implementation.
|
UsbStringDescriptor |
UsbDevice.getUsbStringDescriptor(byte index)
Get the specified string descriptor.
|
void |
UsbPipe.open()
Open this UsbPipe.
|
void |
UsbInterface.release()
Release this interface.
|
int |
UsbPipe.syncSubmit(byte[] data)
Synchonously submit a byte[] to the UsbPipe.
|
void |
UsbDevice.syncSubmit(List list)
Submit a List of UsbControlIrps synchronously to the Default Control Pipe.
|
void |
UsbPipe.syncSubmit(List list)
Synchonously submit a List of UsbIrps to the UsbPipe.
|
void |
UsbDevice.syncSubmit(UsbControlIrp irp)
Submit a UsbControlIrp synchronously to the Default Control Pipe.
|
void |
UsbPipe.syncSubmit(UsbIrp irp)
Synchonously submit a UsbIrp to the UsbPipe.
|
| Modifier and Type | Method and Description |
|---|---|
UsbException |
UsbDeviceErrorEvent.getUsbException()
Get the associated UsbException.
|
UsbException |
UsbPipeErrorEvent.getUsbException()
Get the associated UsbException.
|
| Constructor and Description |
|---|
UsbPipeErrorEvent(UsbPipe source,
UsbException uE)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
protected UsbException |
DefaultUsbIrp.usbException |
| Modifier and Type | Method and Description |
|---|---|
UsbException |
DefaultUsbIrp.getUsbException()
Get the UsbException.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultUsbIrp.setUsbException(UsbException exception)
Set the UsbException.
|
| Modifier and Type | Method and Description |
|---|---|
UsbIrp |
UsbUtil.SynchronizedUsbPipe.asyncSubmit(byte[] data) |
void |
UsbUtil.SynchronizedUsbDevice.asyncSubmit(List list) |
void |
UsbUtil.SynchronizedUsbPipe.asyncSubmit(List list) |
void |
UsbUtil.SynchronizedUsbDevice.asyncSubmit(UsbControlIrp irp) |
void |
UsbUtil.SynchronizedUsbPipe.asyncSubmit(UsbIrp irp) |
void |
StandardRequest.clearFeature(byte recipient,
short featureSelector,
short target)
Clear Feature.
|
static void |
StandardRequest.clearFeature(UsbDevice usbDevice,
byte recipient,
short featureSelector,
short target)
Clear Feature.
|
void |
UsbUtil.SynchronizedUsbPipe.close() |
byte |
StandardRequest.getConfiguration()
Get Configuration.
|
static byte |
StandardRequest.getConfiguration(UsbDevice usbDevice)
Get Configuration.
|
int |
StandardRequest.getDescriptor(byte type,
byte index,
short langid,
byte[] data)
Get Descriptor.
|
static int |
StandardRequest.getDescriptor(UsbDevice usbDevice,
byte type,
byte index,
short langid,
byte[] data)
Get Descriptor.
|
byte |
StandardRequest.getInterface(short interfaceNumber)
Get Interface.
|
static byte |
StandardRequest.getInterface(UsbDevice usbDevice,
short interfaceNumber)
Get Interface.
|
String |
UsbUtil.SynchronizedUsbDevice.getManufacturerString() |
String |
UsbUtil.SynchronizedUsbDevice.getProductString() |
String |
UsbUtil.SynchronizedUsbDevice.getSerialNumberString() |
short |
StandardRequest.getStatus(byte recipient,
short target)
Get Status.
|
static short |
StandardRequest.getStatus(UsbDevice usbDevice,
byte recipient,
short target)
Get Status.
|
String |
UsbUtil.SynchronizedUsbDevice.getString(byte index) |
UsbStringDescriptor |
UsbUtil.SynchronizedUsbDevice.getUsbStringDescriptor(byte index) |
void |
UsbUtil.SynchronizedUsbPipe.open() |
void |
StandardRequest.setAddress(short deviceAddress)
Set Address.
|
static void |
StandardRequest.setAddress(UsbDevice usbDevice,
short deviceAddress)
Set Address.
|
void |
StandardRequest.setConfiguration(short configurationValue)
Set Configuration.
|
static void |
StandardRequest.setConfiguration(UsbDevice usbDevice,
short configurationValue)
Set Configuration.
|
int |
StandardRequest.setDescriptor(byte type,
byte index,
short langid,
byte[] data)
Set Descriptor.
|
static int |
StandardRequest.setDescriptor(UsbDevice usbDevice,
byte type,
byte index,
short langid,
byte[] data)
Set Descriptor.
|
void |
StandardRequest.setFeature(byte recipient,
short featureSelector,
short target)
Set Feature.
|
static void |
StandardRequest.setFeature(UsbDevice usbDevice,
byte recipient,
short featureSelector,
short target)
Set Feature.
|
void |
StandardRequest.setInterface(short interfaceNumber,
short alternateSetting)
Set Interface.
|
static void |
StandardRequest.setInterface(UsbDevice usbDevice,
short interfaceNumber,
short alternateSetting)
Set Interface.
|
short |
StandardRequest.synchFrame(short endpointAddress)
Synch Frame.
|
static short |
StandardRequest.synchFrame(UsbDevice usbDevice,
short endpointAddress)
Synch Frame.
|
int |
UsbUtil.SynchronizedUsbPipe.syncSubmit(byte[] data) |
void |
UsbUtil.SynchronizedUsbDevice.syncSubmit(List list) |
void |
UsbUtil.SynchronizedUsbPipe.syncSubmit(List list) |
void |
UsbUtil.SynchronizedUsbDevice.syncSubmit(UsbControlIrp irp) |
void |
UsbUtil.SynchronizedUsbPipe.syncSubmit(UsbIrp irp) |
| Modifier and Type | Class and Description |
|---|---|
class |
UsbTimeoutException |
| Modifier and Type | Method and Description |
|---|---|
void |
UsbComm.claim(int iface,
boolean force)
Claims an interface
|
void |
UsbCommPipe.close()
Closes the pipe
|
UsbDevice |
UsbComm.findDevice(int vid,
int pid)
Finds a USB device and sets it as current
|
UsbDevice |
UsbComm.findDevice(int vid,
int pid,
int index)
Finds a USB device and sets it as current
|
UsbDevice |
UsbComm.findDevice(int vid,
int pid,
String serial)
Finds a USB device and sets it as current
|
void |
TestUsbCommNew.findDevice(int vendId,
int devId,
String serial)
Processes the FIND command
|
UsbDevice |
UsbComm.findDevice(int vid,
int pid,
String serial,
int index)
Finds a USB device and sets it as current
|
static List |
UsbComm.findDevices(int vid,
int pid,
String serial)
Finds USB devices
|
int |
UsbCommPipe.flush()
Flushes any pending read data
|
UsbCommPipe |
UsbComm.open(int iface,
int epAddr)
Opens a connection to a device's endpoint
|
void |
TestUsbCommNew.openDevice(int iface,
int epaddr)
Processes the OPEN command
|
int |
UsbCommPipe.read(byte[] data,
int timeout)
Reads data from the pipe
|
int |
UsbCommPipe.read(byte[] data,
int offs,
int leng,
int timeout)
Reads data from the pipe
|
int |
UsbComm.read(int type,
int rqst,
int value,
int index,
byte[] data,
int timeout)
Reads data from the control endpoint
|
int |
UsbComm.read(int type,
int rqst,
int value,
int index,
byte[] data,
int offs,
int leng,
int timeout)
Reads data from the control endpoint
|
void |
UsbComm.release(int iface)
Releases an interface
|
void |
UsbComm.setConfiguration(int cfgNum)
Sets the active USB configuration for the current device
|
void |
UsbComm.setDevice(UsbDevice device)
Sets the current USB device
|
void |
UsbComm.setInterface(int iface,
int setting)
Sets the active setting of the specified USB interface of the current
device
|
int |
UsbCommPipe.write(byte[] data)
Writes data to the pipe
|
int |
UsbCommPipe.write(byte[] data,
int offs,
int leng)
Writes data to the pipe
|
int |
UsbComm.write(int type,
int rqst,
int value,
int index,
byte[] data)
Writes data to the control endpoint
|
int |
UsbComm.write(int type,
int rqst,
int value,
int index,
byte[] data,
int offs,
int leng)
Writes data to the control endpoint
|
| Constructor and Description |
|---|
UsbComm()
Constructor
|
UsbCommPipe(UsbPipe pipe)
Constructor
|
Copyright © 2014 LSST. All Rights Reserved.