summaryrefslogtreecommitdiffstats
path: root/xml/test_pywrap/test_prop2.py
diff options
context:
space:
mode:
Diffstat (limited to 'xml/test_pywrap/test_prop2.py')
-rw-r--r--xml/test_pywrap/test_prop2.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/xml/test_pywrap/test_prop2.py b/xml/test_pywrap/test_prop2.py
index e9a3364..68c6f1e 100644
--- a/xml/test_pywrap/test_prop2.py
+++ b/xml/test_pywrap/test_prop2.py
@@ -1,7 +1,8 @@
import pcipywrap
-import os
-def read_from_register():
- reg1_val = pcipywrap.read_register('reg1');
- test_prop1_val = pcipywrap.read_register('test_prop3');
- return test_prop1_val - reg1_val;
+def read_from_register():
+ return pcipywrap.get_property('/registers/fpga/reg1') / 3
+
+def write_to_register(value):
+ pcipywrap.set_property('/registers/fpga/reg1', value*3)
+