summaryrefslogtreecommitdiff
path: root/gr-fec/grc/fec_encoder.block.yml
blob: f530d806dcb2d118f0c452d344cacdbb8ca1c84d (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
id: fec_generic_encoder
label: FEC Encoder

parameters:
-   id: encoder
    label: Constituent Encoder
    dtype: raw
    default: encoder_variable
-   id: itype
    label: Input Type
    dtype: enum
    options: [complex, float, int, short, byte]
    option_attributes:
        size: [gr.sizeof_gr_complex, gr.sizeof_float, gr.sizeof_int, gr.sizeof_short,
            gr.sizeof_char]
    hide: part
-   id: otype
    label: Output Type
    dtype: enum
    options: [complex, float, int, short, byte]
    option_attributes:
        size: [gr.sizeof_gr_complex, gr.sizeof_float, gr.sizeof_int, gr.sizeof_short,
            gr.sizeof_char]
    hide: part

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

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

templates:
    imports: from gnuradio import fec
    make: fec.encoder(${encoder}, ${itype.size}, ${otype.size})

documentation: |-
    This is a GNU Radio adaptor for any FEC encoder following the generic_encoder API in the fec module. Input and output are flexible to accomodate encoders that, say, modulate their encoded results into complex or float types.

file_format: 1