DSP Run-Time Library Reference
cfir
complex finite impulse response filter
Synopsis
#include <filter.h>
void cfir_fr16(x,y,n,s)
const complex_fract16 x[];
complex_fract16 y[];
int n;
cfir_state_fr16 *s;
The function uses the following structure to maintain the state of the
filter.
typedef struct
{
int k;
complex_fract16 *h;
complex_fract16 *d;
complex_fract16 *p;
}
cfir_state_fr16;
Description
The
cfir_fr16
(CFIR) filter. It generates the filtered response of the complex input data
and stores the result in the complex output vector
The function maintains the filter state in the structured variable
must be declared and initialized before calling the function. The macro
, in the
cfir_init
ture and is defined as:
4-42
function implements a complex finite impulse response
header file, is available to initialize the struc-
filter.h
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
/* Input sample vector x
/* Output sample vector y
/* Number of input samples
/* Pointer to filter state
structure
/* Number of coefficients
/* Filter coefficients
/* Start of delay line
/* Read/write pointer
.
y
for ADSP-219x DSPs
*/
*/
*/
*/
*/
*/
*/
*/
x
, which
s
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers