]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added units for CB DACs
authorMaps <maps@ikf>
Wed, 18 Dec 2013 13:06:33 +0000 (14:06 +0100)
committerMaps <maps@ikf>
Wed, 18 Dec 2013 13:06:33 +0000 (14:06 +0100)
web/htdocs/scripts/xmlpage.js
xml-db/database/CbController.xml

index 486c551b663f4e8347a4d5707a899db51fae66af..ba51f50ee9165901e128c760a2b5c20f6bc3d894 100644 (file)
@@ -41,7 +41,8 @@
     
   
   function settarget(e) {
-    command=document.getElementById("target").value;
+    if(document.getElementById("target"))
+      command=document.getElementById("target").value;
     var opt = "";
     if(document.getElementById("rate").checked) opt += "rate";
     if(document.getElementById("cache").checked) opt += "cache";
@@ -55,4 +56,4 @@
     var part = command.split('-');
     command=part[0]+"-"+address+"-"+part[2]+part[3];
     refresh(period);
-    }
\ No newline at end of file
+    }
index b3e872e3e3bf79ba34106e2c54e2334b7001fc85..00792a3387806b1fb0a467994b24156390a3c224 100644 (file)
     <register  name="UartManOverride"
               address="0043" purpose="config" mode="rw" >
       <description>Override the default UART functionality for debug reasons. If set to 1, UartDataIn and UartDataOut operate the UART directly.</description>
-      <field name="UartManOverrideBits"
+      <field name="UartManOverride"
               start="0"  bits="1"  mode="rw"  purpose="config"  format="bitmask" >
       </field>
     </register>
     <register  name="UartDebug"
               address="004F" purpose="status" mode="r" >
       <description>Debug register for the UART</description>
-      <field name="UartDebugCounter"
+      <field name="UartDebug"
               start="0"  bits="32"  mode="r"  purpose="status"  format="hex" >
       </field>
     </register>
     <register  name="SpiDataIn"
               address="0051" purpose="config" mode="rw" >
       <description>Set what the FPGA returns to the microcontroller over SPI line.</description>
-      <field name="SpiDataInWord"
+      <field name="SpiDataIn"
               start="0"  bits="16"  mode="rw"  purpose="config"  format="hex" >
       </field>
     </register>
     <register  name="SpiCounter"
               address="0052" purpose="status" mode="r" >
       <description>counts how many spi data words have been received</description>
-      <field name="SpiCounterWord"
-              start="0" bits="32"  mode="r"  purpose="status"  format="integer" >
+      <field name="SpiCounter"
+              start="0" bits="32"  mode="r"  purpose="status"  format="integer" rate="1">
       </field>
     </register>
     <register  name="UcReset"
               address="0060" purpose="config" mode="rw" >
       <description>Brings the uC to reset, when set Lo.</description>
-      <field name="UcResetBit"
+      <field name="UcReset"
               start="0"  bits="1"  mode="rw"  purpose="config"  format="bitmask" >
       </field>
     </register>
     <register  name="ReadBack"
               address="0000" purpose="config" mode="rw" >
       <description>Address of the register that has to be sent to the FPGA.</description>
-      <field name="ReadBackAddr"
+      <field name="ReadBack"
               start="0" bits="8"  mode="rw"  purpose="config"  format="hex" >
       </field>
     </register>
 
     <register  name="DacCurLimA0" address="0005" purpose="config" mode="rw" >
       <description></description>
-      <field name="DacCurLimA0" start="0" bits="16" format="hex" >
+      <field name="DacCurLimA0" start="0" bits="16" format="unsigned" unit="mA" scale="0.005035">
       </field>
     </register>
 
     <register  name="DacCurLimD0" address="0006" purpose="config" mode="rw" >
       <description></description>
-      <field name="DacCurLimD0" start="0" bits="16" format="hex" >
+      <field name="DacCurLimD0" start="0" bits="16" format="unsigned" unit="mA" scale="0.005035">
       </field>
     </register>
 
     <register  name="DacVClp0" address="0007" purpose="config" mode="rw" >
       <description></description>
-      <field name="DacVClp0" start="0" bits="16" format="hex" >
+      <field name="DacVClp0" start="0" bits="16"  format="unsigned" unit="mV" scale="0.05035" >
       </field>
     </register>
 
 
     <register  name="DacCurLimD1" address="0009" purpose="config" mode="rw" >
       <description></description>
-      <field name="DacCurLimD1" start="0" bits="16" format="hex" >
+      <field name="DacCurLimD1" start="0" bits="16"  format="unsigned" unit="mA" scale="0.005035" >
       </field>
     </register>
 
     <register  name="DacVClp1" address="000A" purpose="config" mode="rw" >
       <description></description>
-      <field name="DacVClp1" start="0" bits="16" format="hex" >
+      <field name="DacVClp1" start="0" bits="16"  format="unsigned" unit="mV" scale="0.05035">
       </field>
     </register>