summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_unpacked_to_packed_xx.block.yml
blob: 97c7af9e28a383155c298037329a0a954cfad697 (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_unpacked_to_packed_xx
label: Unpacked to Packed

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.unpacked_to_packed_${type.fcn}(${bits_per_chunk}, ${endianness})

file_format: 1