diff options
author | Josh Blum <josh@joshknows.com> | 2010-09-30 14:51:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-09-30 14:51:41 -0700 |
commit | 2e7991fb7955fe94cdca82a094abf063c2466ee5 (patch) | |
tree | 802d9d7cad2877fb29307fc07d07b4c77f4e8c0c /host/lib/usrp/usrp2/dboard_iface.cpp | |
parent | 2c8a7c7debf19d92065661cc1d258f97bd38e224 (diff) | |
parent | 487ef9836a4dc5654654cd7c18686ad8033fff54 (diff) | |
download | uhd-2e7991fb7955fe94cdca82a094abf063c2466ee5.tar.gz uhd-2e7991fb7955fe94cdca82a094abf063c2466ee5.tar.bz2 uhd-2e7991fb7955fe94cdca82a094abf063c2466ee5.zip |
Merge branch 'tvrx_uhd'
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_iface.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/dboard_iface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/dboard_iface.cpp b/host/lib/usrp/usrp2/dboard_iface.cpp index f6d2b718a..fdfbf0d17 100644 --- a/host/lib/usrp/usrp2/dboard_iface.cpp +++ b/host/lib/usrp/usrp2/dboard_iface.cpp @@ -61,6 +61,7 @@ public: double get_clock_rate(unit_t); std::vector<double> get_clock_rates(unit_t); void set_clock_enabled(unit_t, bool); + double get_codec_rate(unit_t); void write_spi( unit_t unit, @@ -158,6 +159,9 @@ void usrp2_dboard_iface::set_clock_enabled(unit_t unit, bool enb){ } } +double usrp2_dboard_iface::get_codec_rate(unit_t){ + return _clock_ctrl->get_master_clock_rate(); +} /*********************************************************************** * GPIO **********************************************************************/ |