summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorJohnathan Corgan2012-06-28 09:02:58 -0700
committerJohnathan Corgan2012-06-28 09:02:58 -0700
commitc128e5aee66838c849ffc2ac45217ff1efab42e8 (patch)
tree3f95507db8382253a33860a8423aa8ba43a0bfbe /gr-blocks/grc
parentbe1219b0623bbceb5bca6a6f6774f0669f52bdde (diff)
downloadgnuradio-c128e5aee66838c849ffc2ac45217ff1efab42e8.tar.gz
gnuradio-c128e5aee66838c849ffc2ac45217ff1efab42e8.tar.bz2
gnuradio-c128e5aee66838c849ffc2ac45217ff1efab42e8.zip
blocks: added gr::blocks::short_to_char
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_block_tree.xml1
-rw-r--r--gr-blocks/grc/blocks_short_to_char.xml28
2 files changed, 29 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml
index 9a56d4c41..64af22cfd 100644
--- a/gr-blocks/grc/blocks_block_tree.xml
+++ b/gr-blocks/grc/blocks_block_tree.xml
@@ -55,5 +55,6 @@
<block>blocks_float_to_uchar</block>
<block>blocks_int_to_float</block>
<block>blocks_interleaved_short_to_complex</block>
+ <block>blocks_short_to_char</block>
</cat>
</cat>
diff --git a/gr-blocks/grc/blocks_short_to_char.xml b/gr-blocks/grc/blocks_short_to_char.xml
new file mode 100644
index 000000000..1951333d1
--- /dev/null
+++ b/gr-blocks/grc/blocks_short_to_char.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Short to char:
+###################################################
+ -->
+<block>
+ <name>Short To Char</name>
+ <key>blocks_short_to_char</key>
+ <import>from gnuradio import blocks</import>
+ <make>blocks.short_to_char($vlen)</make>
+ <param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>short</type>
+ <vlen>$vlen</vlen>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>byte</type>
+ <vlen>$vlen</vlen>
+ </source>
+</block>