diff options
Diffstat (limited to 'gr-blocks/grc/blocks_rms_xx.block.yml')
-rw-r--r-- | gr-blocks/grc/blocks_rms_xx.block.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_rms_xx.block.yml b/gr-blocks/grc/blocks_rms_xx.block.yml new file mode 100644 index 0000000000..ca5e8df124 --- /dev/null +++ b/gr-blocks/grc/blocks_rms_xx.block.yml @@ -0,0 +1,31 @@ +id: blocks_rms_xx +label: RMS + +parameters: +- id: type + label: Input Type + dtype: enum + options: [complex, float] + option_attributes: + fcn: [c, f] + hide: part +- id: alpha + label: Alpha + dtype: real + default: '0.0001' + +inputs: +- domain: stream + dtype: ${ type } + +outputs: +- domain: stream + dtype: float + +templates: + imports: from gnuradio import blocks + make: blocks.rms_${type.fcn}f(${alpha}) + callbacks: + - set_alpha(${alpha}) + +file_format: 1 |