summaryrefslogtreecommitdiff
path: root/gr-analog/grc/analog_ctcss_squelch_ff.block.yml
blob: 00135802422c0b24780a7eb03e4393e15f674c66 (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
id: analog_ctcss_squelch_ff
label: CTCSS Squelch
flags: [ python, cpp ]

parameters:
-   id: rate
    label: Sampling Rate (Hz)
    dtype: real
    default: samp_rate
-   id: freq
    label: Tone Frequency
    dtype: real
    default: '100.0'
-   id: level
    label: Level
    dtype: real
    default: '0.01'
-   id: len
    label: Length
    dtype: int
    default: '0'
-   id: ramp
    label: Ramp
    dtype: int
    default: '0'
-   id: gate
    label: Gate
    dtype: bool
    default: 'False'

inputs:
-   domain: stream
    dtype: float

outputs:
-   domain: stream
    dtype: float

templates:
    imports: from gnuradio import analog
    make: analog.ctcss_squelch_ff(${rate}, ${freq}, ${level}, ${len}, ${ramp}, ${gate})
    callbacks:
    - set_level(${level})
    - set_frequency(${freq})

cpp_templates:
    includes: ['#include <gnuradio/analog/ctcss_squelch_ff.h>']
    make: 'this->${id} = analog::ctcss_squelch_ff::make(${rate}, ${freq}, ${level}, ${len}, ${ramp}, ${gate});'
    callbacks:
    - set_level(${level})
    - set_frequency(${freq})
    link: ['gnuradio::gnuradio-analog']
    translations:
        'True': 'true'
        'False': 'false'

file_format: 1