aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/radio_ctrl_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-01 16:45:29 -0700
committerMartin Braun <martin.braun@ettus.com>2018-03-16 10:48:46 -0700
commit49520bfecb5e13126224ee915208c2cd936f911c (patch)
tree8daa638d55ffe5294306a6fe8e2c8b6261d8a375 /host/lib/rfnoc/radio_ctrl_impl.cpp
parent60a911cd460ca1e29d838ee0039d67bf7c8fe7f3 (diff)
downloaduhd-49520bfecb5e13126224ee915208c2cd936f911c.tar.gz
uhd-49520bfecb5e13126224ee915208c2cd936f911c.tar.bz2
uhd-49520bfecb5e13126224ee915208c2cd936f911c.zip
rfnoc: ctrl_iface cleanup
- ctrl_iface is now longer a wb_iface. All it can do now is send command packets, and receive responses to those. - ctrl_iface does not store command time or tick rate - wb_iface_adapter is no longer a set of functors, but a wrapper around ctrl_iface. Command times are stored once, in the block. - DMA FIFO and radio block controllers have an easier time getting access to a timed_wb_iface
Diffstat (limited to 'host/lib/rfnoc/radio_ctrl_impl.cpp')
-rw-r--r--host/lib/rfnoc/radio_ctrl_impl.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp
index fe8d51468..a151b2690 100644
--- a/host/lib/rfnoc/radio_ctrl_impl.cpp
+++ b/host/lib/rfnoc/radio_ctrl_impl.cpp
@@ -45,29 +45,7 @@ radio_ctrl_impl::radio_ctrl_impl() :
/////////////////////////////////////////////////////////////////////////
for (size_t i = 0; i < _get_num_radios(); i++) {
_register_loopback_self_test(i);
- _perifs[i].ctrl = boost::make_shared<wb_iface_adapter>(
- // poke32 functor
- [this, i](const uint32_t addr, const uint32_t data){
- this->sr_write(addr, data, i);
- },
- // peek32 functor
- [this, i](const uint32_t addr){
- return this->user_reg_read32(addr, i);
- },
- // peek64 functor
- [this, i](const uint32_t addr){
- return this->user_reg_read64(addr, i);
- },
- // get_time functor
- [this, i](){
- return this->get_command_time(i);
- },
- // set_time functor
- [this, i](const time_spec_t& time_spec){
- this->set_command_time(time_spec, i);
- }
- );
-
+ _perifs[i].ctrl = this->get_ctrl_iface(i);
// FIXME there's currently no way to set the underflow policy
if (i == 0) {