summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_vector_source_x.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/grc/blocks_vector_source_x.block.yml')
-rw-r--r--gr-blocks/grc/blocks_vector_source_x.block.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_vector_source_x.block.yml b/gr-blocks/grc/blocks_vector_source_x.block.yml
new file mode 100644
index 0000000000..5cdb6d6d51
--- /dev/null
+++ b/gr-blocks/grc/blocks_vector_source_x.block.yml
@@ -0,0 +1,47 @@
+id: blocks_vector_source_x
+label: Vector Source
+
+parameters:
+- id: type
+ label: Output Type
+ dtype: enum
+ options: [complex, float, int, short, byte]
+ option_attributes:
+ fcn: [c, f, i, s, b]
+ vec_type: [complex_vector, real_vector, int_vector, int_vector, int_vector]
+ hide: part
+- id: vector
+ label: Vector
+ dtype: raw
+ default: (0, 0, 0)
+- id: tags
+ label: Tags
+ dtype: raw
+ default: '[]'
+- id: repeat
+ label: Repeat
+ dtype: enum
+ default: 'True'
+ options: ['True', 'False']
+ option_labels: ['Yes', 'No']
+- id: vlen
+ label: Vec Length
+ dtype: int
+ default: '1'
+ hide: ${ 'part' if vlen == 1 else 'none' }
+
+outputs:
+- domain: stream
+ dtype: ${ type }
+ vlen: ${ vlen }
+
+asserts:
+- ${ vlen > 0 }
+
+templates:
+ imports: from gnuradio import blocks
+ make: blocks.vector_source_${type.fcn}(${vector}, ${repeat}, ${vlen}, ${tags})
+ callbacks:
+ - set_data(${vector}, ${tags})
+
+file_format: 1