diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-31 16:29:12 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-31 16:29:12 -0800 |
commit | 625d5605dd157f9cf6f1d96e60a4d8d051817aef (patch) | |
tree | 4943b1d3fb498c8f36f574edeb1fb8ce7c66e323 /host/lib/usrp/usrp1/clock_ctrl.hpp | |
parent | e16445483e1505942b7b1ddcd9fc575532fd93ba (diff) | |
download | uhd-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.hpp | 7 |
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 */ |