jAER project on SourceForge

net.sf.jaer.hardwareinterface.usb
Interface USBInterface

All Superinterfaces:
HardwareInterface
All Known Subinterfaces:
AEMonitorInterface, AEMonitorSequencerInterface, AESequencerInterface
All Known Implementing Classes:
CochleaAMS1bHardwareInterface, CypressFX2, CypressFX2AEX, CypressFX2Biasgen, CypressFX2DVS128HardwareInterface, CypressFX2Mapper, CypressFX2MonitorSequencer, CypressFX2RetinaLinux, CypressFX2StereoBoard, CypressFX2TmpdiffRetinaHardwareInterface, DVS320HardwareInterface, SiLabsC8051F320, SiLabsC8051F320_USBIO_AeSequencer, StereoBiasgenHardwareInterface, StereoHardwareInterface

public interface USBInterface
extends HardwareInterface

Interface to a USB device. Includes constants such as assigned VID and PID range for jAER devices.

Author:
tobi

Field Summary
static short PID_THESYCON_END
          The ending PID that goes with VID_THESYCON
static short PID_THESYCON_START
          The starting PID that goes with VID_THESYCON
static short VID_THESYCON
          The vendor ID that goes with VID/PIDs bought from Thesycon
 
Method Summary
 short getDID()
           
 short getPID()
           
 java.lang.String[] getStringDescriptors()
          return the string USB descriptors for the device.
 short getVID()
           
 int[] getVIDPID()
          Deprecated. use getVID and getPID instead
 
Methods inherited from interface net.sf.jaer.hardwareinterface.HardwareInterface
close, getTypeName, isOpen, open
 

Field Detail

VID_THESYCON

static final short VID_THESYCON
The vendor ID that goes with VID/PIDs bought from Thesycon

See Also:
Constant Field Values

PID_THESYCON_START

static final short PID_THESYCON_START
The starting PID that goes with VID_THESYCON

See Also:
Constant Field Values

PID_THESYCON_END

static final short PID_THESYCON_END
The ending PID that goes with VID_THESYCON

See Also:
Constant Field Values
Method Detail

getStringDescriptors

java.lang.String[] getStringDescriptors()
return the string USB descriptors for the device. By USB convention, the first string is the manufactuer, the second is product, and the last is the unique serial number. The serial number may not be implemented, in which case a null string may be the third string or the length of the returned array may only be 2.

Returns:
String[] of USB descriptors

getVIDPID

int[] getVIDPID()
Deprecated. use getVID and getPID instead

return the USB VID/PID of the interface

Returns:
int[] of length 2 containing the Vendor ID (VID) and Product ID (PID) of the device. First element is VID, second element is PID.

getVID

short getVID()
Returns:
PID (vendor ID)

getPID

short getPID()
Returns:
PID (product ID)

getDID

short getDID()
Returns:
DID (device ID). This is the firmware version number, not the serial number. A device may not set the firmware version number in it's descriptors. Returns 0 then. DVS128 and the USBAERmini2 do have it.

jAER project on SourceForge