From ec981e9eaae8cc94c450a5468325184e458244d0 Mon Sep 17 00:00:00 2001 From: Kevin Rigney Date: Wed, 7 Nov 2018 23:35:57 -0500 Subject: python: populated the tune_result_t binding The Python API bindings for the tune_result_t structure was not complete. This caused problems when trying to use it, as when tuning the TwinRX daughtercard. --- host/lib/types/tune_python.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/types') diff --git a/host/lib/types/tune_python.hpp b/host/lib/types/tune_python.hpp index 532cc2f8e..587c8cbea 100644 --- a/host/lib/types/tune_python.hpp +++ b/host/lib/types/tune_python.hpp @@ -33,6 +33,12 @@ void export_tune() ; bp::class_("tune_result", bp::init<>()) + .def_readwrite("clipped_rf_freq", &tune_result_t::clipped_rf_freq) + .def_readwrite("target_rf_freq" , &tune_result_t::target_rf_freq ) + .def_readwrite("actual_rf_freq" , &tune_result_t::actual_rf_freq ) + .def_readwrite("target_dsp_freq", &tune_result_t::target_dsp_freq) + .def_readwrite("actual_dsp_freq", &tune_result_t::actual_dsp_freq) + .def("__str__" , &tune_result_t::to_pp_string ) ; } -- cgit v1.2.3