diff options
Diffstat (limited to 'gr-blocks/grc/blocks_sample_and_hold_xx.block.yml')
-rw-r--r-- | gr-blocks/grc/blocks_sample_and_hold_xx.block.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_sample_and_hold_xx.block.yml b/gr-blocks/grc/blocks_sample_and_hold_xx.block.yml new file mode 100644 index 0000000000..893e7862b2 --- /dev/null +++ b/gr-blocks/grc/blocks_sample_and_hold_xx.block.yml @@ -0,0 +1,28 @@ +id: blocks_sample_and_hold_xx +label: Sample and Hold + +parameters: +- id: type + label: Type + dtype: enum + options: [float, int, short, byte] + option_attributes: + fcn: [ff, ii, ss, bb] + hide: part + +inputs: +- domain: stream + dtype: ${ type } +- label: ctrl + domain: stream + dtype: byte + +outputs: +- domain: stream + dtype: ${ type } + +templates: + imports: from gnuradio import blocks + make: blocks.sample_and_hold_${type.fcn}() + +file_format: 1 |