summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-09-29 17:43:26 -0700
committerJosh Blum <josh@joshknows.com>2010-09-29 17:43:26 -0700
commit83596f1feb73a15a1ef8741c1c520e8cae46c2a6 (patch)
tree350d32498f4e78b720f4629d47a2e7dd5e353bc4 /host/include
parentb8e62bb9bf86d4804defe738b2a7140cd9417a6f (diff)
downloaduhd-83596f1feb73a15a1ef8741c1c520e8cae46c2a6.tar.gz
uhd-83596f1feb73a15a1ef8741c1c520e8cae46c2a6.tar.bz2
uhd-83596f1feb73a15a1ef8741c1c520e8cae46c2a6.zip
usrp: added get codec rate to dboard iface
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/dboard_iface.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp
index c7db244f2..c430ecd3f 100644
--- a/host/include/uhd/usrp/dboard_iface.hpp
+++ b/host/include/uhd/usrp/dboard_iface.hpp
@@ -242,6 +242,15 @@ public:
* \param enb true for enabled
*/
virtual void set_clock_enabled(unit_t unit, bool enb) = 0;
+
+ /*!
+ * Get the rate of the codec.
+ * For rx, this is the rate the ADC feeds the DSP.
+ * For tx, this is the rate the DSP feeds the DAC.
+ * \param unit which unit rx or tx
+ * \return the codec rate in Hz
+ */
+ virtual double get_codec_rate(unit_t unit) = 0;
};
}} //namespace