From 7e1b567d538011df383c62239ca52fe6887d54d9 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 21 May 2019 17:08:07 -0700 Subject: rfnoc: Add update_graph() API call Blocks that change scaling, tick rate, or sampling rate can now notify the graph to update streamers. Before, this was handled only by mult_usrp, and only for DDC and DUC blocks. --- host/lib/usrp/device3/device3_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/usrp/device3/device3_impl.cpp') diff --git a/host/lib/usrp/device3/device3_impl.cpp b/host/lib/usrp/device3/device3_impl.cpp index d636b3338..ba88ed2e8 100644 --- a/host/lib/usrp/device3/device3_impl.cpp +++ b/host/lib/usrp/device3/device3_impl.cpp @@ -165,6 +165,10 @@ void device3_impl::enumerate_rfnoc_blocks(size_t device_index, boost::lock_guard lock(_block_ctrl_mutex); _rfnoc_block_ctrl.push_back( uhd::rfnoc::block_ctrl_base::make(make_args, noc_id)); + _rfnoc_block_ctrl.back()->set_graph_update_cb([this]() { + update_rx_streamers(); + update_tx_streamers(); + }); } } } -- cgit v1.2.3