aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/wb_iface_adapter.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-08-20 10:00:47 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:16:25 -0800
commit7d69dcdcc318ccdf87038b732acbf2bf7c087b60 (patch)
tree8179f2f4a14be591d7c856f77f13687b45f9a454 /host/lib/rfnoc/wb_iface_adapter.cpp
parent1ac6e6f56100a7e8186481ab0715937759f52737 (diff)
downloaduhd-7d69dcdcc318ccdf87038b732acbf2bf7c087b60.tar.gz
uhd-7d69dcdcc318ccdf87038b732acbf2bf7c087b60.tar.bz2
uhd-7d69dcdcc318ccdf87038b732acbf2bf7c087b60.zip
Remove proto-RFNoC files
This commit removes all files and parts of files that are used by proto-RFNoC only. uhd: Fix include CMakeLists.txt, add missing files
Diffstat (limited to 'host/lib/rfnoc/wb_iface_adapter.cpp')
-rw-r--r--host/lib/rfnoc/wb_iface_adapter.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/host/lib/rfnoc/wb_iface_adapter.cpp b/host/lib/rfnoc/wb_iface_adapter.cpp
deleted file mode 100644
index d035ce881..000000000
--- a/host/lib/rfnoc/wb_iface_adapter.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// Copyright 2016 Ettus Research LLC
-// Copyright 2018 Ettus Research, a National Instruments Company
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-//
-
-#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_)
-{
- // nop
-}
-
-void wb_iface_adapter::poke32(const wb_addr_type addr, const uint32_t data)
-{
- const uint64_t timestamp = gettime_functor().to_ticks(gettickrate_functor());
- _iface->send_cmd_pkt(addr / 4, data, false, timestamp);
-}
-
-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);
-}
-
-uint64_t wb_iface_adapter::peek64(const wb_addr_type addr)
-{
- const uint64_t timestamp = gettime_functor().to_ticks(gettickrate_functor());
- // TODO: Figure out if we should have a timestamp here
- _iface->send_cmd_pkt(SR_READBACK_ADDR, addr / 8, false, timestamp);
- return _iface->send_cmd_pkt(SR_READBACK, SR_READBACK_REG_USER, true, timestamp);
-}