aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/legacy_compat.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-15 12:13:43 -0800
committerMartin Braun <martin.braun@ettus.com>2016-11-29 08:48:51 -0800
commit0d42e860985ce1744d4c3fa41a1c123575eaa2f8 (patch)
treece9be20eb866e3b627528916dbf54adde4dae5a0 /host/lib/rfnoc/legacy_compat.hpp
parent1b82c24861e2ecdd9666b0b3c664b43c5978b7c9 (diff)
downloaduhd-0d42e860985ce1744d4c3fa41a1c123575eaa2f8.tar.gz
uhd-0d42e860985ce1744d4c3fa41a1c123575eaa2f8.tar.bz2
uhd-0d42e860985ce1744d4c3fa41a1c123575eaa2f8.zip
rfnoc: legacy_compat gets its own set_{rx,tx}_rate() calls
This avoids double-calling subscribers, and will fix the case where a rate change in a multi-channel scenario will break because the graph resolution is done before all rates are set.
Diffstat (limited to 'host/lib/rfnoc/legacy_compat.hpp')
-rw-r--r--host/lib/rfnoc/legacy_compat.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/legacy_compat.hpp b/host/lib/rfnoc/legacy_compat.hpp
index 29be1bdc2..1ba3a81b9 100644
--- a/host/lib/rfnoc/legacy_compat.hpp
+++ b/host/lib/rfnoc/legacy_compat.hpp
@@ -44,6 +44,10 @@ namespace uhd { namespace rfnoc {
virtual uhd::tx_streamer::sptr get_tx_stream(const uhd::stream_args_t &args) = 0;
+ virtual void set_rx_rate(const double rate, const size_t chan) = 0;
+
+ virtual void set_tx_rate(const double rate, const size_t chan) = 0;
+
static sptr make(
uhd::device3::sptr device,
const uhd::device_addr_t &args