/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.seebetter.ini.chips.davis;

import net.sf.jaer.chip.Chip;
import ch.unizh.ini.jaer.config.onchip.OnchipConfigBit;

/**
 * Bias generator, On-chip diagnostic readout, video acquisition and rendering
 * controls for the Davis240 vision sensors.
 *
 * @author Christian/Tobi
 */
public class Davis240Config extends DavisConfig {

	/**
	 * Creates a new instance of chip configuration
	 *
	 * @param chip
	 *            the chip this configuration belongs to
	 */
	public Davis240Config(Chip chip) {
		super(chip);
		setName("Davis240Config");

		// on-chip configuration chain, use new one.
		chipConfigChain.deleteObservers();
		chipConfigChain = new Davis240ChipConfigChain(chip);
		chipConfigChain.addObserver(this);
	}

	public class Davis240ChipConfigChain extends DavisChipConfigChain {
		OnchipConfigBit hotPixelSuppression = new OnchipConfigBit(
			chip,
			"HotPixelSuppression",
			3,
			"<html>DAVIS240a: turns on the hot pixel suppression. <p>DAViS240b: enables test pixel stripes on right side of array. <p>DAViS240c: no effect.",
			false);

		public Davis240ChipConfigChain(Chip chip) {
			super(chip);

			configBits[3] = hotPixelSuppression;
			configBits[3].addObserver(this);
		}
	}
}

@@ -946,35 +946,35 @@
 nfigBit 
-hotPixelSuppression
+specialPixelControl
  = new O
@@ -1008,27 +1008,27 @@
 %09%09%09%22
-HotPixelSuppression
+SpecialPixelControl
 %22,%0D%0A
@@ -1059,19 +1059,13 @@
 0a: 
-turns on th
+enabl
 e ho
@@ -1083,16 +1083,24 @@
 pression
+ circuit
 . %3Cp%3EDAV
@@ -1117,14 +1117,21 @@
 able
-s test
+ experimental
  pix
@@ -1296,27 +1296,27 @@
 %5D = 
-hotPixelSuppression
+specialPixelControl
 ;%0D%0A%09

rename HotPixelSuppression to SpecialPixelControl, explain what happens.