summaryrefslogtreecommitdiffstats
path: root/xml
diff options
context:
space:
mode:
authornicolas.zilio@hotmail.fr <>2015-09-15 17:27:27 +0200
committernicolas.zilio@hotmail.fr <>2015-09-15 17:27:27 +0200
commite43b676d8294f37410ea0fa1f9fa39d10df64408 (patch)
treec94f5f4e77f7fb40cedcc3cdfc70a76abc468372 /xml
parentc871ef59e748678b11d964e21debab05082948a0 (diff)
downloadpcitool-e43b676d8294f37410ea0fa1f9fa39d10df64408.tar.gz
pcitool-e43b676d8294f37410ea0fa1f9fa39d10df64408.tar.bz2
pcitool-e43b676d8294f37410ea0fa1f9fa39d10df64408.tar.xz
pcitool-e43b676d8294f37410ea0fa1f9fa39d10df64408.zip
not perfect but working
Diffstat (limited to 'xml')
-rw-r--r--xml/test/camera.xml26
1 files changed, 13 insertions, 13 deletions
diff --git a/xml/test/camera.xml b/xml/test/camera.xml
index 021ed61..6506467 100644
--- a/xml/test/camera.xml
+++ b/xml/test/camera.xml
@@ -463,8 +463,8 @@
<view type="formula">
<name>formuu1</name>
<unit>C</unit>
- <read_from_register>(503975./1024000)*@reg - 27315./100</read_from_register>
- <write_to_register>(@value + 27315./100)*(102400./503975)</write_to_register>
+ <read_from_register>(503975./1024000)*@reg@ - 27315./100</read_from_register>
+ <write_to_register>(@value@ + 27315./100)*(102400./503975)</write_to_register>
<description>formula to get real fpga temperature from the fpga_temperature register in decimal</description>
</view>
<view type="enum">
@@ -476,8 +476,8 @@
<view type="formula">
<name>formuu2</name>
<unit>C</unit>
- <read_from_register>((1./4)*(@reg + 1200)) if @freq==0 else ((3./10)*(@reg + 1000))</read_from_register>
- <write_to_register>4*@value + 1200 if @freq==0 else (10./3)*@value + 1000</write_to_register>
+ <read_from_register>((1./4)*(@reg@ + 1200)) if @freq@==0 else ((3./10)*(@reg@ + 1000))</read_from_register>
+ <write_to_register>4*@value@ + 1200 if @freq@==0 else (10./3)*@value@ + 1000</write_to_register>
<description>formula to get real sensor temperature from the sensor_temperature register in decimal</description>
</view>
<view type="enum">
@@ -503,21 +503,21 @@
</views>
<units>
<unit name="C">
- <convert_unit value="K">@self+273.15</convert_unit>
- <convert_unit value="F">@self*(9./5)+32</convert_unit>
+ <convert_unit value="K">@self@+273.15</convert_unit>
+ <convert_unit value="F">@self@*(9./5)+32</convert_unit>
</unit>
<unit name="K">
- <convert_unit value="C">@self-273.15</convert_unit>
- <convert_unit value="F">(@self-273.15)*(9./5)+32</convert_unit>
+ <convert_unit value="C">@self@-273.15</convert_unit>
+ <convert_unit value="F">(@self@-273.15)*(9./5)+32</convert_unit>
</unit>
<unit name="F">
- <convert_unit value="C">(@self-32)*5./9</convert_unit>
- <convert_unit value="K">(@self+273.15-32)*5./9</convert_unit>
+ <convert_unit value="C">(@self@-32)*5./9</convert_unit>
+ <convert_unit value="K">(@self@+273.15-32)*5./9</convert_unit>
</unit>
<unit name="s">
- <convert_unit value="ms">@self*1000</convert_unit>
- <convert_unit value="us">@self*1000000</convert_unit>
- <convert_unit value="ns">@self*1000000000</convert_unit>
+ <convert_unit value="ms">@self@*1000</convert_unit>
+ <convert_unit value="us">@self@*1000000</convert_unit>
+ <convert_unit value="ns">@self@*1000000000</convert_unit>
</unit>
<unit name="ms">
<convert_unit value="s">@self/1000</convert_unit>