id: satellites_mobitex_deframer
label: Mobitex Deframer
category: '[Satellites]/Deframers'

parameters:
-   id: nx
    label: Use Mobitex-NX
    dtype: bool
    default: 'False'
    options: ['True', 'False']
-   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.mobitex_deframer(${nx}, options=${options})

documentation: |-
    Deframes Mobitex or Mobitex-NX packets

    This block performs frame synchronization, FEC, descrambling and deinterleaving as required by the Mobitex protocol

    Input:
        A stream of soft symbols containing Mobitex packets

    Output:
        PDUs with the deframed Mobitex packets

    Parameters:
        Use Mobitex-NX: Use Mobitex-NX mode instead of Mobitex
        Command line options: options to pass down to the block, following the syntax of the gr_satellites command line tool

file_format: 1
