net.sf.jaer.stereopsis
Class StereoBiasgenHardwareInterface
java.lang.Object
net.sf.jaer.stereopsis.StereoHardwareInterface
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
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 |
biasgenLeft
protected BiasgenHardwareInterface biasgenLeft
biasgenRight
protected BiasgenHardwareInterface biasgenRight
StereoBiasgenHardwareInterface
public StereoBiasgenHardwareInterface(AEMonitorInterface aemonLeft,
AEMonitorInterface aemonRight)
- Creates a new instance of StereoBiassgenHardwareInterface
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.