summaryrefslogtreecommitdiff
path: root/gr-digital/grc/digital_costas_loop_cc.block.yml
blob: 9e106b6a45bf37ef83370bcdf833b4a7170e12fe (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
58
59
60
61
62
63
64
id: digital_costas_loop_cc
label: Costas Loop
flags: [ python, cpp ]

parameters:
-   id: w
    label: Loop Bandwidth
    dtype: real
-   id: order
    label: Order
    dtype: int
-   id: use_snr
    label: Use SNR
    dtype: enum
    default: 'False'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    hide: part

inputs:
-   domain: stream
    dtype: complex
-   domain: message
    id: noise
    optional: true

outputs:
-   domain: stream
    dtype: complex
-   label: frequency
    domain: stream
    dtype: float
    optional: true
-   label: phase
    domain: stream
    dtype: float
    optional: true
-   label: error
    domain: stream
    dtype: float
    optional: true

templates:
    imports: from gnuradio import digital
    make: digital.costas_loop_cc(${w}, ${order}, ${use_snr})
    callbacks:
    - set_loop_bandwidth(${w})

cpp_templates:
    includes: ['#include <gnuradio/digital/costas_loop_cc.h>']
    declarations: 'digital::costas_loop_cc::sptr ${id};'
    make: |-
        this->${id} = digital::costas_loop_cc::make(
            ${w},
            ${order},
            ${use_snr});
    link: ['gnuradio::gnuradio-digital']
    callbacks:
    - set_loop_bandwidth(${w})
    translations:
        'True': 'true'
        'False': 'false'

file_format: 1