summaryrefslogtreecommitdiffstats
path: root/xml/test_pywrap/test_prop2.py
blob: a831fdd6afe1ee5541ad882a91cdc68b39f3ce15 (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('/registers/fpga/reg1', value*3)