test.c
来自「dsp的函数库」· C语言 代码 · 共 40 行
C
40 行
#include "..\include\c54fir.h"
#include "test.dat"
void main()
{
dptr=p;
/* clear delay buffer */
p[ 0]=p[ 1]=p[ 2]=p[ 3]=p[ 4]=p[ 5]=p[ 6]=p[ 7]=0;
p[ 8]=p[ 9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0;
x[0] = 0x3000; x[1] = 0x3000;
oflag = cfir( x, y, x, &dptr, 8, 1);
x[0] = 0x2000; x[1] = 0x2000;
oflag = cfir( x, y, x, &dptr, 8, 1);
x[0] = 0x1000; x[1] = 0x1000;
oflag = cfir( x, y, x, &dptr, 8, 1);
x[0] = 0x0000; x[1] = 0x0000;
oflag = cfir( x, y, x, &dptr, 8, 1);
x[0] = 0xf000; x[1] = 0xf000;
oflag = cfir( x, y, x, &dptr, 8, 1);
x[0] = 0xe000; x[1] = 0xe000;
oflag = cfir( x, y, x, &dptr, 8, 1);
p[ 0]=p[ 1]=p[ 2]=p[ 3]=p[ 4]=p[ 5]=p[ 6]=p[ 7]=0;
p[ 8]=p[ 9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0;
x[0] = x[1] = 0x3000;
oflag = cfir( x, y, x, &dptr, 8, 16);
for(;;){}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?