diff options
author | Josh Morman <mormjb@gmail.com> | 2020-06-02 09:37:58 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-11-16 13:10:53 -0500 |
commit | e5144a18d9f5280f62db4dd3c2426860b92b2631 (patch) | |
tree | ce74d38bdfbd2c2ed5a106c2cac7914bc98660a7 /gr-digital/grc | |
parent | f1d64ccf38f669420387c1cc8787513538e40947 (diff) |
digital: add constellation_encoder block
Diffstat (limited to 'gr-digital/grc')
-rw-r--r-- | gr-digital/grc/digital.tree.yml | 1 | ||||
-rw-r--r-- | gr-digital/grc/digital_constellation_encoder_bc.block.yml | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gr-digital/grc/digital.tree.yml b/gr-digital/grc/digital.tree.yml index b29659d2a1..c58a41f3e3 100644 --- a/gr-digital/grc/digital.tree.yml +++ b/gr-digital/grc/digital.tree.yml @@ -55,6 +55,7 @@ - digital_binary_slicer_fb - digital_chunks_to_symbols_xx - digital_constellation_decoder_cb + - digital_constellation_encoder_bc - digital_constellation_receiver_cb - digital_constellation_soft_decoder_cf - digital_diff_decoder_bb diff --git a/gr-digital/grc/digital_constellation_encoder_bc.block.yml b/gr-digital/grc/digital_constellation_encoder_bc.block.yml new file mode 100644 index 0000000000..b00b91eb97 --- /dev/null +++ b/gr-digital/grc/digital_constellation_encoder_bc.block.yml @@ -0,0 +1,28 @@ +id: digital_constellation_encoder_bc +label: Constellation Encoder +flags: [ python, cpp ] + +parameters: +- id: constellation + label: Constellation Object + dtype: raw + +outputs: +- domain: stream + dtype: complex + +inputs: +- domain: stream + dtype: byte + +templates: + imports: from gnuradio import digital + make: digital.constellation_encoder_bc(${constellation}) + +cpp_templates: + includes: ['#include <gnuradio/digital/constellation_encoder_bc.h>'] + declarations: 'digital::constellation_encoder_bc::sptr ${id};' + make: 'this->${id} = digital::constellation_encoder_bc::make(${constellation});' + link: ['gnuradio-digital'] + +file_format: 1 |