summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_float_to_int.xml
diff options
context:
space:
mode:
authorTom Rondeau2012-03-31 15:26:40 -0400
committerTom Rondeau2012-03-31 17:02:04 -0400
commit5d3d5cf4315e14be805d8b87c00d0110c4a79797 (patch)
tree8612438a51ac35ba957668c210e4cb4d1e43f96b /grc/blocks/gr_float_to_int.xml
parent1aecf53489a4fa76f6a818c170941faa1d02c43a (diff)
downloadgnuradio-5d3d5cf4315e14be805d8b87c00d0110c4a79797.tar.gz
gnuradio-5d3d5cf4315e14be805d8b87c00d0110c4a79797.tar.bz2
gnuradio-5d3d5cf4315e14be805d8b87c00d0110c4a79797.zip
core: adds vlen and scalar args to type converter blocks in GRC.
Also fixes documentation for these blocks.
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>