aboutsummaryrefslogtreecommitdiffstats
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorJacob Gilbert <jacob.gilbert@protonmail.com>2021-07-06 05:34:06 -0600
committermormj <34754695+mormj@users.noreply.github.com>2021-07-19 06:44:24 -0400
commit4d3eab2a40379cd6073eaccee86ac10b442382eb (patch)
treef90ca5995c49ac6300e1f67fd69a7f407ad8b178 /gnuradio-runtime
parentpdu: adding examples (diff)
downloadgnuradio-4d3eab2a40379cd6073eaccee86ac10b442382eb.tar.xz
gnuradio-4d3eab2a40379cd6073eaccee86ac10b442382eb.zip
pdu: adding pdu_to_stream block
Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/include/gnuradio/pdu.h3
-rw-r--r--gnuradio-runtime/lib/pdu.cc16
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/pdu_pydoc_template.h9
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc9
4 files changed, 36 insertions, 1 deletions
diff --git a/gnuradio-runtime/include/gnuradio/pdu.h b/gnuradio-runtime/include/gnuradio/pdu.h
index d7dc0a255..b930f3d0d 100644
--- a/gnuradio-runtime/include/gnuradio/pdu.h
+++ b/gnuradio-runtime/include/gnuradio/pdu.h
@@ -18,6 +18,9 @@
namespace gr {
namespace metadata_keys {
GR_RUNTIME_API const pmt::pmt_t pdu_num();
+GR_RUNTIME_API const pmt::pmt_t tx_eob();
+GR_RUNTIME_API const pmt::pmt_t tx_time();
+GR_RUNTIME_API const pmt::pmt_t tx_sob();
} /* namespace metadata_keys */
namespace msgport_names {
diff --git a/gnuradio-runtime/lib/pdu.cc b/gnuradio-runtime/lib/pdu.cc
index f860bf395..7b75fbac1 100644
--- a/gnuradio-runtime/lib/pdu.cc
+++ b/gnuradio-runtime/lib/pdu.cc
@@ -22,8 +22,24 @@ const pmt::pmt_t pdu_num()
static const pmt::pmt_t val = pmt::mp("pdu_num");
return val;
}
+const pmt::pmt_t tx_eob()
+{
+ static const pmt::pmt_t val = pmt::mp("tx_eob");
+ return val;
+}
+const pmt::pmt_t tx_time()
+{
+ static const pmt::pmt_t val = pmt::mp("tx_time");
+ return val;
+}
+const pmt::pmt_t tx_sob()
+{
+ static const pmt::pmt_t val = pmt::mp("tx_sob");
+ return val;
+}
} /* namespace metadata_keys */
+
namespace msgport_names {
const pmt::pmt_t bpdu()
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/pdu_pydoc_template.h b/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/pdu_pydoc_template.h
index 95180a030..ebc11a835 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/pdu_pydoc_template.h
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/pdu_pydoc_template.h
@@ -18,6 +18,15 @@
static const char* __doc_gr_metadata_keys_pdu_num = R"doc()doc";
+static const char* __doc_gr_metadata_keys_tx_eob = R"doc()doc";
+
+
+static const char* __doc_gr_metadata_keys_tx_time = R"doc()doc";
+
+
+static const char* __doc_gr_metadata_keys_tx_sob = R"doc()doc";
+
+
static const char* __doc_gr_msgport_names_bpdu = R"doc()doc";
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc
index e6dec295e..407a72a82 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc
@@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(pdu.h) */
-/* BINDTOOL_HEADER_FILE_HASH(e6887fee8ea637d80f0ed7b6f2ffc552) */
+/* BINDTOOL_HEADER_FILE_HASH(562b6c641c014996cd7a94b2252030d1) */
/***********************************************************************************/
#include <pybind11/complex.h>
@@ -48,6 +48,13 @@ void bind_pdu(py::module& m)
m_metadata_keys.def(
"pdu_num", &::gr::metadata_keys::pdu_num, D(metadata_keys, pdu_num));
+ m_metadata_keys.def("tx_eob", &::gr::metadata_keys::tx_eob, D(metadata_keys, tx_eob));
+
+ m_metadata_keys.def(
+ "tx_time", &::gr::metadata_keys::tx_time, D(metadata_keys, tx_time));
+
+ m_metadata_keys.def("tx_sob", &::gr::metadata_keys::tx_sob, D(metadata_keys, tx_sob));
+
py::module m_msgport_names = m.def_submodule("msgport_names");