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_agc_xx.block.yml | |
parent | 6fa9d33246251f44a0e78682e50e9a1cb0b03171 (diff) |
Added auto-generated YAML blocks
Diffstat (limited to 'gr-analog/grc/analog_agc_xx.block.yml')
-rw-r--r-- | gr-analog/grc/analog_agc_xx.block.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gr-analog/grc/analog_agc_xx.block.yml b/gr-analog/grc/analog_agc_xx.block.yml new file mode 100644 index 0000000000..52ef26f79f --- /dev/null +++ b/gr-analog/grc/analog_agc_xx.block.yml @@ -0,0 +1,48 @@ +id: analog_agc_xx +label: AGC + +parameters: +- id: type + label: Type + dtype: enum + options: [complex, float] + option_attributes: + fcn: [cc, ff] + hide: part +- id: rate + label: Rate + dtype: real + default: 1e-4 +- id: reference + label: Reference + dtype: real + default: '1.0' +- id: gain + label: Gain + dtype: real + default: '1.0' +- id: max_gain + label: Max Gain + dtype: real + default: '65536' + +inputs: +- domain: stream + dtype: ${ type } + +outputs: +- domain: stream + dtype: ${ type } + +templates: + imports: from gnuradio import analog + make: |- + analog.agc_${type.fcn}(${rate}, ${reference}, ${gain}) + self.${id}.set_max_gain(${max_gain}) + callbacks: + - set_rate(${rate}) + - set_reference(${reference}) + - set_gain(${gain}) + - set_max_gain(${max_gain}) + +file_format: 1 |