diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-21 15:32:20 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-21 15:32:20 -0700 |
commit | 2628d78e0d0348001cb8428c8064cd1e3179afc8 (patch) | |
tree | fa2064b84926751c9e4f4532e07f76a76340e751 /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | 1e57eec9999e1a9d0a735c04173c78164ce8afcd (diff) | |
parent | bd59192bd4eceaf86b60d91651e6b0bf11c2274e (diff) | |
download | uhd-2628d78e0d0348001cb8428c8064cd1e3179afc8.tar.gz uhd-2628d78e0d0348001cb8428c8064cd1e3179afc8.tar.bz2 uhd-2628d78e0d0348001cb8428c8064cd1e3179afc8.zip |
Merge branch 'usrp2_overflow' into flow_ctrl
Conflicts:
host/lib/usrp/usrp2/usrp2_impl.hpp
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 8f3ae5c1b..44f7c1130 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -196,7 +196,15 @@ void usrp2_mboard_impl::set_time_spec(const time_spec_t &time_spec, bool now){ _iface->poke32(U2_REG_TIME64_SECS, boost::uint32_t(time_spec.get_full_secs())); } +void usrp2_mboard_impl::handle_overflow(void){ + _iface->poke32(U2_REG_RX_CTRL_CLEAR_OVERRUN, 1); + if (_continuous_streaming){ //re-issue the stream command if already continuous + this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_START_CONTINUOUS); + } +} + void usrp2_mboard_impl::issue_ddc_stream_cmd(const stream_cmd_t &stream_cmd){ + _continuous_streaming = stream_cmd.stream_mode == stream_cmd_t::STREAM_MODE_START_CONTINUOUS; _iface->poke32(U2_REG_RX_CTRL_STREAM_CMD, dsp_type1::calc_stream_cmd_word( stream_cmd, _recv_samps_per_packet )); |