blob: 20bcfa923e69b264d28c2aec089c38df9c30dd32 (
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
|
id: analog_pwr_squelch_xx
label: Power Squelch
parameters:
- id: type
label: Type
dtype: enum
options: [complex, float]
option_attributes:
fcn: [cc, ff]
hide: part
- id: threshold
label: Threshold (dB)
dtype: real
- id: alpha
label: Alpha
dtype: real
default: 1e-4
- id: ramp
label: Ramp
dtype: int
default: '0'
- id: gate
label: Gate
dtype: enum
options: ['True', 'False']
option_labels: ['Yes', 'No']
inputs:
- domain: stream
dtype: ${ type }
outputs:
- domain: stream
dtype: ${ type }
templates:
imports: from gnuradio import analog
make: analog.pwr_squelch_${type.fcn}(${threshold}, ${alpha}, ${ramp}, ${gate})
callbacks:
- set_threshold(${threshold})
- set_alpha(${alpha})
file_format: 1
|