aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_clock_ctrl.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-04-10 18:39:45 -0700
committerMartin Braun <martin.braun@ettus.com>2015-04-10 18:39:45 -0700
commitddae9468b9f69fcbc91c4f8cbffc0b7d69b79b4c (patch)
treed2b9422fa68315ff1b001c9fa60baeb6752ae59b /host/lib/usrp/x300/x300_clock_ctrl.hpp
parent1f41782b564da36e31f41e2561f2778e36986baf (diff)
parentf23e7bcc47f86ffb431aee43abe670e3e5e31647 (diff)
downloaduhd-ddae9468b9f69fcbc91c4f8cbffc0b7d69b79b4c.tar.gz
uhd-ddae9468b9f69fcbc91c4f8cbffc0b7d69b79b4c.tar.bz2
uhd-ddae9468b9f69fcbc91c4f8cbffc0b7d69b79b4c.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/x300/x300_clock_ctrl.hpp')
-rw-r--r--host/lib/usrp/x300/x300_clock_ctrl.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_clock_ctrl.hpp b/host/lib/usrp/x300/x300_clock_ctrl.hpp
index 40b62b09a..9c08aa356 100644
--- a/host/lib/usrp/x300/x300_clock_ctrl.hpp
+++ b/host/lib/usrp/x300/x300_clock_ctrl.hpp
@@ -71,11 +71,24 @@ public:
*/
virtual void set_dboard_rate(const x300_clock_which_t which, double rate) = 0;
+ /*! Get the clock rate on the given daughterboard clock.
+ * \throw exception when rate invalid
+ * \return the clock rate in Hz
+ */
+ virtual double get_dboard_rate(const x300_clock_which_t which) = 0;
+
/*! Get a list of possible daughterboard clock rates.
* \return a list of clock rates in Hz
*/
virtual std::vector<double> get_dboard_rates(const x300_clock_which_t which) = 0;
+ /*! Enable or disable daughterboard clock.
+ * \param which which clock
+ * \param enable true=enable, false=disable
+ * \return a list of clock rates in Hz
+ */
+ virtual void enable_dboard_clock(const x300_clock_which_t which, const bool enable) = 0;
+
/*! Turn the reference output on/off
* \param true = on, false = off
*/