aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_clock_ctrl.hpp
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2014-02-20 11:27:57 -0800
committerMichael West <michael.west@ettus.com>2014-02-20 11:27:57 -0800
commit9ccd93ab11ebf2338b763a86aaf740c710fcc13d (patch)
tree1227a38aa777b6c58a3ce283ed99b13c39b0ad31 /host/lib/usrp/x300/x300_clock_ctrl.hpp
parent4d9c03d44b02d0ee91355280dbc58d1f19deddea (diff)
downloaduhd-9ccd93ab11ebf2338b763a86aaf740c710fcc13d.tar.gz
uhd-9ccd93ab11ebf2338b763a86aaf740c710fcc13d.tar.bz2
uhd-9ccd93ab11ebf2338b763a86aaf740c710fcc13d.zip
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.
Diffstat (limited to 'host/lib/usrp/x300/x300_clock_ctrl.hpp')
-rw-r--r--host/lib/usrp/x300/x300_clock_ctrl.hpp6
1 files changed, 6 insertions, 0 deletions
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 */