id: satellites_kiss_file_sink
label: KISS File Sink
category: '[Satellites]/Data sinks'

parameters:
-   id: file
    label: File
    dtype: file_save
-   id: append
    label: Append file
    dtype: bool
    default: 'False'
    options: ['True', 'False']
    option_labels: [Append, Overwrite]
-   id: options
    label: Command line options
    dtype: string
    default: '""'
    hide: part

inputs:
-   domain: message
    id: in

templates:
    imports: import satellites.components.datasinks
    make: satellites.components.datasinks.kiss_file_sink(${file}, append = ${append}, options=${options})

documentation: |-
    Saves PDUs to a file using the KISS protocol/format

    Input:
        PDUs with packets

    Parameters:
        File: path of the output file
        Append file: selects whether the output file should be overwritten or appended to
        Command line options: options to pass down to the block, following the syntax of the gr_satellites command line tool

file_format: 1
