diff options
author | Trung N Tran <trung.tran@ettus.com> | 2017-11-22 15:15:20 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:07 -0800 |
commit | 2467deeb17774bae03b1be01d1bc3454aa387948 (patch) | |
tree | 5e96a1f318b3e61049036e6dbda36b36d8d2154b /mpm/include | |
parent | 2dceea5d5691cd7435380013332ee26412dc33d3 (diff) | |
download | uhd-2467deeb17774bae03b1be01d1bc3454aa387948.tar.gz uhd-2467deeb17774bae03b1be01d1bc3454aa387948.tar.bz2 uhd-2467deeb17774bae03b1be01d1bc3454aa387948.zip |
mpm: mykonos: Add API to change master clock rate
Diffstat (limited to 'mpm/include')
-rw-r--r-- | mpm/include/mpm/ad937x/ad937x_ctrl.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/include/mpm/ad937x/ad937x_ctrl.hpp b/mpm/include/mpm/ad937x/ad937x_ctrl.hpp index 21a6b2892..198e4e2d8 100644 --- a/mpm/include/mpm/ad937x/ad937x_ctrl.hpp +++ b/mpm/include/mpm/ad937x/ad937x_ctrl.hpp @@ -247,6 +247,9 @@ public: */ virtual bool get_lo_locked(const std::string &which) = 0; + //! set master clock rate + virtual void set_master_clock_rate(const double rate) = 0; + //! set the FIR filter for the frontend which virtual void set_fir(const std::string &which, int8_t gain, const std::vector<int16_t> & fir) = 0; @@ -277,6 +280,7 @@ void export_mykonos(){ LIBMPM_BOOST_PREAMBLE("ad937x") using namespace mpm::chips; bp::class_<ad937x_ctrl, boost::noncopyable, std::shared_ptr<ad937x_ctrl>>("ad937x_ctrl", bp::no_init) + .def("set_master_clock_rate", &ad937x_ctrl::set_master_clock_rate) .def("begin_initialization", &ad937x_ctrl::begin_initialization) .def("finish_initialization", &ad937x_ctrl::finish_initialization) .def("update_rx_lo_source", &ad937x_ctrl::update_rx_lo_source) |