id: satellites_light1_deframer
label: Light-1 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.reaktor_hello_world_deframer(syncword_threshold=${threshold}, syncword='light-1', options=${options})

documentation: |-
    Deframes Light-1 packets

    The frames are transmitted by a Texas Intruments CC1125 transceiver with a PN9 scrambler and a CRC-16

    Input:
        A stream of soft symbols containing Light-1

    Output:
        PDUs with the deframed Light-1

    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
