aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/grc/fadingui_datasource.block.yml
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-11-12 20:16:59 +0100
committerNao Pross <np@0hm.ch>2021-11-12 20:16:59 +0100
commit96123552f8c037d683aa669c7c47ad2ebc9b1955 (patch)
tree81384d5c71fc6f5968458f6164e0038905f1c85f /src/gr-fadingui/grc/fadingui_datasource.block.yml
parentMerge remote-tracking branch 'origin/master' (diff)
downloadFading-96123552f8c037d683aa669c7c47ad2ebc9b1955.tar.gz
Fading-96123552f8c037d683aa669c7c47ad2ebc9b1955.zip
Create (a new) OOT
Diffstat (limited to '')
-rw-r--r--src/gr-fadingui/grc/fadingui_datasource.block.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/gr-fadingui/grc/fadingui_datasource.block.yml b/src/gr-fadingui/grc/fadingui_datasource.block.yml
new file mode 100644
index 0000000..67f0275
--- /dev/null
+++ b/src/gr-fadingui/grc/fadingui_datasource.block.yml
@@ -0,0 +1,47 @@
+id: fadingui_datasource
+label: UI Data Source
+category: '[fadingui]'
+
+templates:
+ imports: import fadingui
+ make: fadingui.datasource(vec_len=${vec_len}, sock_addr=${sock_addr}, file_list=${file_list})
+
+# 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: vec_len
+ label: Vector length
+ dtype: int
+ default: 512
+
+- id: sock_addr
+ label: Socket Address
+ dtype: string
+ default: "udp://"
+
+- id: file_list
+ label: List of files
+ dtype: raw
+ default: "[]"
+
+# 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:
+
+outputs:
+- label: out
+ domain: stream
+ dtype: byte
+ vlen: ${vec_len}
+
+# 'file_format' specifies the version of the GRC yml format used in the file
+# and should usually not be changed.
+file_format: 1