📄 fir_test.c
字号:
/****************************************************************************
Copyright (c) 2000 Analog Devices Inc. All rights reserved.
***************************************************************************
File Name : fir_test.c
Description : This module tests the fir function.
***************************************************************************/
/* Includes */
#include "mds_def.h"
#include "filter.h"
#include "fir_coeff.h"
#include "fir_input.h"
/* Constants */
#define DELAY_SIZE BASE_TAPLENGTH
fract16 delay[DELAY_SIZE];
fract16 OUT[BUFFER_SIZE];
void main()
{
int i,
nsamples,
tapLength;
fir_state_fr16 s;
nsamples = BUFFER_SIZE;
tapLength = BASE_TAPLENGTH ;
fir_init(s, h, delay, tapLength);
_fir(IN, OUT, nsamples, &s);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -