diff options
author | Kevin Rigney <kevinrigney@gmail.com> | 2018-11-07 23:35:57 -0500 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-11-15 10:41:52 -0800 |
commit | ec981e9eaae8cc94c450a5468325184e458244d0 (patch) | |
tree | de6d9e678ff036188d71de6c290fcaceb2ecaa22 | |
parent | 388bc5229f01a042505dc30aacece88739fdeffc (diff) | |
download | uhd-ec981e9eaae8cc94c450a5468325184e458244d0.tar.gz uhd-ec981e9eaae8cc94c450a5468325184e458244d0.tar.bz2 uhd-ec981e9eaae8cc94c450a5468325184e458244d0.zip |
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.
-rw-r--r-- | host/lib/types/tune_python.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
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_t>("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 ) ; } |