From 7aeb266783f3cda158762f8a8619fd512024acc4 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 11 Jun 2010 19:08:58 -0700 Subject: added set clock rate, and get clock rates to dboard iface, usrp2 needs clock ctrl implementation... --- host/lib/usrp/usrp2/clock_ctrl.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'host/lib/usrp/usrp2/clock_ctrl.hpp') 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 #include +#include class usrp2_clock_ctrl : boost::noncopyable{ public: @@ -45,12 +46,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 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 get_rates_tx_dboard_clock(void) = 0; + /*! * Enable/disable external reference. * \param enb true to enable -- cgit v1.2.3