各位大虾:
小弟最近在用NXP的cortex3内核的LPC1768做FSK的解码,需要用到FIR带通滤波。不过面对库中的函数不知如何下手。还请各位大虾帮忙
例程如下:
#define TESTSIZE 128
#define NTAPS 64
int pi_Input[TESTSIZE+NTAPS-1];
int pi_Output[TESTSIZE];
int pi_Coeffs[NTAPS];
void vF_dsplib_testbench_blockfir32(void)
{
int j;
tS_blockfir32_Coeff S_Coeff =
{
pi_Coeffs,
NTAPS
};
pi_Input[0] = 1;
pi_Coeffs[0] = 1;
pi_Input[32] = 1;
vF_dspl_blockfir32(pi_Output, pi_Input, &S_Coeff, TESTSIZE);
for(j=0;j<TESTSIZE;j++)
{
printf("%i, %i\n",j,pi_Output[j]);
}
}
int main(void) {
vF_dsplib_testbench_blockfir32();
// Enter an infinite loop, just incrementing a counter
volatile static int i = 0 ;
while(1) {
i++ ;
}
return 0 ;
}
请问,形参怎么设定滤波频率的? |