jAER project on SourceForge

net.sf.jaer.stereopsis
Class StereoBiasgenHardwareInterface

java.lang.Object
  extended by net.sf.jaer.stereopsis.StereoHardwareInterface
      extended by net.sf.jaer.stereopsis.StereoBiasgenHardwareInterface
All Implemented Interfaces:
AEMonitorInterface, BiasgenHardwareInterface, HardwareInterface, ReaderBufferControl, USBInterface

public class StereoBiasgenHardwareInterface
extends StereoHardwareInterface
implements BiasgenHardwareInterface

Duplicates the hardware interface to a single bias generator to control a stereo pair of chips each with it's own hardware interface.

Author:
tobi

Field Summary
protected  BiasgenHardwareInterface biasgenLeft
           
protected  BiasgenHardwareInterface biasgenRight
           
 
Fields inherited from class net.sf.jaer.stereopsis.StereoHardwareInterface
chip, INITIAL_CAPACITY, RESET_TIMESTAMPS_THRESHOLD_DT_US
 
Fields inherited from interface net.sf.jaer.hardwareinterface.usb.USBInterface
PID_THESYCON_END, PID_THESYCON_START, VID_THESYCON
 
Constructor Summary
StereoBiasgenHardwareInterface(AEMonitorInterface aemonLeft, AEMonitorInterface aemonRight)
          Creates a new instance of StereoBiassgenHardwareInterface
 
Method Summary
 void flashConfiguration(Biasgen biasgen)
          flashes the biases in non-volatile storage so they will be reloaded on reset or powerup
 byte[] formatConfigurationBytes(Biasgen biasgen)
          Formats and returns the bytes that should be sent to set a particular configuration.
 void sendConfiguration(Biasgen biasgen)
          sends the ipot values.
 void setPowerDown(boolean powerDown)
          Overrides the super method to set powerdown for both chips.
 
Methods inherited from class net.sf.jaer.stereopsis.StereoHardwareInterface
acquireAvailableEventsFromDriver, addAEListener, close, getAEBufferSize, getAemonLeft, getAemonRight, getChip, getDID, getEstimatedEventRate, getEvents, getFifoSize, getMaxCapacity, getNumBuffers, getNumEventsAcquired, getPID, getStringDescriptors, getTimestampTickUs, getTypeName, getVID, getVIDPID, isEventAcquisitionEnabled, isIgnoreTimestampNonmonotonicity, isOpen, labelLeftEye, labelRightEye, open, overrunOccurred, removeAEListener, resetTimestamps, setAEBufferSize, setAemonLeft, setAemonRight, setChip, setEventAcquisitionEnabled, setFifoSize, setIgnoreTimestampNonmonotonicity, setNumBuffers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaer.hardwareinterface.HardwareInterface
close, getTypeName, isOpen, open
 

Field Detail

biasgenLeft

protected BiasgenHardwareInterface biasgenLeft

biasgenRight

protected BiasgenHardwareInterface biasgenRight
Constructor Detail

StereoBiasgenHardwareInterface

public StereoBiasgenHardwareInterface(AEMonitorInterface aemonLeft,
                                      AEMonitorInterface aemonRight)
Creates a new instance of StereoBiassgenHardwareInterface

Method Detail

setPowerDown

public void setPowerDown(boolean powerDown)
                  throws HardwareInterfaceException
Overrides the super method to set powerdown for both chips.

Specified by:
setPowerDown in interface BiasgenHardwareInterface
Parameters:
powerDown - true to power OFF the biasgen, false to power on
Throws:
HardwareInterfaceException

sendConfiguration

public void sendConfiguration(Biasgen biasgen)
                       throws HardwareInterfaceException
sends the ipot values.

Specified by:
sendConfiguration in interface BiasgenHardwareInterface
Parameters:
biasgen - the object that holds the configuration.
Throws:
HardwareInterfaceException

flashConfiguration

public void flashConfiguration(Biasgen biasgen)
                        throws HardwareInterfaceException
flashes the biases in non-volatile storage so they will be reloaded on reset or powerup

Specified by:
flashConfiguration in interface BiasgenHardwareInterface
Parameters:
biasgen - holds the configuration values
Throws:
HardwareInterfaceException

formatConfigurationBytes

public byte[] formatConfigurationBytes(Biasgen biasgen)
Description copied from interface: BiasgenHardwareInterface
Formats and returns the bytes that should be sent to set a particular configuration.

Specified by:
formatConfigurationBytes in interface BiasgenHardwareInterface
Parameters:
biasgen - the source of the configuration.
Returns:
the array to be sent.

jAER project on SourceForge