summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_and_const_xx.block.yml
blob: 459527260c45c6f47e5ff71b39fc1ca001a9a9dd (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
id: blocks_and_const_xx
label: And Const

parameters:
-   id: type
    label: IO Type
    dtype: enum
    options: [int, short, byte]
    option_attributes:
        fcn: [ii, ss, bb]
    hide: part
-   id: const
    label: Constant
    dtype: int
    default: '0'

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

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

templates:
    imports: from gnuradio import blocks
    make: blocks.and_const_${type.fcn}(${const})
    callbacks:
    - set_k(${const})

file_format: 1