Added new block: Pad Tagged Stream

This commit is contained in:
Cyancali
2019-10-12 12:10:49 +02:00
committed by Bastian Bloessl
parent ceb13d50e1
commit d1ec4c1572
10 changed files with 286 additions and 2 deletions
+1 -1
View File
@@ -29,5 +29,5 @@ install(FILES
foo_packet_dropper.block.yml
foo_periodic_msg_source.block.yml
foo_selector.block.yml
DESTINATION share/gnuradio/grc/blocks
foo_pad_tagged_stream.block.yml DESTINATION share/gnuradio/grc/blocks
)
+45
View File
@@ -0,0 +1,45 @@
id: foo_pad_tagged_stream
label: Pad Tagged Stream
category: '[Foo]'
templates:
imports: import foo
make: foo.pad_tagged_stream(${buffer_size}, ${len_tag_name})
# Make one 'parameters' list entry for every parameter you want settable from the GUI.
# Keys include:
# * id (makes the value accessible as \$keyname, e.g. in the make entry)
# * label (label shown in the GUI)
# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
parameters:
- id: buffer_size
label: Buffer Size
dtype: int
- id: len_tag_name
label: Length Tag Key
dtype: string
# Make one 'inputs' list entry per input and one 'outputs' list entry per output.
# Keys include:
# * label (an identifier for the GUI)
# * domain (optional - stream or message. Default is stream)
# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
# * vlen (optional - data stream vector length. Default is 1)
# * optional (optional - set to 1 for optional inputs. Default is 0)
inputs:
- label: in
domain: stream
dtype: complex
vlen: 1
optional: 0
outputs:
- label: out
domain: stream
dtype: complex
vlen: 1
optional: 0
# 'file_format' specifies the version of the GRC yml format used in the file
# and should usually not be changed.
file_format: 1