summaryrefslogtreecommitdiffstats
path: root/xml/test_pywrap
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-09 17:32:11 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-09 17:32:11 +0100
commitdce856c1a16098fe7a1df2338df60073261da94a (patch)
tree61285a125a21bd311c3835f8b0fb8a7cc94d8f76 /xml/test_pywrap
parentaaac7b80d1e003a3dbc4fe0f831a68e5449c846d (diff)
downloadpcitool-dce856c1a16098fe7a1df2338df60073261da94a.tar.gz
pcitool-dce856c1a16098fe7a1df2338df60073261da94a.tar.bz2
pcitool-dce856c1a16098fe7a1df2338df60073261da94a.tar.xz
pcitool-dce856c1a16098fe7a1df2338df60073261da94a.zip
Add write_register python wrap. Add no_set_check attribute to pcilib_view_t type
Diffstat (limited to 'xml/test_pywrap')
-rw-r--r--xml/test_pywrap/props.xml3
-rw-r--r--xml/test_pywrap/test_prop2.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/xml/test_pywrap/props.xml b/xml/test_pywrap/props.xml
index 59d593c..8e3078e 100644
--- a/xml/test_pywrap/props.xml
+++ b/xml/test_pywrap/props.xml
@@ -9,7 +9,8 @@
register="test_prop2"
unit="C"
script="test_prop2.py"
- description="test python script #1"/>
+ description="test python script #1"
+ no_set_check="1"/>
<transform path="/test/prop3"
register="test_prop3"
unit="C"
diff --git a/xml/test_pywrap/test_prop2.py b/xml/test_pywrap/test_prop2.py
index 68c6f1e..a831fdd 100644
--- a/xml/test_pywrap/test_prop2.py
+++ b/xml/test_pywrap/test_prop2.py
@@ -1,7 +1,7 @@
import pcipywrap
def read_from_register():
- return pcipywrap.get_property('/registers/fpga/reg1') / 3
+ return pcipywrap.get_property('/registers/fpga/reg1') / 2
def write_to_register(value):
pcipywrap.set_property('/registers/fpga/reg1', value*3)