summaryrefslogtreecommitdiff
path: root/gr-fft/grc/fft_ctrlport_probe_psd.block.yml
blob: 7e2428cbd5b00f2392f531b7b84e509501757c6c (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
id: fft_ctrlport_probe_psd
label: Ctrlport Probe PSD
flags: [ python, cpp ]

parameters:
-   id: name
    label: Name
    dtype: string
    default: psd
-   id: desc
    label: Description
    dtype: string
    default: PSD Plot
-   id: len
    label: Length
    dtype: int
    default: '1024'

inputs:
-   domain: stream
    dtype: complex

templates:
    imports: from gnuradio import fft
    make: fft.ctrlport_probe_psd(${name}, ${desc}, ${len})
    callbacks:
    - set_length(${len})

cpp_templates:
    includes: [ '#include <gnuradio/fft/ctrlport_probe_psd.h>' ]
    declarations: 'fft::ctrlport_probe_psd::sptr ${id};'
    make: 'this->${id} = fft::ctrlport_probe_psd::make(${name}, ${desc}, ${len});'
    link: ['gnuradio::gnuradio-fft']
    callbacks:
    - set_length(${len})

documentation: |-
    Place this in a graph to export PSD values to a GRCP port probe.

file_format: 1