gr-mcp/grc/tests/resources/file2.block.yml

32 lines
518 B
YAML

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