diff options
Diffstat (limited to 'mpm/include')
-rw-r--r-- | mpm/include/mpm/ad937x/ad937x_ctrl.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mpm/include/mpm/ad937x/ad937x_ctrl.hpp b/mpm/include/mpm/ad937x/ad937x_ctrl.hpp index 22029a135..4710af445 100644 --- a/mpm/include/mpm/ad937x/ad937x_ctrl.hpp +++ b/mpm/include/mpm/ad937x/ad937x_ctrl.hpp @@ -107,14 +107,22 @@ public: mpm::ad937x::gpio::gain_pins_t gain_pins); virtual ~ad937x_ctrl(void) {} + //! Update rx lo source to either external or internal. 1 is external; 0 is internal + virtual void update_rx_lo_source(uint8_t rx_pll_use_external_lo) = 0; + //! Update tx lo source to either external or internal. 1 is external; 0 is internal + virtual void update_tx_lo_source(uint8_t tx_pll_use_external_lo) = 0; + //! Get rx lo source: 1 is external; 0 is internal + virtual uint8_t get_rx_lo_source() = 0 ; + //! Get tx lo source: 1 is external; 0 is internal + virtual uint8_t get_tx_lo_source() = 0 ; //! initializes the AD9371, checks basic functionality, and prepares the chip to receive a SYSREF pulse virtual void begin_initialization() = 0; //! finishes initialization of the AD9371 by loading the ARM binary and setting a default RF configuration virtual void finish_initialization() = 0; - + /*! \setup initialization and tracking calibration - * + * *\param init_cals_mask bit masking field for init calibration default to 0x4DFF * NOTE: this init cals mask need to be at least 0x4F. *\param tracking_cals_mask bit masking field for tracking calibration default to 0xC3 @@ -262,6 +270,10 @@ void export_mykonos(){ bp::class_<ad937x_ctrl, boost::noncopyable, std::shared_ptr<ad937x_ctrl>>("ad937x_ctrl", bp::no_init) .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) + .def("update_tx_lo_source", &ad937x_ctrl::update_tx_lo_source) + .def("get_rx_lo_source", &ad937x_ctrl::get_rx_lo_source) + .def("get_tx_lo_source", &ad937x_ctrl::get_tx_lo_source) .def("setup_cal", &ad937x_ctrl::setup_cal) .def("start_jesd_rx", &ad937x_ctrl::start_jesd_rx) .def("start_jesd_tx", &ad937x_ctrl::start_jesd_tx) |