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