From 9ccd93ab11ebf2338b763a86aaf740c710fcc13d Mon Sep 17 00:00:00 2001 From: Michael West Date: Thu, 20 Feb 2014 11:27:57 -0800 Subject: Fixed bug found during testing where internal clock reference was taking several seconds to lock. Added reset to the clock control and called it whenever the clock reference is changed. --- host/lib/usrp/x300/x300_clock_ctrl.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/usrp/x300/x300_clock_ctrl.hpp') diff --git a/host/lib/usrp/x300/x300_clock_ctrl.hpp b/host/lib/usrp/x300/x300_clock_ctrl.hpp index 0e3caf900..4e7d6fc8e 100644 --- a/host/lib/usrp/x300/x300_clock_ctrl.hpp +++ b/host/lib/usrp/x300/x300_clock_ctrl.hpp @@ -78,6 +78,12 @@ public: * \param true = on, false = off */ virtual void set_ref_out(const bool) = 0; + + /*! Reset the clock control. + * Should be called if the reference clock changes + * to reduce the time required to achieve a lock. + */ + virtual void reset(void) = 0; }; #endif /* INCLUDED_X300_CLOCK_CTRL_HPP */ -- cgit v1.2.3