From a1c8c617538c208151da245dc11b651a932c387d Mon Sep 17 00:00:00 2001 From: Vidush Date: Mon, 11 Jun 2018 12:11:38 -0700 Subject: *_dsp_core: Update frequency when updating rates Since the frequency shifter is set to a relative rate, it needs to be updated when changing the sampling rate. --- host/lib/include/uhdlib/usrp/cores/rx_dsp_core_3000.hpp | 2 ++ host/lib/include/uhdlib/usrp/cores/tx_dsp_core_3000.hpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'host/lib/include/uhdlib/usrp') diff --git a/host/lib/include/uhdlib/usrp/cores/rx_dsp_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/rx_dsp_core_3000.hpp index 8ea4531a1..e87fd4926 100644 --- a/host/lib/include/uhdlib/usrp/cores/rx_dsp_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/rx_dsp_core_3000.hpp @@ -51,6 +51,8 @@ public: virtual double set_freq(const double freq) = 0; + virtual double get_freq(void) = 0; + virtual void setup(const uhd::stream_args_t &stream_args) = 0; virtual void populate_subtree(uhd::property_tree::sptr subtree) = 0; diff --git a/host/lib/include/uhdlib/usrp/cores/tx_dsp_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/tx_dsp_core_3000.hpp index d63f6a609..2976d8b4a 100644 --- a/host/lib/include/uhdlib/usrp/cores/tx_dsp_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/tx_dsp_core_3000.hpp @@ -45,6 +45,8 @@ public: virtual double set_freq(const double freq) = 0; + virtual double get_freq(void) = 0; + virtual void setup(const uhd::stream_args_t &stream_args) = 0; virtual void populate_subtree(uhd::property_tree::sptr subtree) = 0; -- cgit v1.2.3