id: dtv_catv_trellis_enc_bb
label: Trellis Encoder
flags: [ python, cpp ]

parameters:
-   id: constellation
    label: Constellation
    dtype: enum
    options: [CATV_MOD_64QAM, CATV_MOD_256QAM]
    option_labels: [64QAM, 256QAM]
    option_attributes:
        val: [dtv.CATV_MOD_64QAM, dtv.CATV_MOD_256QAM]

inputs:
-   domain: stream
    dtype: byte

outputs:
-   domain: stream
    dtype: byte

templates:
    imports: from gnuradio import dtv
    make: dtv.catv_trellis_enc_bb(${constellation.val})

cpp_templates:
    includes: ['#include <gnuradio/dtv/catv_trellis_enc_bb.h>']
    declarations: 'dtv::catv_trellis_enc_bb::sptr ${id};'
    make: 'dtv::catv_trellis_enc_bb::make(${constellation.val});'
    link: ['gnuradio::gnuradio-dtv']
    translations:
        dtv\.: "dtv::"

file_format: 1
