diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2017-09-24 12:16:22 +0200 |
---|---|---|
committer | Håkon Vågsether <haakonsv@gmail.com> | 2017-10-10 10:49:36 +0200 |
commit | baf7eaf8f29d5a490f2580917362cf5b3db47281 (patch) | |
tree | 7afab4ee2dfa6439ecf95d47aa68996020ea04c5 /gr-analog/grc/analog_pwr_squelch_xx.block.yml | |
parent | 6fa9d33246251f44a0e78682e50e9a1cb0b03171 (diff) |
Added auto-generated YAML blocks
Diffstat (limited to 'gr-analog/grc/analog_pwr_squelch_xx.block.yml')
-rw-r--r-- | gr-analog/grc/analog_pwr_squelch_xx.block.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gr-analog/grc/analog_pwr_squelch_xx.block.yml b/gr-analog/grc/analog_pwr_squelch_xx.block.yml new file mode 100644 index 0000000000..20bcfa923e --- /dev/null +++ b/gr-analog/grc/analog_pwr_squelch_xx.block.yml @@ -0,0 +1,44 @@ +id: analog_pwr_squelch_xx +label: Power Squelch + +parameters: +- id: type + label: Type + dtype: enum + options: [complex, float] + option_attributes: + fcn: [cc, ff] + hide: part +- id: threshold + label: Threshold (dB) + dtype: real +- id: alpha + label: Alpha + dtype: real + default: 1e-4 +- id: ramp + label: Ramp + dtype: int + default: '0' +- id: gate + label: Gate + dtype: enum + options: ['True', 'False'] + option_labels: ['Yes', 'No'] + +inputs: +- domain: stream + dtype: ${ type } + +outputs: +- domain: stream + dtype: ${ type } + +templates: + imports: from gnuradio import analog + make: analog.pwr_squelch_${type.fcn}(${threshold}, ${alpha}, ${ramp}, ${gate}) + callbacks: + - set_threshold(${threshold}) + - set_alpha(${alpha}) + +file_format: 1 |