summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-08-30 21:10:29 -0400
committerTom Rondeau <trondeau@vt.edu>2012-08-30 21:10:29 -0400
commitc09d1dceb9a82beaf051d011100a0c068b7581c4 (patch)
treefdce3d19205cb18471e10d6fc4490d2bdf498666 /grc
parent297ee1e1eac9766ede38151e2a6350f486f4e381 (diff)
parent0e2f0c6473530ef6823a27f4f294826c777afe06 (diff)
Merge branch 'master' into next
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/block_tree.xml2
-rw-r--r--grc/blocks/gr_endian_swap.xml41
2 files changed, 43 insertions, 0 deletions
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index 30dfdb05d5..31298a2288 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -61,6 +61,8 @@
<block>gr_conjugate_cc</block>
<block>gr_vector_insert_x</block>
+
+ <block>gr_endian_swap</block>
</cat>
<cat>
<name>Type Conversions</name>
diff --git a/grc/blocks/gr_endian_swap.xml b/grc/blocks/gr_endian_swap.xml
new file mode 100644
index 0000000000..aa564026cd
--- /dev/null
+++ b/grc/blocks/gr_endian_swap.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Add Block:
+## all types, 1 output, 2 to inf inputs
+###################################################
+ -->
+<block>
+ <name>Endian Swap</name>
+ <key>gr_endian_swap</key>
+ <import>from gnuradio import gr</import>
+ <make>gr.endian_swap($type.size)</make>
+ <param>
+ <name>IO Type</name>
+ <key>type</key>
+ <type>enum</type>
+ <option>
+ <name>Complex</name>
+ <key>complex</key>
+ <opt>size:8</opt>
+ </option>
+ <option>
+ <name>Int</name>
+ <key>s32</key>
+ <opt>size:4</opt>
+ </option>
+ <option>
+ <name>Short</name>
+ <key>s16</key>
+ <opt>size:2</opt>
+ </option>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>$type</type>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>$type</type>
+ </source>
+</block>