summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-11 19:08:58 -0700
committerJosh Blum <josh@joshknows.com>2010-06-17 11:36:14 -0700
commit7aeb266783f3cda158762f8a8619fd512024acc4 (patch)
tree90cb9e81f32b80f7d47dd50b95f0025ff0cff3e3 /host/include
parent1db016bc6503cdca76025f131773e550bd895d48 (diff)
downloaduhd-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/include')
-rw-r--r--host/include/uhd/usrp/dboard_iface.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp
index 7ecfcd3c0..edbd6c967 100644
--- a/host/include/uhd/usrp/dboard_iface.hpp
+++ b/host/include/uhd/usrp/dboard_iface.hpp
@@ -22,6 +22,7 @@
#include <uhd/types/serial.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cstdint.hpp>
+#include <vector>
namespace uhd{ namespace usrp{
@@ -159,6 +160,14 @@ public:
) = 0;
/*!
+ * Set the rate of a dboard clock.
+ *
+ * \param unit which unit rx or tx
+ * \param rate the clock rate in Hz
+ */
+ virtual void set_clock_rate(unit_t unit, double rate) = 0;
+
+ /*!
* Get the rate of a dboard clock.
*
* \param unit which unit rx or tx
@@ -167,6 +176,14 @@ public:
virtual double get_clock_rate(unit_t unit) = 0;
/*!
+ * Get a list of possible rates for the dboard clock.
+ *
+ * \param unit which unit rx or tx
+ * \return a list of clock rates in Hz
+ */
+ virtual std::vector<double> get_clock_rates(unit_t unit) = 0;
+
+ /*!
* Enable or disable a dboard clock.
*
* \param unit which unit rx or tx