aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/usrp1_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-06 18:41:59 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:11 -0700
commit4c4f0810ef06be18e989b6933ff236ff97c13dd0 (patch)
treece506b4f259d31d966b847dde9adddf07f09f753 /host/lib/usrp/usrp1/usrp1_impl.cpp
parentde17ef4614c3c14212f239e3c735bfde3f47a68f (diff)
downloaduhd-4c4f0810ef06be18e989b6933ff236ff97c13dd0.tar.gz
uhd-4c4f0810ef06be18e989b6933ff236ff97c13dd0.tar.bz2
uhd-4c4f0810ef06be18e989b6933ff236ff97c13dd0.zip
usrp1: type conversions and 8-bit work
Diffstat (limited to 'host/lib/usrp/usrp1/usrp1_impl.cpp')
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index d169c4823..93a301c02 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -282,7 +282,7 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){
fs_path rx_dsp_path = mb_path / str(boost::format("rx_dsps/%u") % dspno);
_tree->create<double>(rx_dsp_path / "rate/value")
.set(1e6)
- .coerce(boost::bind(&usrp1_impl::update_rx_samp_rate, this, _1));
+ .coerce(boost::bind(&usrp1_impl::update_rx_samp_rate, this, dspno, _1));
_tree->create<double>(rx_dsp_path / "freq/value")
.coerce(boost::bind(&usrp1_impl::update_rx_dsp_freq, this, dspno, _1));
_tree->create<meta_range_t>(rx_dsp_path / "freq/range")
@@ -303,7 +303,7 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){
fs_path tx_dsp_path = mb_path / str(boost::format("tx_dsps/%u") % dspno);
_tree->create<double>(tx_dsp_path / "rate/value")
.set(1e6)
- .coerce(boost::bind(&usrp1_impl::update_tx_samp_rate, this, _1));
+ .coerce(boost::bind(&usrp1_impl::update_tx_samp_rate, this, dspno, _1));
_tree->create<double>(tx_dsp_path / "freq/value")
.coerce(boost::bind(&usrp1_impl::update_tx_dsp_freq, this, dspno, _1));
_tree->create<meta_range_t>(tx_dsp_path / "freq/range") //magic scalar comes from codec control: