aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/dsp_impl.cpp
diff options
context:
space:
mode:
authorThomas Tsou <ttsou@vt.edu>2010-08-23 15:13:44 -0700
committerThomas Tsou <ttsou@vt.edu>2010-08-23 15:18:01 -0700
commit4021779856d6b971fa8add5f617528158bf727a2 (patch)
treea766090f228a3b795af4297d4b5b01237e6d3ee1 /host/lib/usrp/usrp1/dsp_impl.cpp
parentf65bdc31e4432d09d52b7f45d5bfbd1f945a1a6f (diff)
downloaduhd-4021779856d6b971fa8add5f617528158bf727a2.tar.gz
uhd-4021779856d6b971fa8add5f617528158bf727a2.tar.bz2
uhd-4021779856d6b971fa8add5f617528158bf727a2.zip
usrp1: Refactor I/O implementation
Diffstat (limited to 'host/lib/usrp/usrp1/dsp_impl.cpp')
-rw-r--r--host/lib/usrp/usrp1/dsp_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/dsp_impl.cpp b/host/lib/usrp/usrp1/dsp_impl.cpp
index ce0c12e4b..ddd1e811b 100644
--- a/host/lib/usrp/usrp1/dsp_impl.cpp
+++ b/host/lib/usrp/usrp1/dsp_impl.cpp
@@ -95,6 +95,8 @@ void usrp1_impl::rx_dsp_set(const wax::obj &key, const wax::obj &val)
}
_rx_dsp_decim = rate;
+ _rx_samps_per_poll_interval = 0.1 * _clock_ctrl->get_master_clock_freq() / rate;
+
_iface->poke32(FR_DECIM_RATE, _rx_dsp_decim/2 - 1);
}
return;
@@ -175,6 +177,8 @@ void usrp1_impl::tx_dsp_set(const wax::obj &key, const wax::obj &val)
}
_tx_dsp_interp = rate;
+ _tx_samps_per_poll_interval = 0.1 * _clock_ctrl->get_master_clock_freq() * 2 / rate;
+
_iface->poke32(FR_INTERP_RATE, _tx_dsp_interp / 4 - 1);
return;
}