aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/clock_ctrl.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-21 19:39:15 +0000
committerJosh Blum <josh@joshknows.com>2010-06-21 19:39:15 +0000
commitdf6cc603fd5e9dc34665385ac84b94eadf074074 (patch)
tree1e7a5574c4dbff0424b629434312affde7408766 /host/lib/usrp/usrp_e/clock_ctrl.hpp
parenta9319441d688620e18d5621cc59b98769e670468 (diff)
downloaduhd-df6cc603fd5e9dc34665385ac84b94eadf074074.tar.gz
uhd-df6cc603fd5e9dc34665385ac84b94eadf074074.tar.bz2
uhd-df6cc603fd5e9dc34665385ac84b94eadf074074.zip
usrp-e: added clock rate control to dboard iface and clock control impl
Diffstat (limited to 'host/lib/usrp/usrp_e/clock_ctrl.hpp')
-rw-r--r--host/lib/usrp/usrp_e/clock_ctrl.hpp27
1 files changed, 21 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp_e/clock_ctrl.hpp b/host/lib/usrp/usrp_e/clock_ctrl.hpp
index 692b9eb0e..3b5103ed1 100644
--- a/host/lib/usrp/usrp_e/clock_ctrl.hpp
+++ b/host/lib/usrp/usrp_e/clock_ctrl.hpp
@@ -21,6 +21,7 @@
#include "usrp_e_iface.hpp"
#include <boost/shared_ptr.hpp>
#include <boost/utility.hpp>
+#include <vector>
/*!
* The usrp-e clock control:
@@ -45,16 +46,30 @@ public:
virtual double get_fpga_clock_rate(void) = 0;
/*!
- * Get the rate of the dboard clock clock line.
- * \return the dboard clock rate in Hz
+ * Get the possible rates of the rx dboard clock.
+ * \return a vector of clock rates in Hz
*/
- virtual double get_rx_dboard_clock_rate(void) = 0;
+ virtual std::vector<double> get_rx_dboard_clock_rates(void) = 0;
/*!
- * Get the rate of the dboard clock clock line.
- * \return the dboard clock rate in Hz
+ * Get the possible rates of the tx dboard clock.
+ * \return a vector of clock rates in Hz
*/
- virtual double get_tx_dboard_clock_rate(void) = 0;
+ virtual std::vector<double> get_tx_dboard_clock_rates(void) = 0;
+
+ /*!
+ * Set the rx dboard clock rate to a possible rate.
+ * \param rate the new clock rate in Hz
+ * \throw exception when rate cannot be achieved
+ */
+ virtual void set_rx_dboard_clock_rate(double rate) = 0;
+
+ /*!
+ * Set the tx dboard clock rate to a possible rate.
+ * \param rate the new clock rate in Hz
+ * \throw exception when rate cannot be achieved
+ */
+ virtual void set_tx_dboard_clock_rate(double rate) = 0;
/*!
* Enable/disable the rx dboard clock.