summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_float_to_int.xml
diff options
context:
space:
mode:
authorTom Rondeau2012-04-05 10:39:55 -0400
committerTom Rondeau2012-04-05 10:39:55 -0400
commit8f84dfdd2104ec70057c31b70494bfac95b47424 (patch)
treea9e0dbe71953d5587bf0c25462f3168ec395fe47 /grc/blocks/gr_float_to_int.xml
parent2f73fe22c5e1591242a9556221ec8487170a7b00 (diff)
parenta66a650a1f39118500434bc9c91b2ade24887149 (diff)
downloadgnuradio-8f84dfdd2104ec70057c31b70494bfac95b47424.tar.gz
gnuradio-8f84dfdd2104ec70057c31b70494bfac95b47424.tar.bz2
gnuradio-8f84dfdd2104ec70057c31b70494bfac95b47424.zip
Merge branch 'master' into next
Conflicts: grc/blocks/Makefile.am
Diffstat (limited to 'grc/blocks/gr_float_to_int.xml')
-rw-r--r--grc/blocks/gr_float_to_int.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/grc/blocks/gr_float_to_int.xml b/grc/blocks/gr_float_to_int.xml
new file mode 100644
index 000000000..b43c208a5
--- /dev/null
+++ b/grc/blocks/gr_float_to_int.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Float to Int:
+###################################################
+ -->
+<block>
+ <name>Float To Int</name>
+ <key>gr_float_to_int</key>
+ <import>from gnuradio import gr</import>
+ <make>gr.float_to_int($vlen, $scale)</make>
+ <callback>set_scale($scale)</callback>
+ <param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Scale</name>
+ <key>scale</key>
+ <value>1</value>
+ <type>real</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>float</type>
+ <vlen>$vlen</vlen>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>int</type>
+ <vlen>$vlen</vlen>
+ </source>
+</block>