diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-05-21 17:08:07 -0700 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-07-15 10:12:33 -0700 |
commit | 7e1b567d538011df383c62239ca52fe6887d54d9 (patch) | |
tree | d6d672e4e0d42901b92163ae0a08acafa5d518f8 /host/lib/usrp | |
parent | cd755b0a51bb136ce4f17a83157c4d8fe5ffa972 (diff) | |
download | uhd-7e1b567d538011df383c62239ca52fe6887d54d9.tar.gz uhd-7e1b567d538011df383c62239ca52fe6887d54d9.tar.bz2 uhd-7e1b567d538011df383c62239ca52fe6887d54d9.zip |
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.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/device3/device3_impl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<boost::mutex> 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(); + }); } } } |