id: satellites_kiss_file_source
label: KISS File Source
category: '[Satellites]/Data sources'

parameters:
-   id: file
    label: File
    dtype: file_open
-   id: options
    label: Command line options
    dtype: string
    default: '""'
    hide: part

outputs:
-   domain: message
    id: out

templates:
    imports: import satellites.components.datasources
    make: satellites.components.datasources.kiss_file_source(${file}, options=${options})

documentation: |-
    Reads a file in KISS format, outputing PDUs

    Output:
        The frames stored in the KISS file, as PDUs

    Parameters:
         File: the file to read from
        Command line options: options to pass down to the block, following the syntax of the gr_satellites command line tool

file_format: 1
