id: satellites_grizu263a_deframer
label: Grizu-263A Deframer
category: '[Satellites]/Deframers'

parameters:
-   id: threshold
    label: Syncword threshold
    dtype: int
    default: 0
-   id: options
    label: Command line options
    dtype: string
    default: '""'
    hide: part

inputs:
-   domain: stream
    dtype: float

outputs:
-   domain: message
    id: out

templates:
    imports: import satellites.components.deframers
    make: satellites.components.deframers.grizu263a_deframer(syncword_threshold = ${threshold}, options=${options})

documentation: |-
    Deframes Grizu-263A packets

    This framing is based on Semtech SX1268 transceiver with PN9 scrambler, bit order swapping and a CRC-16.

    Input:
        A stream of soft symbols containing Reaktor Hello World packets

    Output:
        PDUs with the deframed Reaktor Hello World packets

    Parameters:
        Syncword threshold: number of bit errors to allow in syncword detection
        Command line options: options to pass down to the block, following the syntax of the gr_satellites command line tool

file_format: 1
