summaryrefslogtreecommitdiff
path: root/gr-analog/grc/analog_const_source_x.block.yml
blob: ac676b7ac4de056f9bce062501c5cc92c6a4c1aa (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
id: analog_const_source_x
label: Constant Source

parameters:
-   id: type
    label: Output Type
    dtype: enum
    options: [complex, float, int, short]
    option_attributes:
        const_type: [complex, real, int, int]
        fcn: [c, f, i, s]
    hide: part
-   id: const
    label: Constant
    dtype: ${ type.const_type }
    default: '0'

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

templates:
    imports: from gnuradio import analog
    make: analog.sig_source_${type.fcn}(0, analog.GR_CONST_WAVE, 0, 0, ${const})
    callbacks:
    - set_offset(${const})

file_format: 1