id: dtv_catv_frame_sync_enc_bb
label: Frame Sync 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]
-   id: ctrlword
    label: Control Word
    dtype: int
    default: '6'

inputs:
-   domain: stream
    dtype: byte

outputs:
-   domain: stream
    dtype: byte

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

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

file_format: 1
