summaryrefslogtreecommitdiff
path: root/gr-fft/grc/fft_logpwrfft_x.block.yml
blob: 1b8b4a4c3095ceb995acf16f7ae36cb190b26394 (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
65
66
67
68
69
70
71
id: logpwrfft_x
label: Log Power FFT
flags: [ python ]

parameters:
-   id: type
    label: Input Type
    dtype: enum
    options: [complex, float]
    option_attributes:
        fcn: [c, f]
    hide: part
-   id: sample_rate
    label: Sample Rate
    dtype: real
    default: samp_rate
-   id: fft_size
    label: FFT Size
    dtype: int
    default: '1024'
-   id: ref_scale
    label: Reference Scale
    dtype: real
    default: '2'
-   id: frame_rate
    label: Frame Rate
    dtype: real
    default: '30'
-   id: average
    label: Average
    dtype: bool
    default: 'False'
    options: ['True', 'False']
    option_labels: ['On', 'Off']
-   id: avg_alpha
    label: Average Alpha
    dtype: real
    default: '1.0'
-   id: shift
    label: FFT Shift
    dtype: bool
    default: 'False'
    options: ['True', 'False']
    option_labels: ['On', 'Off']

inputs:
-   domain: stream
    dtype: ${ type }

outputs:
-   domain: stream
    dtype: float
    vlen: ${ fft_size }

templates:
    imports: from gnuradio.fft import logpwrfft
    make: |-
        logpwrfft.logpwrfft_${type.fcn}(
            sample_rate=${sample_rate},
            fft_size=${fft_size},
            ref_scale=${ref_scale},
            frame_rate=${frame_rate},
            avg_alpha=${avg_alpha},
            average=${average},
            shift=${shift})
    callbacks:
    - set_sample_rate(${sample_rate})
    - set_avg_alpha(${avg_alpha})
    - set_average(${average})

file_format: 1