/*----------------------------------------------------------------
Define the structure of the FIRFILT_GEN Filter Module
-----------------------------------------------------------------*/
typedef struct {
long *coeff_ptr; /* Pointer to Filter coefficient */
long * dbuffer_ptr;/* Delay buffer ptr */
int cbindex; /* Circular Buffer Index */
int order; /* Order of the Filter */
int input; /* Latest Input sample */
int output; /* Filter Output */
void (*init)(void *); /* Ptr to Init funtion */
void (*calc)(void *); /* Ptr to calc fn */
}FIR16;
里面的FIR16模块怎么输入输出都是一单个int型数,好奇怪。都应该是等长数组才对啊。起码也该有个数据指针阿?
哪位高人做过请指点迷津