summaryrefslogtreecommitdiffstats
path: root/xml/test
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-10-13 01:59:17 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-10-13 01:59:17 +0200
commit2e9457b666a303fab83aa17e33624f39de9a1dd7 (patch)
tree7e1b46b4ca64a8eccb7122df33a32c48239d4c62 /xml/test
parent1200eca62c4c47617fa60033f9a0ee25bd26c431 (diff)
downloadpcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.gz
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.bz2
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.xz
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.zip
Support writting register views
Diffstat (limited to 'xml/test')
-rw-r--r--xml/test/camera.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/xml/test/camera.xml b/xml/test/camera.xml
index 2169bd2..a12d26b 100644
--- a/xml/test/camera.xml
+++ b/xml/test/camera.xml
@@ -106,8 +106,8 @@
<register address="0x1b0" offset="0" size="32" default="0" rwmask="0" mode="R" name="ddr_num_frames"/>
</bank>
<bank bar="0" size="0x0200" protocol="software_registers" read_address="0x0" write_address="0x0" word_size="32" endianess="little" format="0x%lx" name="dma" description="DMA Registers"/>
- <transform name="formuu1" unit="C" read_from_register="(503975./1024000)*$value - 27315./100" write_to_register="($value + 27315./100)*(102400./503975)" description="formula to get real fpga temperature from the fpga_temperature register in decimal"/>
- <transform name="formuu2" unit="C" read_from_register="((1./4)*($value - 1200)) if $freq==0 else ((3./10)*($value - 1000))" write_to_register="4*$value + 1200 if $freq==0 else (10./3)*$value + 1000" description="formula to get real sensor temperature from the sensor_temperature register in decimal"/>
+ <transform name="formuu1" unit="C" read_from_register="(503975./1024000)*$value - 27315./100" write_to_register="($value + 27315./100)*(1024000./503975)" description="formula to get real fpga temperature from the fpga_temperature register in decimal"/>
+ <transform name="formuu2" unit="C1" read_from_register="((1./4)*($value - 1200)) if $freq==0 else ((3./10)*($value - 1000))" write_to_register="4*$value + 1200 if $freq==0 else (10./3)*$value + 1000" description="formula to get real sensor temperature from the sensor_temperature register in decimal"/>
<transform name="formuu3" unit="us" read_from_register="($value+(43./100))*129./(40*1000000)if $freq==0 else ($value+(43./100))*129./(48*1000000)" write_to_register="$value/129.*(40*1000000) - 43./100 if $freq==0 else $value/129.*(48*1000000) - 43./100" description="formula to get real exposure time from the cmosis_exp_time register in decimal"/>
<enum name="enumm1" description="enum towards temperatures register">
<name name="high" value="0x100" min="0x2" max="0x300"/>