/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to xml/test_pywrap/test_prop2.py

  • Committer: Vasilii Chernov
  • Date: 2016-02-09 16:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160209163211-j56vrnez4sbt9r1o
Add write_register python wrap. Add no_set_check attribute to pcilib_view_t type

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import pcipywrap
2
2
    
3
3
def read_from_register():    
4
 
    return pcipywrap.get_property('/registers/fpga/reg1') / 3
 
4
    return pcipywrap.get_property('/registers/fpga/reg1') / 2
5
5
    
6
6
def write_to_register(value):    
7
7
    pcipywrap.set_property('/registers/fpga/reg1', value*3)