diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-11-09 22:30:01 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-11-10 14:39:41 -0500 |
commit | cbc7960a4facfc50c3861ca96e51348802d457cc (patch) | |
tree | f2b0c58eedc052ca399bde721d6bf054b4e0819b /gr-analog | |
parent | 6be5d93ab0e9ec205f1cb72f8d2d60006b08e7f2 (diff) |
analog: removed noise and sig sources from core.
Fixed QA code for components that do not use gr-analog.
Diffstat (limited to 'gr-analog')
-rw-r--r-- | gr-analog/grc/analog_block_tree.xml | 1 | ||||
-rw-r--r-- | gr-analog/grc/analog_const_source_x.xml | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/gr-analog/grc/analog_block_tree.xml b/gr-analog/grc/analog_block_tree.xml index 8d429f564c..5d2ab6512b 100644 --- a/gr-analog/grc/analog_block_tree.xml +++ b/gr-analog/grc/analog_block_tree.xml @@ -50,6 +50,7 @@ <cat> <name>Sources</name> <block>analog_sig_source_x</block> + <block>analog_const_source_x</block> <block>analog_noise_source_x</block> </cat> <cat> diff --git a/gr-analog/grc/analog_const_source_x.xml b/gr-analog/grc/analog_const_source_x.xml new file mode 100644 index 0000000000..de8c306264 --- /dev/null +++ b/gr-analog/grc/analog_const_source_x.xml @@ -0,0 +1,52 @@ +<?xml version="1.0"?> +<!-- +################################################### +##Constant Source: Custom wrapper +################################################### + --> +<block> + <name>Constant Source</name> + <key>analog_const_source_x</key> + <import>from gnuradio import analog</import> + <make>analog.sig_source_$(type.fcn)(0, analog.GR_CONST_WAVE, 0, 0, $const)</make> + <callback>set_offset($const)</callback> + <param> + <name>Output Type</name> + <key>type</key> + <type>enum</type> + <option> + <name>Complex</name> + <key>complex</key> + <opt>fcn:c</opt> + <opt>const_type:complex</opt> + </option> + <option> + <name>Float</name> + <key>float</key> + <opt>fcn:f</opt> + <opt>const_type:real</opt> + </option> + <option> + <name>Int</name> + <key>int</key> + <opt>fcn:i</opt> + <opt>const_type:int</opt> + </option> + <option> + <name>Short</name> + <key>short</key> + <opt>fcn:s</opt> + <opt>const_type:int</opt> + </option> + </param> + <param> + <name>Constant</name> + <key>const</key> + <value>0</value> + <type>$type.const_type</type> + </param> + <source> + <name>out</name> + <type>$type</type> + </source> +</block> |