From 32457928dd056198900b90215a0690a4226a2b60 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 20 Nov 2018 12:02:43 -0800 Subject: python: Add sync source to Python API Exposing getters, setters, and options for multi_usrp sync source. --- host/python/pyuhd.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host/python') 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>() + ; + + bp::to_python_converter< + std::vector, + iterable_to_python_list>, false >(); } // Register usrp submodule -- cgit v1.2.3