summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_endian_swap.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/grc/blocks_endian_swap.block.yml')
-rw-r--r--gr-blocks/grc/blocks_endian_swap.block.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_endian_swap.block.yml b/gr-blocks/grc/blocks_endian_swap.block.yml
new file mode 100644
index 0000000000..da2ef0c379
--- /dev/null
+++ b/gr-blocks/grc/blocks_endian_swap.block.yml
@@ -0,0 +1,26 @@
+id: blocks_endian_swap
+label: Endian Swap
+
+parameters:
+- id: type
+ label: IO Type
+ dtype: enum
+ options: [complex, s32, s16]
+ option_labels: [Complex, Int, Short]
+ option_attributes:
+ size: ['8', '4', '2']
+ hide: part
+
+inputs:
+- domain: stream
+ dtype: ${ type }
+
+outputs:
+- domain: stream
+ dtype: ${ type }
+
+templates:
+ imports: from gnuradio import blocks
+ make: blocks.endian_swap(${type.size})
+
+file_format: 1