summaryrefslogtreecommitdiffstats
path: root/xml/test2/views.xml
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-03 16:48:45 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-03 16:48:45 +0100
commit99c165c078222c789d5fc90a79c756c8fffdafea (patch)
tree191428962f77d83577b82a8a1b213fa4bae5f17f /xml/test2/views.xml
parent817906fdd1c4509cb4b79160bb0d9ff72db7a604 (diff)
downloadpcitool-99c165c078222c789d5fc90a79c756c8fffdafea.tar.gz
pcitool-99c165c078222c789d5fc90a79c756c8fffdafea.tar.bz2
pcitool-99c165c078222c789d5fc90a79c756c8fffdafea.tar.xz
pcitool-99c165c078222c789d5fc90a79c756c8fffdafea.zip
Add python wrap for pcilib
Diffstat (limited to 'xml/test2/views.xml')
-rw-r--r--xml/test2/views.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/xml/test2/views.xml b/xml/test2/views.xml
new file mode 100644
index 0000000..c40cd0f
--- /dev/null
+++ b/xml/test2/views.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <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"/>
+</model>