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})
    callbacks:
    - set_constellation(${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::gnuradio-digital']
    callbacks:
    - set_constellation(constellation)

file_format: 1
