summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2016-08-26 09:39:02 -0700
committerRon Economos <w6rz@comcast.net>2016-08-26 09:39:02 -0700
commit9566915e48d66bb4eff75d5bd136127499245224 (patch)
tree300341ee547344af6146dacef28b296fd3669f3b /gr-blocks/grc
parentf65a6f2e2d61875668b0a5ef07495f8558f6dce8 (diff)
gr-blocks: Expose non-vector VOLK multiply constant block.
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_block_tree.xml1
-rw-r--r--gr-blocks/grc/blocks_multiply_const_xx.xml62
2 files changed, 63 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml
index 644773f686..6bd72be2fd 100644
--- a/gr-blocks/grc/blocks_block_tree.xml
+++ b/gr-blocks/grc/blocks_block_tree.xml
@@ -94,6 +94,7 @@
<block>blocks_add_const_vxx</block>
<block>blocks_divide_xx</block>
<block>blocks_multiply_xx</block>
+ <block>blocks_multiply_const_xx</block>
<block>blocks_multiply_const_vxx</block>
<block>blocks_multiply_conjugate_cc</block>
<block>blocks_multiply_matrix_xx</block>
diff --git a/gr-blocks/grc/blocks_multiply_const_xx.xml b/gr-blocks/grc/blocks_multiply_const_xx.xml
new file mode 100644
index 0000000000..db8b5211e6
--- /dev/null
+++ b/gr-blocks/grc/blocks_multiply_const_xx.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Fast Multiply Const Block:
+## all types, 1 output, 1 input & const
+###################################################
+ -->
+<block>
+ <name>Fast Multiply Const</name>
+ <key>blocks_multiply_const_xx</key>
+ <import>from gnuradio import blocks</import>
+ <make>blocks.multiply_const_$(type.fcn)($const)</make>
+ <callback>set_k($const)</callback>
+ <param>
+ <name>IO Type</name>
+ <key>type</key>
+ <type>enum</type>
+ <option>
+ <name>Complex</name>
+ <key>complex</key>
+ <opt>fcn:cc</opt>
+ </option>
+ <option>
+ <name>Float</name>
+ <key>float</key>
+ <opt>fcn:ff</opt>
+ </option>
+ <option>
+ <name>Int</name>
+ <key>int</key>
+ <opt>fcn:ii</opt>
+ </option>
+ <option>
+ <name>Short</name>
+ <key>short</key>
+ <opt>fcn:ss</opt>
+ </option>
+ </param>
+ <param>
+ <name>Constant</name>
+ <key>const</key>
+ <value>0</value>
+ <type>$type</type>
+ </param>
+ <param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <check>$vlen &gt; 0</check>
+ <sink>
+ <name>in</name>
+ <type>$type</type>
+ <vlen>$vlen</vlen>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>$type</type>
+ <vlen>$vlen</vlen>
+ </source>
+</block>