summaryrefslogtreecommitdiff
path: root/gr-filter/grc
diff options
context:
space:
mode:
authorTom Rondeau2012-06-15 15:58:28 -0400
committerTom Rondeau2012-06-15 16:05:51 -0400
commit76a6a4c668579ff2e17f8fa44ceb0db381b9053f (patch)
tree7327b7ffb742d9cadf25c2303a03a378cd45c8ca /gr-filter/grc
parent05c117f359b831513bbf6c4f43dca9cb181e5920 (diff)
downloadgnuradio-76a6a4c668579ff2e17f8fa44ceb0db381b9053f.tar.gz
gnuradio-76a6a4c668579ff2e17f8fa44ceb0db381b9053f.tar.bz2
gnuradio-76a6a4c668579ff2e17f8fa44ceb0db381b9053f.zip
filter: adding single_pole_iir_filter blocks.
QA, docs, and GRC.
Diffstat (limited to 'gr-filter/grc')
-rw-r--r--gr-filter/grc/CMakeLists.txt1
-rw-r--r--gr-filter/grc/filter_block_tree.xml1
-rw-r--r--gr-filter/grc/single_pole_iir_filter_xx.xml51
3 files changed, 53 insertions, 0 deletions
diff --git a/gr-filter/grc/CMakeLists.txt b/gr-filter/grc/CMakeLists.txt
index 663cc0b00..83036a0b3 100644
--- a/gr-filter/grc/CMakeLists.txt
+++ b/gr-filter/grc/CMakeLists.txt
@@ -25,6 +25,7 @@ install(FILES
filter_delay_fc.xml
hilbert_fc.xml
pfb_channelizer.xml
+ single_pole_iir_filter_xx.xml
DESTINATION ${GRC_BLOCKS_DIR}
COMPONENT "filter_python"
)
diff --git a/gr-filter/grc/filter_block_tree.xml b/gr-filter/grc/filter_block_tree.xml
index 988897fcf..6711e809f 100644
--- a/gr-filter/grc/filter_block_tree.xml
+++ b/gr-filter/grc/filter_block_tree.xml
@@ -36,5 +36,6 @@
<block>filter_delay_fc</block>
<block>hilbert_fc</block>
<block>pfb_channelizer_ccf</block>
+ <block>single_pole_iir_filter_xx</block>
</cat>
</cat>
diff --git a/gr-filter/grc/single_pole_iir_filter_xx.xml b/gr-filter/grc/single_pole_iir_filter_xx.xml
new file mode 100644
index 000000000..3eaf52625
--- /dev/null
+++ b/gr-filter/grc/single_pole_iir_filter_xx.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Single Pole IIR Filter
+###################################################
+ -->
+<block>
+ <name>Single Pole IIR Filter</name>
+ <key>single_pole_iir_filter_xx</key>
+ <import>from gnuradio import filter</import>
+ <make>filter.single_pole_iir_filter_$(type.fcn)($alpha, $vlen)</make>
+ <callback>set_taps($alpha)</callback>
+ <param>
+ <name>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>
+ </param>
+ <param>
+ <name>Alpha</name>
+ <key>alpha</key>
+ <value>1.0</value>
+ <type>real</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>