fftfilt_cccf

Variants: fftfilt_cccf, fftfilt_crcf, fftfilt_rrrf

Fast Fourier transform (FFT) finite impulse response filter

Public Functions

fftfilt_cccf fftfilt_cccf_create(float complex * _h, unsigned int _h_len, unsigned int _n)
fftfilt_cccf fftfilt_cccf_copy(fftfilt_cccf _q)
int fftfilt_cccf_destroy(fftfilt_cccf _q)
int fftfilt_cccf_reset(fftfilt_cccf _q)
int fftfilt_cccf_print(fftfilt_cccf _q)
int fftfilt_cccf_set_scale(fftfilt_cccf _q, float complex _scale)
int fftfilt_cccf_get_scale(fftfilt_cccf _q, float complex * _scale)
int fftfilt_cccf_execute(fftfilt_cccf _q, float complex * _x, float complex * _y)
unsigned int fftfilt_cccf_get_length(fftfilt_cccf _q)

Interfaces

fftfilt_cccf fftfilt_cccf_create(float complex * _h, unsigned int _h_len, unsigned int _n)

Create FFT-based FIR filter using external coefficients

  • _h : filter coefficients, shape: (_h_len, 1)
  • _h_len : filter length, 0 < _h_len
  • _n : block size = nfft/2, _h_len-1 <= _n

fftfilt_cccf fftfilt_cccf_copy(fftfilt_cccf _q)

Copy object including all internal objects and state

int fftfilt_cccf_destroy(fftfilt_cccf _q)

Destroy filter object and free all internal memory

int fftfilt_cccf_reset(fftfilt_cccf _q)

Reset filter object's internal buffer

int fftfilt_cccf_print(fftfilt_cccf _q)

Print filter object information to stdout

int fftfilt_cccf_set_scale(fftfilt_cccf _q, float complex _scale)

Set output scaling for filter

  • _q :
  • _scale :

int fftfilt_cccf_get_scale(fftfilt_cccf _q, float complex * _scale)

Get output scaling for filter

  • _q :
  • _scale :

int fftfilt_cccf_execute(fftfilt_cccf _q, float complex * _x, float complex * _y)

Execute the filter on internal buffer and coefficients given a block of input samples; in-place operation is permitted (_x and _y may point to the same place in memory)

  • _q : filter object
  • _x : pointer to input data array, shape: (_n, 1)
  • _y : pointer to output data array, shape: (_n, 1)

unsigned int fftfilt_cccf_get_length(fftfilt_cccf _q)

Get length of filter object's internal coefficients