/
dtv_dvbt2_p1insertion_cc.block.yml
152 lines (146 loc) · 4.84 KB
/
dtv_dvbt2_p1insertion_cc.block.yml
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
id: dtv_dvbt2_p1insertion_cc
label: P1 Symbol Insertion
flags: [ python, cpp ]
parameters:
- id: carriermode
label: Extended Carrier Mode
dtype: enum
options: [CARRIERS_NORMAL, CARRIERS_EXTENDED]
option_labels: [Normal, Extended]
option_attributes:
val: [dtv.CARRIERS_NORMAL, dtv.CARRIERS_EXTENDED]
- id: fftsize1
label: FFT Size
dtype: enum
options: [FFTSIZE_1K, FFTSIZE_2K, FFTSIZE_4K, FFTSIZE_8K, FFTSIZE_8K_T2GI, FFTSIZE_16K,
FFTSIZE_32K, FFTSIZE_32K_T2GI]
option_labels: [1K, 2K, 4K, 8K, 8K DVB-T2 GI, 16K, 32K, 32K DVB-T2 GI]
option_attributes:
val: [dtv.FFTSIZE_1K, dtv.FFTSIZE_2K, dtv.FFTSIZE_4K, dtv.FFTSIZE_8K, dtv.FFTSIZE_8K_T2GI,
dtv.FFTSIZE_16K, dtv.FFTSIZE_32K, dtv.FFTSIZE_32K_T2GI]
hide: ${ (preamble1.hide_base if str(version) == 'VERSION_111' else preamble2.hide_base)
}
- id: fftsize2
label: FFT Size
dtype: enum
options: [FFTSIZE_2K, FFTSIZE_4K, FFTSIZE_8K, FFTSIZE_8K_T2GI, FFTSIZE_16K, FFTSIZE_16K_T2GI]
option_labels: [2K, 4K, 8K, 8K DVB-T2 GI, 16K, 16K DVB-T2 GI]
option_attributes:
val: [dtv.FFTSIZE_2K, dtv.FFTSIZE_4K, dtv.FFTSIZE_8K, dtv.FFTSIZE_8K_T2GI,
dtv.FFTSIZE_16K, dtv.FFTSIZE_16K_T2GI]
hide: ${ (preamble1.hide_lite if str(version) == 'VERSION_111' else preamble2.hide_lite)
}
- id: guardinterval
label: Guard Interval
dtype: enum
options: [GI_1_32, GI_1_16, GI_1_8, GI_1_4, GI_1_128, GI_19_128, GI_19_256]
option_labels: [1/32, 1/16, 1/8, 1/4, 1/128, 19/128, 19/256]
option_attributes:
val: [dtv.GI_1_32, dtv.GI_1_16, dtv.GI_1_8, dtv.GI_1_4, dtv.GI_1_128, dtv.GI_19_128,
dtv.GI_19_256]
- id: numdatasyms
label: Number of Data Symbols
dtype: int
default: '100'
- id: version
label: Specification Version
dtype: enum
options: [VERSION_111, VERSION_131]
option_labels: [1.1.1, 1.3.1]
option_attributes:
hide_111: [none, all]
hide_131: [all, none]
val: [dtv.VERSION_111, dtv.VERSION_131]
- id: preamble1
label: Preamble
dtype: enum
options: [PREAMBLE_T2_SISO, PREAMBLE_T2_MISO]
option_labels: [T2 SISO, T2 MISO]
option_attributes:
hide_base: [none, none]
hide_lite: [all, all]
val: [dtv.PREAMBLE_T2_SISO, dtv.PREAMBLE_T2_MISO]
hide: ${ version.hide_111 }
- id: preamble2
label: Preamble
dtype: enum
options: [PREAMBLE_T2_SISO, PREAMBLE_T2_MISO, PREAMBLE_T2_LITE_SISO, PREAMBLE_T2_LITE_MISO]
option_labels: [T2 SISO, T2 MISO, T2-Lite SISO, T2-Lite MISO]
option_attributes:
hide_base: [none, none, all, all]
hide_lite: [all, all, none, none]
val: [dtv.PREAMBLE_T2_SISO, dtv.PREAMBLE_T2_MISO, dtv.PREAMBLE_T2_LITE_SISO,
dtv.PREAMBLE_T2_LITE_MISO]
hide: ${ version.hide_131 }
- id: showlevels
label: Show Peak IQ Levels
dtype: enum
options: [SHOWLEVELS_OFF, SHOWLEVELS_ON]
option_labels: ['Off', 'On']
option_attributes:
hide_vclip: [all, none]
val: [dtv.SHOWLEVELS_OFF, dtv.SHOWLEVELS_ON]
- id: vclip
label: Vclip
dtype: float
default: '3.3'
hide: ${ showlevels.hide_vclip }
inputs:
- domain: stream
dtype: complex
outputs:
- domain: stream
dtype: complex
templates:
imports: from gnuradio import dtv
make: |-
dtv.dvbt2_p1insertion_cc(
${carriermode.val},
% if str(version) == 'VERSION_111':
${fftsize1.val},
% else:
% if str(preamble2) == 'PREAMBLE_T2_SISO' or str(preamble2) == 'PREAMBLE_T2_MISO':
${fftsize1.val},
% else:
${fftsize2.val},
% endif
% endif
${guardinterval.val},
${numdatasyms},
% if str(version) == 'VERSION_111':
${preamble1.val},
% else:
${preamble2.val},
% endif
${showlevels.val},
${vclip}
)
cpp_templates:
includes: ['#include <gnuradio/dtv/dvbt2_p1insertion_cc.h>']
declarations: 'dtv::dvbt2_p1insertion_cc::sptr ${id};'
make: |-
this->${id} = dtv::dvbt2_p1insertion_cc::make(
${carriermode.val},
% if str(version) == 'VERSION_111':
${fftsize1.val},
% else:
% if str(preamble2) == 'PREAMBLE_T2_SISO' or str(preamble2) == 'PREAMBLE_T2_MISO':
${fftsize1.val},
% else:
${fftsize2.val},
% endif
% endif
${guardinterval.val},
${numdatasyms},
% if str(version) == 'VERSION_111':
${preamble1.val},
% else:
${preamble2.val},
% endif
${showlevels.val},
${vclip}
);
link: ['gnuradio::gnuradio-dtv']
translations:
dtv\.: 'dtv::'
file_format: 1