summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1
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/lib/usrp/usrp1
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/lib/usrp/usrp1')
-rw-r--r--host/lib/usrp/usrp1/dboard_iface.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/dboard_iface.cpp b/host/lib/usrp/usrp1/dboard_iface.cpp
index 4791b55ce..4f0549a37 100644
--- a/host/lib/usrp/usrp1/dboard_iface.cpp
+++ b/host/lib/usrp/usrp1/dboard_iface.cpp
@@ -93,6 +93,7 @@ public:
std::vector<double> get_clock_rates(unit_t);
double get_clock_rate(unit_t);
void set_clock_enabled(unit_t, bool);
+ double get_codec_rate(unit_t);
private:
usrp1_iface::sptr _iface;
@@ -170,6 +171,10 @@ void usrp1_dboard_iface::set_clock_enabled(unit_t, bool)
//TODO we can only enable for special case anyway...
}
+double usrp1_dboard_iface::get_codec_rate(unit_t){
+ return _clock->get_master_clock_freq();
+}
+
/***********************************************************************
* GPIO
**********************************************************************/