aboutsummaryrefslogtreecommitdiffstats
path: root/gr-dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-01-29 15:18:40 +0000
committerandreas128 <Andreas>2017-01-29 15:18:40 +0000
commit6e0b2512e45b7a6ca03187814742cb0fe08964cb (patch)
tree763a30041c7bb539a45a3af6df17465ea6a13c7a /gr-dpd
parenta88e67cb485d6b4b7bc21aa3c9dedbab37190cb9 (diff)
downloadODR-StaticPrecorrection-6e0b2512e45b7a6ca03187814742cb0fe08964cb.tar.gz
ODR-StaticPrecorrection-6e0b2512e45b7a6ca03187814742cb0fe08964cb.tar.bz2
ODR-StaticPrecorrection-6e0b2512e45b7a6ca03187814742cb0fe08964cb.zip
Add Amp characterization in sync-measurement.ipynb
Diffstat (limited to 'gr-dpd')
-rw-r--r--gr-dpd/grc/dpd_clut.xml18
-rw-r--r--gr-dpd/include/dpd/clut.h56
-rwxr-xr-xgr-dpd/python/qa_clut.py42
3 files changed, 116 insertions, 0 deletions
diff --git a/gr-dpd/grc/dpd_clut.xml b/gr-dpd/grc/dpd_clut.xml
new file mode 100644
index 0000000..21a37a6
--- /dev/null
+++ b/gr-dpd/grc/dpd_clut.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<block>
+ <name>clut</name>
+ <key>dpd_clut</key>
+ <category>dpd</category>
+ <import>import dpd</import>
+ <make>dpd.clut()</make>
+
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>complex</type>
+ </source>
+
+</block>
diff --git a/gr-dpd/include/dpd/clut.h b/gr-dpd/include/dpd/clut.h
new file mode 100644
index 0000000..f77c100
--- /dev/null
+++ b/gr-dpd/include/dpd/clut.h
@@ -0,0 +1,56 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2017 <+YOU OR YOUR COMPANY+>.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+
+#ifndef INCLUDED_DPD_CLUT_H
+#define INCLUDED_DPD_CLUT_H
+
+#include <dpd/api.h>
+#include <gnuradio/block.h>
+
+namespace gr {
+ namespace dpd {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup dpd
+ *
+ */
+ class DPD_API clut : virtual public gr::block
+ {
+ public:
+ typedef boost::shared_ptr<clut> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of dpd::clut.
+ *
+ * To avoid accidental use of raw pointers, dpd::clut's
+ * constructor is in a private implementation
+ * class. dpd::clut::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make();
+ };
+
+ } // namespace dpd
+} // namespace gr
+
+#endif /* INCLUDED_DPD_CLUT_H */
+
diff --git a/gr-dpd/python/qa_clut.py b/gr-dpd/python/qa_clut.py
new file mode 100755
index 0000000..e1d63f6
--- /dev/null
+++ b/gr-dpd/python/qa_clut.py
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright 2017 <+YOU OR YOUR COMPANY+>.
+#
+# This is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this software; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+#
+
+from gnuradio import gr, gr_unittest
+from gnuradio import blocks
+import dpd_swig as dpd
+
+import matplotlib.pyplot as plt
+
+class qa_clut (gr_unittest.TestCase):
+
+ def setUp (self):
+ self.tb = gr.top_block ()
+
+ def tearDown (self):
+ self.tb = None
+
+ def test_001_t (self):
+ # set up fg
+ self.tb.run ()
+ # check data
+
+if __name__ == '__main__':
+ gr_unittest.run(qa_clut, "qa_clut.xml")