Added new block: Pad Tagged Stream
This commit is contained in:
committed by
Bastian Bloessl
parent
e618e70b12
commit
e3ada6d33e
+1
-1
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user