From 2467deeb17774bae03b1be01d1bc3454aa387948 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Wed, 22 Nov 2017 15:15:20 -0800 Subject: mpm: mykonos: Add API to change master clock rate --- mpm/include/mpm/ad937x/ad937x_ctrl.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpm/include') 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 & fir) = 0; @@ -277,6 +280,7 @@ void export_mykonos(){ LIBMPM_BOOST_PREAMBLE("ad937x") using namespace mpm::chips; bp::class_>("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) -- cgit v1.2.3