aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/clock_ctrl.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-31 16:29:12 -0800
committerJosh Blum <josh@joshknows.com>2011-01-31 16:29:12 -0800
commit625d5605dd157f9cf6f1d96e60a4d8d051817aef (patch)
tree4943b1d3fb498c8f36f574edeb1fb8ce7c66e323 /host/lib/usrp/usrp1/clock_ctrl.hpp
parente16445483e1505942b7b1ddcd9fc575532fd93ba (diff)
downloaduhd-625d5605dd157f9cf6f1d96e60a4d8d051817aef.tar.gz
uhd-625d5605dd157f9cf6f1d96e60a4d8d051817aef.tar.bz2
uhd-625d5605dd157f9cf6f1d96e60a4d8d051817aef.zip
usrp: added set and get master clock rates to usrp API
implemented set and get rates in usrp1 (its all soft) implemented set and get rates in usrp2 (only 100MHz)
Diffstat (limited to 'host/lib/usrp/usrp1/clock_ctrl.hpp')
-rw-r--r--host/lib/usrp/usrp1/clock_ctrl.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/clock_ctrl.hpp b/host/lib/usrp/usrp1/clock_ctrl.hpp
index 366869dab..645472f02 100644
--- a/host/lib/usrp/usrp1/clock_ctrl.hpp
+++ b/host/lib/usrp/usrp1/clock_ctrl.hpp
@@ -40,6 +40,13 @@ public:
static sptr make(usrp1_iface::sptr iface);
/*!
+ * Set the rate of the fpga clock line.
+ * Note: does not really set, its all software.
+ * \param freq the new clock rate in Hz
+ */
+ virtual void set_master_clock_freq(double freq) = 0;
+
+ /*!
* Get the rate of the fpga clock line.
* \return the fpga clock rate in Hz
*/