diff options
Diffstat (limited to 'gr-blocks/grc/blocks_and_xx.block.yml')
-rw-r--r-- | gr-blocks/grc/blocks_and_xx.block.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_and_xx.block.yml b/gr-blocks/grc/blocks_and_xx.block.yml new file mode 100644 index 0000000000..a8bba020a5 --- /dev/null +++ b/gr-blocks/grc/blocks_and_xx.block.yml @@ -0,0 +1,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 |