aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/grc/fadingui_netsink.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'src/gr-fadingui/grc/fadingui_netsink.block.yml')
-rw-r--r--src/gr-fadingui/grc/fadingui_netsink.block.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/gr-fadingui/grc/fadingui_netsink.block.yml b/src/gr-fadingui/grc/fadingui_netsink.block.yml
new file mode 100644
index 0000000..4e5b01b
--- /dev/null
+++ b/src/gr-fadingui/grc/fadingui_netsink.block.yml
@@ -0,0 +1,48 @@
+id: fadingui_netsink
+label: Network Sink
+category: '[fadingui]'
+flags: [ python ]
+
+templates:
+ imports: import fadingui
+ make: fadingui.netsink(${address}, ${dtype}, ${vlen})
+
+# 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: dtype
+ label: Type
+ dtype: enum
+ options: [complex, float, int, short, byte]
+ option_attributes:
+ size: [gr.sizeof_gr_complex, gr.sizeof_floar, gr.sizeof_int, gr.sizeof_short, gr.sizeof_char ]
+ hide: part
+- id: vlen
+ label: Vec Length
+ dtype: int
+ default: 1
+ hide: ${ 'part' if vlen == 1 else 'none' }
+- id: address
+ label: Address
+ dtype: string
+ default: "udp://localhost:31415"
+
+# 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: ${dtype}
+ vlen: ${vlen}
+
+# 'file_format' specifies the version of the GRC yml format used in the file
+# and should usually not be changed.
+file_format: 1