diff options
author | Jacob Gilbert <jacob.gilbert@protonmail.com> | 2021-03-15 04:30:26 -0700 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-03-18 16:35:41 -0400 |
commit | 192c9b2f21191ca2f4bbc09220617333bbaa62c8 (patch) | |
tree | 71f62e35da68be27a3a75e0db6f8d01abb3026a0 /gnuradio-runtime/python | |
parent | 4be63acd5eff604fa58c8ca10f4bbd6b3cd19587 (diff) |
runtime: add int_t and short_t PDU types
These are not used yet but are valid PDUs and should be included here
so as not to imply PDUs can have only byte/float/complex type uvec's
Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
Diffstat (limited to 'gnuradio-runtime/python')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/pdu_python.cc index 98df9acd8c..29af603677 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(2b56328d8782d0a1816df04928cd83c5) */ +/* BINDTOOL_HEADER_FILE_HASH(d5f32198890a9b1099e6b7ed492650f9) */ /***********************************************************************************/ #include <pybind11/complex.h> @@ -34,8 +34,10 @@ void bind_pdu(py::module& m) py::enum_<::gr::types::vector_type>(m_types, "vector_type") .value("byte_t", ::gr::types::byte_t) // 0 - .value("float_t", ::gr::types::float_t) // 1 - .value("complex_t", ::gr::types::complex_t) // 2 + .value("short_t", ::gr::types::short_t) // 1 + .value("int_t", ::gr::types::int_t) // 2 + .value("float_t", ::gr::types::float_t) // 3 + .value("complex_t", ::gr::types::complex_t) // 4 .export_values(); py::implicitly_convertible<int, ::gr::types::vector_type>(); |