summaryrefslogtreecommitdiff
path: root/gr-analog/grc/analog_simple_squelch_cc.block.yml
blob: 468ab11dd45bfd5632f926ef34f33ce0560554be (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
id: analog_simple_squelch_cc
label: Simple Squelch
flags: [ python, cpp ]

parameters:
-   id: threshold
    label: Threshold (dB)
    dtype: real
-   id: alpha
    label: Alpha
    dtype: real

inputs:
-   domain: stream
    dtype: complex

outputs:
-   domain: stream
    dtype: complex

templates:
    imports: from gnuradio import analog
    make: analog.simple_squelch_cc(${threshold}, ${alpha})
    callbacks:
    - set_threshold(${threshold})
    - set_alpha(${alpha})

cpp_templates:
    includes: ['#include <gnuradio/analog/simple_squelch_cc.h>']
    make: 'this->${id} = analog::simple_squelch_cc::make(${threshold}, ${alpha});'
    callbacks:
    - set_threshold(${threshold})
    - set_alpha(${alpha})
    link: ['gnuradio::gnuradio-analog']

file_format: 1