/
variable_low_pass_filter_taps.block.yml
52 lines (46 loc) · 1.42 KB
/
variable_low_pass_filter_taps.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
id: variable_low_pass_filter_taps
label: Low-pass Filter Taps
flags: [ show_id, python ]
parameters:
- id: gain
label: Gain
dtype: float
default: '1.0'
- id: samp_rate
label: Sample Rate (Hz)
dtype: float
default: samp_rate
- id: cutoff_freq
label: Cutoff Freq (Hz)
dtype: float
- id: width
label: Transition Width (Hz)
dtype: float
- id: win
label: Window
dtype: int
default: firdes.WIN_HAMMING
options: [firdes.WIN_HAMMING, firdes.WIN_HANN, firdes.WIN_BLACKMAN, firdes.WIN_RECTANGULAR,
firdes.WIN_KAISER]
option_labels: [Hamming, Hann, Blackman, Rectangular, Kaiser]
- id: beta
label: Beta
dtype: float
default: '6.76'
value: ${ firdes.low_pass(gain, samp_rate, cutoff_freq, width, win, beta) }
templates:
imports: from gnuradio.filter import firdes
var_make: |-
self.${id} = ${id} = firdes.low_pass(${gain}, ${samp_rate}, ${cutoff_freq},\
${width}, ${win}, ${beta})
cpp_templates:
includes: ['#include <gnuradio/filter/firdes.h>']
declarations: 'filter::firdes::sptr ${id};'
var_make: |-
this->${id} = ${id} = firdes.low_pass(${gain}, ${samp_rate}, ${cutoff_freq},\
${width}, ${win}, ${beta});
link: ['gnuradio-filter']
documentation: |-
This variable is a convenience wrapper around a call to firdes.low_pass(...).
The beta parameter only applies to the Kaiser window.
file_format: 1