aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/siggen_block_ctrl_impl.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/siggen_block_ctrl_impl.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/siggen_block_ctrl_impl.cpp')
-rw-r--r--host/lib/rfnoc/siggen_block_ctrl_impl.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/host/lib/rfnoc/siggen_block_ctrl_impl.cpp b/host/lib/rfnoc/siggen_block_ctrl_impl.cpp
deleted file mode 100644
index dc4035962..000000000
--- a/host/lib/rfnoc/siggen_block_ctrl_impl.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// Copyright 2016-2018 Ettus Research, a National Instruments Company
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-//
-
-#include <uhd/rfnoc/siggen_block_ctrl.hpp>
-#include <uhd/utils/log.hpp>
-#include <boost/format.hpp>
-
-using namespace uhd::rfnoc;
-
-class siggen_block_ctrl_impl : public siggen_block_ctrl
-{
-public:
- UHD_RFNOC_BLOCK_CONSTRUCTOR(siggen_block_ctrl)
- {
- // nop
- }
-
- void issue_stream_cmd(const uhd::stream_cmd_t& stream_cmd, const size_t)
- {
- UHD_LOGGER_TRACE(unique_id()) << "issue_stream_cmd()" << std::endl;
- if (not stream_cmd.stream_now) {
- throw uhd::not_implemented_error(
- "siggen_block does not support timed commands.");
- }
- switch (stream_cmd.stream_mode) {
- case uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS:
- sr_write("ENABLE", true);
- break;
-
- case uhd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS:
- sr_write("ENABLE", false);
- break;
-
- case uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE:
- case uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_MORE:
- throw uhd::not_implemented_error("siggen_block does not support "
- "streaming modes other than CONTINUOUS");
-
- default:
- UHD_THROW_INVALID_CODE_PATH();
- }
- }
-};
-
-UHD_RFNOC_BLOCK_REGISTER(siggen_block_ctrl, "SigGen");