aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/device3.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/device3.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/device3.cpp')
-rw-r--r--host/lib/device3.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/host/lib/device3.cpp b/host/lib/device3.cpp
deleted file mode 100644
index 90fb1c7fe..000000000
--- a/host/lib/device3.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-//
-// Copyright 2014 Ettus Research LLC
-// Copyright 2018 Ettus Research, a National Instruments Company
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-//
-
-#include <uhd/device3.hpp>
-#include <uhd/utils/log.hpp>
-#include <boost/format.hpp>
-#include <boost/thread/lock_guard.hpp>
-
-using namespace uhd;
-using namespace uhd::rfnoc;
-
-device3::sptr device3::make(const device_addr_t &hint, const size_t which)
-{
- device3::sptr device3_sptr =
- boost::dynamic_pointer_cast< device3 >(device::make(hint, device::USRP, which));
- if (not device3_sptr) {
- throw uhd::key_error(str(
- boost::format("No gen-3 devices found for ----->\n%s") % hint.to_pp_string()
- ));
- }
-
- return device3_sptr;
-}
-
-bool device3::has_block(const rfnoc::block_id_t &block_id) const
-{
- for (size_t i = 0; i < _rfnoc_block_ctrl.size(); i++) {
- if (_rfnoc_block_ctrl[i]->get_block_id() == block_id) {
- return true;
- }
- }
- return false;
-}
-
-block_ctrl_base::sptr device3::get_block_ctrl(const block_id_t &block_id) const
-{
- for (size_t i = 0; i < _rfnoc_block_ctrl.size(); i++) {
- if (_rfnoc_block_ctrl[i]->get_block_id() == block_id) {
- return _rfnoc_block_ctrl[i];
- }
- }
- throw uhd::lookup_error(str(boost::format("This device does not have a block with ID: %s") % block_id.to_string()));
-}
-
-std::vector<rfnoc::block_id_t> device3::find_blocks(const std::string &block_id_hint) const
-{
- std::vector<rfnoc::block_id_t> block_ids;
- for (size_t i = 0; i < _rfnoc_block_ctrl.size(); i++) {
- if (_rfnoc_block_ctrl[i]->get_block_id().match(block_id_hint)) {
- block_ids.push_back(_rfnoc_block_ctrl[i]->get_block_id());
- }
- }
- return block_ids;
-}
-
-void device3::clear()
-{
- boost::lock_guard<boost::mutex> lock(_block_ctrl_mutex);
- for(const block_ctrl_base::sptr &block: _rfnoc_block_ctrl) {
- block->clear();
- }
-}
-// vim: sw=4 et: