From b216f715bc69a624e985021655ee1922b04adb3d Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 31 May 2012 11:57:53 -0700 Subject: usrp: clear rx dsp on deconstruction --- host/lib/usrp/cores/rx_dsp_core_200.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'host/lib') diff --git a/host/lib/usrp/cores/rx_dsp_core_200.cpp b/host/lib/usrp/cores/rx_dsp_core_200.cpp index d0afda769..a89405039 100644 --- a/host/lib/usrp/cores/rx_dsp_core_200.cpp +++ b/host/lib/usrp/cores/rx_dsp_core_200.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include //thread sleep @@ -76,6 +77,15 @@ public: this->clear(); } + ~rx_dsp_core_200_impl(void) + { + UHD_SAFE_CALL + ( + //shutdown any possible streaming + this->clear(); + ) + } + void clear(void){ _iface->poke32(REG_RX_CTRL_NCHANNELS, 0); //also reset _iface->poke32(REG_RX_CTRL_VRT_HDR, 0 -- cgit v1.2.3