aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/grc/fadingui_datasource.block.yml
blob: 5f34591089bcb055b3fc8cae9c0792f66e20802f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
id: fadingui_datasource
label: UI Framed Data Source 
category: '[fadingui]'

templates:
  imports: import fadingui
  make: fadingui.datasource(vec_len=${vec_len}, header_len=${header_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: 501

- id: header_len
  label: Header length
  dtype: int
  default: 11

- 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 + header_len }

#  'file_format' specifies the version of the GRC yml format used in the file
#  and should usually not be changed.
file_format: 1