# auto-generated by grc.converter

id: filter_fft_low_pass_filter
label: FFT Low Pass Filter
category: '[Core]/Filters'

parameters:
-   id: type
    label: Type
    dtype: enum
    options: [ccc, ccf, fff]
    option_labels: [Complex->Complex (Complex Taps), Complex->Complex (Real Taps),
        Float->Float (Real Taps)]
    option_attributes:
        input: [complex, complex, float]
        output: [complex, complex, float]
        taps: [complex_vector, float_vector, float_vector]
    hide: part
-   id: decim
    label: Decimation
    dtype: int
    default: '1'
-   id: gain
    label: Gain
    dtype: real
    default: '1'
-   id: samp_rate
    label: Sample Rate
    dtype: real
    default: samp_rate
-   id: cutoff_freq
    label: Cutoff Freq
    dtype: real
-   id: width
    label: Transition Width
    dtype: real
-   id: win
    label: Window
    dtype: raw
    default: window.WIN_HAMMING
    options: [window.WIN_HAMMING, window.WIN_HANN, window.WIN_BLACKMAN, window.WIN_RECTANGULAR,
        window.WIN_KAISER]
    option_labels: [Hamming, Hann, Blackman, Rectangular, Kaiser]
-   id: beta
    label: Beta
    dtype: real
    default: '6.76'
-   id: nthreads
    label: Num. Threads
    dtype: int
    default: '1'

inputs:
-   domain: stream
    dtype: ${ type.input }

outputs:
-   domain: stream
    dtype: ${ type.output }

templates:
    imports: |-
        from gnuradio import filter
        from gnuradio.filter import firdes
    make: filter.fft_filter_${type}(${decim}, firdes.low_pass(${gain}, ${samp_rate},
        ${cutoff_freq}, ${width}, ${win}, ${beta}), ${nthreads})
    callbacks:
    - set_taps(firdes.low_pass(${gain}, ${samp_rate}, ${cutoff_freq}, ${width}, ${win},
        ${beta}))
    - set_nthreads(${nthreads})

documentation: |-
    This filter is a convenience wrapper for an FFT-based low-pass filter.

    Sample rate, cutoff frequency, and transition width are in Hertz.

    The beta parameter only applies to the Kaiser window.

file_format: 1
