summaryrefslogtreecommitdiff
path: root/gr-dtv/grc/dtv_dvbt_reference_signals.block.yml
blob: 89fb1dd086ae7926b2c5a1dc216e0c984fa9bc92 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
id: dtv_dvbt_reference_signals
label: Reference Signals
flags: [ python, cpp ]

parameters:
-   id: type
    label: IO Type
    dtype: enum
    options: [complex, float, int, short, byte]
    option_attributes:
        size: [gr.sizeof_gr_complex, gr.sizeof_float, gr.sizeof_int, gr.sizeof_short,
            gr.sizeof_char]
-   id: constellation
    label: Constellation Type
    dtype: enum
    options: [qpsk, 16qam, 64qam]
    option_labels: [QPSK, 16QAM, 64QAM]
    option_attributes:
        val: [dtv.MOD_QPSK, dtv.MOD_16QAM, dtv.MOD_64QAM]
-   id: hierarchy
    label: Hierarchy Type
    dtype: enum
    options: [nh, alpha1, alpha2, alpha4]
    option_labels: [Non Hierarchical, Alpha 1, Alpha 2, Alpha 4]
    option_attributes:
        val: [dtv.NH, dtv.ALPHA1, dtv.ALPHA2, dtv.ALPHA4]
-   id: code_rate_hp
    label: Code rate HP
    dtype: enum
    options: [C1_2, C2_3, C3_4, C5_6, C7_8]
    option_labels: [1/2, 2/3, 3/4, 5/6, 7/8]
    option_attributes:
        val: [dtv.C1_2, dtv.C2_3, dtv.C3_4, dtv.C5_6, dtv.C7_8]
-   id: code_rate_lp
    label: Code rate LP
    dtype: enum
    options: [C1_2, C2_3, C3_4, C5_6, C7_8]
    option_labels: [1/2, 2/3, 3/4, 5/6, 7/8]
    option_attributes:
        val: [dtv.C1_2, dtv.C2_3, dtv.C3_4, dtv.C5_6, dtv.C7_8]
-   id: guard_interval
    label: Guard Interval
    dtype: enum
    options: [GI_1_32, GI_1_16, GI_1_8, GI_1_4]
    option_labels: [1/32, 1/16, 1/8, 1/4]
    option_attributes:
        val: [dtv.GI_1_32, dtv.GI_1_16, dtv.GI_1_8, dtv.GI_1_4]
-   id: transmission_mode
    label: Transmission Mode
    dtype: enum
    options: [T2k, T8k]
    option_labels: [2K, 8K]
    option_attributes:
        fft_length: [2048, 8192]
        payload_length: [1512, 6048]
        val: [dtv.T2k, dtv.T8k]
-   id: include_cell_id
    label: Include Cell ID
    dtype: enum
    options: [call_id_yes, cell_id_no]
    option_labels: ['Yes', 'No']
    option_attributes:
        val: ['1', '0']
-   id: cell_id
    label: Cell Id
    dtype: int
    default: '0'

inputs:
-   domain: stream
    dtype: complex
    vlen: ${ transmission_mode.payload_length }

outputs:
-   domain: stream
    dtype: complex
    vlen: ${ transmission_mode.fft_length }

templates:
    imports: from gnuradio import dtv
    make: |-
        dtv.dvbt_reference_signals(
            ${type.size},
            ${transmission_mode.payload_length},
            ${transmission_mode.fft_length},
            ${constellation.val},
            ${hierarchy.val},
            ${code_rate_hp.val},
            ${code_rate_lp.val},
            ${guard_interval.val},
            ${transmission_mode.val},
            ${include_cell_id.val},
            ${cell_id})

cpp_templates:
    includes: ['#include <gnuradio/dtv/dvbt_reference_signals.h>']
    declarations: 'dtv::dvbt_reference_signals::sptr ${id};'
    make: |-
        this->${id} = dtv::dvbt_reference_signals::make(
            ${type.size},
            ${transmission_mode.fft_length},
            ${transmission_mode.payload_length},
            ${constellation.val},
            ${hierarchy.val},
            ${code_rate_hp.val},
            ${code_rate_lp.val},
            ${guard_interval.val},
            ${transmission_mode.val},
            ${include_cell_id.val},
            ${cell_id});
    link: ['gnuradio::gnuradio-dtv']
    translations:
        dtv\.: 'dtv::'

file_format: 1