aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/wb_iface_adapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/wb_iface_adapter.cpp')
-rw-r--r--host/lib/rfnoc/wb_iface_adapter.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/host/lib/rfnoc/wb_iface_adapter.cpp b/host/lib/rfnoc/wb_iface_adapter.cpp
index 64b41d6d2..d035ce881 100644
--- a/host/lib/rfnoc/wb_iface_adapter.cpp
+++ b/host/lib/rfnoc/wb_iface_adapter.cpp
@@ -5,20 +5,19 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#include <uhdlib/rfnoc/wb_iface_adapter.hpp>
#include <uhd/rfnoc/constants.hpp>
+#include <uhdlib/rfnoc/wb_iface_adapter.hpp>
using namespace uhd::rfnoc;
-wb_iface_adapter::wb_iface_adapter(
- ctrl_iface::sptr iface,
- const gettickrate_type & gettickrate_functor_,
- const settime_type & settime_functor_,
- const gettime_type & gettime_functor_
-) : _iface(iface)
- , gettickrate_functor(gettickrate_functor_)
- , settime_functor(settime_functor_)
- , gettime_functor(gettime_functor_)
+wb_iface_adapter::wb_iface_adapter(ctrl_iface::sptr iface,
+ const gettickrate_type& gettickrate_functor_,
+ const settime_type& settime_functor_,
+ const gettime_type& gettime_functor_)
+ : _iface(iface)
+ , gettickrate_functor(gettickrate_functor_)
+ , settime_functor(settime_functor_)
+ , gettime_functor(gettime_functor_)
{
// nop
}
@@ -32,9 +31,8 @@ void wb_iface_adapter::poke32(const wb_addr_type addr, const uint32_t data)
uint32_t wb_iface_adapter::peek32(const wb_addr_type addr)
{
const uint64_t reg_value = peek64(addr);
- return ((addr/4) & 0x1) ?
- uint32_t(reg_value >> 32) :
- uint32_t(reg_value & 0xffffffff);
+ return ((addr / 4) & 0x1) ? uint32_t(reg_value >> 32)
+ : uint32_t(reg_value & 0xffffffff);
}
uint64_t wb_iface_adapter::peek64(const wb_addr_type addr)
@@ -44,4 +42,3 @@ uint64_t wb_iface_adapter::peek64(const wb_addr_type addr)
_iface->send_cmd_pkt(SR_READBACK_ADDR, addr / 8, false, timestamp);
return _iface->send_cmd_pkt(SR_READBACK, SR_READBACK_REG_USER, true, timestamp);
}
-