blob: 5d49d1851ca19b34d7b04c2af94782bec2d52f42 (
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
|
id: blocks_packed_to_unpacked_xx
label: Packed to Unpacked
parameters:
- id: type
label: Type
dtype: enum
options: [int, short, byte]
option_attributes:
fcn: [ii, ss, bb]
hide: part
- id: bits_per_chunk
label: Bits per Chunk
dtype: int
default: '2'
- id: endianness
label: Endianness
dtype: int
options: [gr.GR_MSB_FIRST, gr.GR_LSB_FIRST]
option_labels: [MSB, LSB]
- id: num_ports
label: Num Ports
dtype: int
default: '1'
hide: part
inputs:
- domain: stream
dtype: ${ type }
multiplicity: ${ num_ports }
outputs:
- domain: stream
dtype: ${ type }
multiplicity: ${ num_ports }
asserts:
- ${ num_ports > 0 }
templates:
imports: from gnuradio import blocks
make: blocks.packed_to_unpacked_${type.fcn}(${bits_per_chunk}, ${endianness})
file_format: 1
|