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/include/uhd/usrp/dboard_iface.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'host/include') 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 #include #include +#include namespace uhd{ namespace usrp{ @@ -158,6 +159,14 @@ public: size_t num_bits ) = 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. * @@ -166,6 +175,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 get_clock_rates(unit_t unit) = 0; + /*! * Enable or disable a dboard clock. * -- cgit v1.2.3