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_const_source_x.block.yml | |
parent | 6fa9d33246251f44a0e78682e50e9a1cb0b03171 (diff) |
Added auto-generated YAML blocks
Diffstat (limited to 'gr-analog/grc/analog_const_source_x.block.yml')
-rw-r--r-- | gr-analog/grc/analog_const_source_x.block.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gr-analog/grc/analog_const_source_x.block.yml b/gr-analog/grc/analog_const_source_x.block.yml new file mode 100644 index 0000000000..ac676b7ac4 --- /dev/null +++ b/gr-analog/grc/analog_const_source_x.block.yml @@ -0,0 +1,28 @@ +id: analog_const_source_x +label: Constant Source + +parameters: +- id: type + label: Output Type + dtype: enum + options: [complex, float, int, short] + option_attributes: + const_type: [complex, real, int, int] + fcn: [c, f, i, s] + hide: part +- id: const + label: Constant + dtype: ${ type.const_type } + default: '0' + +outputs: +- domain: stream + dtype: ${ type } + +templates: + imports: from gnuradio import analog + make: analog.sig_source_${type.fcn}(0, analog.GR_CONST_WAVE, 0, 0, ${const}) + callbacks: + - set_offset(${const}) + +file_format: 1 |