diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-05-31 22:11:42 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:23 -0800 |
commit | faa4786e025e787c196eec99f213da0d51a1f87e (patch) | |
tree | 17e39f93b0251e6e87e25d37775f10e55c0119fe /host/lib/rfnoc/noc_block_base.cpp | |
parent | 0200aedf4497d5bc4ddf9f3a071ed5395e605f2d (diff) | |
download | uhd-faa4786e025e787c196eec99f213da0d51a1f87e.tar.gz uhd-faa4786e025e787c196eec99f213da0d51a1f87e.tar.bz2 uhd-faa4786e025e787c196eec99f213da0d51a1f87e.zip |
rfnoc: Add mb_controller API
The mb_controller is an interface to hardware-specific functions of the
motherboard. The API works in two ways:
- The user can request access to it, and thus interact directly with the
motherboard
- RFNoC blocks can request access to it, if they need to interact with
the motherboard themselves.
Diffstat (limited to 'host/lib/rfnoc/noc_block_base.cpp')
-rw-r--r-- | host/lib/rfnoc/noc_block_base.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/rfnoc/noc_block_base.cpp b/host/lib/rfnoc/noc_block_base.cpp index 2bbf52928..0b2d456b2 100644 --- a/host/lib/rfnoc/noc_block_base.cpp +++ b/host/lib/rfnoc/noc_block_base.cpp @@ -24,6 +24,7 @@ noc_block_base::noc_block_base(make_args_ptr make_args) , _num_input_ports(make_args->num_input_ports) , _num_output_ports(make_args->num_output_ports) , _clock_iface(make_args->clk_iface) + , _mb_controller(std::move(make_args->mb_control)) { // First, create one tick_rate property for every port _tick_rate_props.reserve(get_num_input_ports() + get_num_output_ports()); @@ -87,3 +88,8 @@ void noc_block_base::_set_tick_rate(const double tick_rate) _clock_iface->set_freq(tick_rate); _tick_rate = tick_rate; } + +std::shared_ptr<mb_controller> noc_block_base::get_mb_controller() +{ + return _mb_controller; +} |