summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_and_xx.block.yml
blob: a8bba020a5a5b9d58dbfefe959f0d6dbc6d507a9 (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_and_xx
label: And

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.and_${type.fcn}()

file_format: 1