summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_endian_swap.block.yml
blob: da2ef0c37972acf67506ad213a401a9ba5a1074b (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
id: blocks_endian_swap
label: Endian Swap

parameters:
-   id: type
    label: IO Type
    dtype: enum
    options: [complex, s32, s16]
    option_labels: [Complex, Int, Short]
    option_attributes:
        size: ['8', '4', '2']
    hide: part

inputs:
-   domain: stream
    dtype: ${ type }

outputs:
-   domain: stream
    dtype: ${ type }

templates:
    imports: from gnuradio import blocks
    make: blocks.endian_swap(${type.size})

file_format: 1