summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e100
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-16 10:43:48 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:13 -0700
commitae9e89d76b2eb86a29995f04aaab1aa59ee93f04 (patch)
tree29b37a85c2779c9d3abca81028396f5e4cbdcebc /host/lib/usrp/e100
parentfe204a322ecbba4dd8b195987667651f0a1b7c80 (diff)
downloaduhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.tar.gz
uhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.tar.bz2
uhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.zip
usrp: added get_tx/rx_rates
Diffstat (limited to 'host/lib/usrp/e100')
-rw-r--r--host/lib/usrp/e100/e100_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/e100/e100_impl.cpp b/host/lib/usrp/e100/e100_impl.cpp
index deb52b2d7..6cb404000 100644
--- a/host/lib/usrp/e100/e100_impl.cpp
+++ b/host/lib/usrp/e100/e100_impl.cpp
@@ -270,6 +270,8 @@ e100_impl::e100_impl(const uhd::device_addr_t &device_addr){
_tree->access<double>(mb_path / "tick_rate")
.subscribe(boost::bind(&rx_dsp_core_200::set_tick_rate, _rx_dsps[dspno], _1));
fs_path rx_dsp_path = mb_path / str(boost::format("rx_dsps/%u") % dspno);
+ _tree->create<meta_range_t>(rx_dsp_path / "rate/range")
+ .publish(boost::bind(&rx_dsp_core_200::get_host_rates, _rx_dsps[dspno]));
_tree->create<double>(rx_dsp_path / "rate/value")
.set(1e6) //some default
.coerce(boost::bind(&rx_dsp_core_200::set_host_rate, _rx_dsps[dspno], _1))
@@ -291,6 +293,8 @@ e100_impl::e100_impl(const uhd::device_addr_t &device_addr){
_tx_dsp->set_link_rate(E100_TX_LINK_RATE_BPS);
_tree->access<double>(mb_path / "tick_rate")
.subscribe(boost::bind(&tx_dsp_core_200::set_tick_rate, _tx_dsp, _1));
+ _tree->create<meta_range_t>(mb_path / "tx_dsps/0/rate/range")
+ .publish(boost::bind(&tx_dsp_core_200::get_host_rates, _tx_dsp));
_tree->create<double>(mb_path / "tx_dsps/0/rate/value")
.set(1e6) //some default
.coerce(boost::bind(&tx_dsp_core_200::set_host_rate, _tx_dsp, _1))