diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-11 19:08:58 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-17 11:36:14 -0700 |
commit | 7aeb266783f3cda158762f8a8619fd512024acc4 (patch) | |
tree | 90cb9e81f32b80f7d47dd50b95f0025ff0cff3e3 /host/lib/usrp/usrp2/clock_ctrl.hpp | |
parent | 1db016bc6503cdca76025f131773e550bd895d48 (diff) | |
download | uhd-7aeb266783f3cda158762f8a8619fd512024acc4.tar.gz uhd-7aeb266783f3cda158762f8a8619fd512024acc4.tar.bz2 uhd-7aeb266783f3cda158762f8a8619fd512024acc4.zip |
added set clock rate, and get clock rates to dboard iface, usrp2 needs clock ctrl implementation...
Diffstat (limited to 'host/lib/usrp/usrp2/clock_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/clock_ctrl.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/clock_ctrl.hpp b/host/lib/usrp/usrp2/clock_ctrl.hpp index 0ad8d9532..70a104a81 100644 --- a/host/lib/usrp/usrp2/clock_ctrl.hpp +++ b/host/lib/usrp/usrp2/clock_ctrl.hpp @@ -21,6 +21,7 @@ #include "usrp2_iface.hpp" #include <boost/shared_ptr.hpp> #include <boost/utility.hpp> +#include <vector> class usrp2_clock_ctrl : boost::noncopyable{ public: @@ -46,12 +47,38 @@ public: virtual void enable_rx_dboard_clock(bool enb) = 0; /*! + * Set the clock rate on the rx dboard clock. + * \param rate the new clock rate + * \throw exception when rate invalid + */ + virtual void set_rate_rx_dboard_clock(double rate) = 0; + + /*! + * Get a list of possible rx dboard clock rates. + * \return a list of clock rates in Hz + */ + virtual std::vector<double> get_rates_rx_dboard_clock(void) = 0; + + /*! * Enable/disable the tx dboard clock. * \param enb true to enable */ virtual void enable_tx_dboard_clock(bool enb) = 0; /*! + * Set the clock rate on the tx dboard clock. + * \param rate the new clock rate + * \throw exception when rate invalid + */ + virtual void set_rate_tx_dboard_clock(double rate) = 0; + + /*! + * Get a list of possible tx dboard clock rates. + * \return a list of clock rates in Hz + */ + virtual std::vector<double> get_rates_tx_dboard_clock(void) = 0; + + /*! * Enable/disable external reference. * \param enb true to enable */ |