summaryrefslogtreecommitdiff
path: root/gr-dtv/grc/dtv_catv_frame_sync_enc_bb.block.yml
blob: 728e8a6cf10ea2e458416b33362800d5c8082f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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