aboutsummaryrefslogtreecommitdiffstats
path: root/host/python
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2018-11-20 12:02:43 -0800
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-29 09:50:02 -0800
commit32457928dd056198900b90215a0690a4226a2b60 (patch)
tree4a8ee0d5e2cb6cf3f227fc40976c0b98544fe83b /host/python
parent6cadc49938761597024cd30235a3e2a92a201638 (diff)
downloaduhd-32457928dd056198900b90215a0690a4226a2b60.tar.gz
uhd-32457928dd056198900b90215a0690a4226a2b60.tar.bz2
uhd-32457928dd056198900b90215a0690a4226a2b60.zip
python: Add sync source to Python API
Exposing getters, setters, and options for multi_usrp sync source.
Diffstat (limited to 'host/python')
-rw-r--r--host/python/pyuhd.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/python/pyuhd.cpp b/host/python/pyuhd.cpp
index 27b154c90..e0f35d929 100644
--- a/host/python/pyuhd.cpp
+++ b/host/python/pyuhd.cpp
@@ -171,6 +171,15 @@ BOOST_PYTHON_MODULE(libpyuhd)
export_metadata();
export_sensors();
export_tune();
+
+ // Declare some more converters
+ iterable_converter()
+ .from_python<std::vector<uhd::device_addr_t>>()
+ ;
+
+ bp::to_python_converter<
+ std::vector<uhd::device_addr_t>,
+ iterable_to_python_list<std::vector<uhd::device_addr_t>>, false >();
}
// Register usrp submodule