summaryrefslogtreecommitdiffstats
path: root/xml/test_pywrap/test_prop2.py
blob: 69a219030018cb347157fb33bfbb9603b6a3faf6 (plain)
1
2
3
4
5
6
7
8
import pcipywrap
    
def read_from_register():    
    return pcipywrap.get_property('/registers/fpga/reg1') / 2
    
def write_to_register(value):    
    pcipywrap.set_property(value*3, '/registers/fpga/reg1')