From 7d69dcdcc318ccdf87038b732acbf2bf7c087b60 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 20 Aug 2019 10:00:47 -0700 Subject: 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 --- host/lib/rfnoc/siggen_block_ctrl_impl.cpp | 48 ------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 host/lib/rfnoc/siggen_block_ctrl_impl.cpp (limited to 'host/lib/rfnoc/siggen_block_ctrl_impl.cpp') 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 -#include -#include - -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"); -- cgit v1.2.3