summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/rfnoc_block_generic_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/rfnoc_block_generic_impl.cc')
-rw-r--r--gr-uhd/lib/rfnoc_block_generic_impl.cc43
1 files changed, 43 insertions, 0 deletions
diff --git a/gr-uhd/lib/rfnoc_block_generic_impl.cc b/gr-uhd/lib/rfnoc_block_generic_impl.cc
new file mode 100644
index 0000000000..90bdc35c55
--- /dev/null
+++ b/gr-uhd/lib/rfnoc_block_generic_impl.cc
@@ -0,0 +1,43 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2019 Ettus Research, a National Instruments Brand.
+ * Copyright 2020 Free Software Foundation, Inc.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "rfnoc_block_generic_impl.h"
+#include <gnuradio/uhd/rfnoc_graph.h>
+
+namespace gr {
+namespace uhd {
+
+/******************************************************************************
+ * Factory and Structors
+ *****************************************************************************/
+rfnoc_block_generic::sptr
+rfnoc_block_generic::make(rfnoc_graph::sptr graph,
+ const ::uhd::device_addr_t& block_args,
+ const std::string& block_name,
+ const int device_select,
+ const int block_select)
+{
+ return gnuradio::get_initial_sptr(
+ new rfnoc_block_generic_impl(rfnoc_block::make_block_ref(
+ graph, block_args, block_name, device_select, block_select)));
+}
+
+rfnoc_block_generic_impl::rfnoc_block_generic_impl(
+ ::uhd::rfnoc::noc_block_base::sptr block_ref)
+ : rfnoc_block(block_ref)
+{
+}
+
+rfnoc_block_generic_impl::~rfnoc_block_generic_impl() {}
+
+} /* namespace uhd */
+} /* namespace gr */