summaryrefslogtreecommitdiffstats
path: root/xml/test/test_prop3.py
blob: c0728a3bcca05f48f1b80077ab38dd4a540d4564 (plain)
1
2
3
4
5
def read_from_register(ctx, value):
   return ctx.get_property('/registers/fpga/sensor_temperature') + 500

def write_to_register(ctx, value):
   ctx.set_property(value, '/registers/fpga/sensor_temperature') - 500