summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_or_xx.block.yml
blob: a28a951712a0d8cb0bf3f0ed964607cb2bf6a172 (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
id: blocks_or_xx
label: Or

parameters:
-   id: type
    label: IO Type
    dtype: enum
    options: [int, short, byte]
    option_attributes:
        fcn: [ii, ss, bb]
    hide: part
-   id: num_inputs
    label: Num Inputs
    dtype: int
    default: '2'
    hide: part

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

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

asserts:
- ${ num_inputs >= 2 }

templates:
    imports: from gnuradio import blocks
    make: blocks.or_${type.fcn}()

file_format: 1