blob: 5c3ab76d4dd9dd82b23b8f02c12eec5173a692aa (
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
|
id: blocks_interleaved_short_to_complex
label: IShort To Complex
parameters:
- id: vector_input
label: Vector Input
dtype: enum
default: 'False'
options: ['False', 'True']
option_labels: ['No', 'Yes']
option_attributes:
vlen: ['1', '2']
hide: ${ 'part' if vlen == 1 else 'none' }
- id: swap
label: Swap
dtype: enum
default: 'False'
options: ['True', 'False']
option_labels: ['Yes', 'No']
hide: part
inputs:
- domain: stream
dtype: short
vlen: ${ vector_input.vlen }
outputs:
- domain: stream
dtype: complex
templates:
imports: from gnuradio import blocks
make: blocks.interleaved_short_to_complex(${vector_input}, ${swap})
callbacks:
- set_swap(${swap})
file_format: 1
|