Commit graph

2 commits

Author SHA1 Message Date
Martin Braun
a0721d79e4 python: Improve access to device_addr_t
This makes two changes:
- Add device_addr_t as a type that the Python property tree access can
  handle
- Add a to_dict() call to device_addr_t (in Python) that will return
  a regular dictionary from a device_addr_t for a more Pythonic access.
2020-11-23 14:35:15 -08:00
Martin Braun
7ee106187e python: Add access to the property_tree from Python
Example:
>>> usrp = uhd.usrp.multi_usrp("")
>>> tree = usrp.get_tree()
>>> print(tree.access_int("/name").get())
2020-10-16 14:58:15 -05:00