?? iirfilt.h
字號(hào):
/* ==================================================================
File name: IIRFILT.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing object definitions, proto type declaration and
default object initializers for IIR Filter.
===================================================================
History:
-------------------------------------------------------------------
5-2-2000 Release Rev 1.0
-------------------------------------------------------------------*/
#ifndef __IIRFILT_H__
#define __IIRFILT_H__
#define NULL 0
/*----------------------------------------------------------------
Define the structure of the IIR5BIQ16 Filter Module
-----------------------------------------------------------------*/
typedef struct {
int *coeff_ptr; /* Pointer to Filter coefficient */
int *dbuffer_ptr; /* Delay buffer ptr */
int nbiq; /* No of biquad */
int input; /* Latest Input sample */
int isf; /* Input Scale Factor */
int qfmat; /* Q format of coeff */
int output; /* Filter Output */
void (*init)(void *); /* Ptr to Init funtion */
void (*calc)(void *); /* Ptr to calc fn */
}IIR5BIQ16;
/*---------------------------------------------------------------
Define the structure of the IIR5BIQ32 Filter Module
-----------------------------------------------------------------*/
typedef struct {
int *coeff_ptr; /* Pointer to Filter coefficient */
int *dbuffer_ptr; /* Delay buffer ptr */
int nbiq; /* No of biquad */
int input; /* Latest Input sample */
int isf; /* Input Scale Factor */
int qfmat; /* Q format of coeff */
int output; /* Filter Output */
void (*init)(void *); /* Ptr to init fn */
void (*calc)(void *); /* Ptr to calc fn */
}IIR5BIQ32;
/*---------------------------------------------------------------
Define a Handles for the Filter Modules
-----------------------------------------------------------------*/
typedef IIR5BIQ16 *IIR5BIQ16_handle;
typedef IIR5BIQ32 *IIR5BIQ32_handle;
#define IIR5BIQ16_DEFAULTS { (int *)NULL, \
(int *)NULL, \
0, \
0, \
0, \
0, \
0, \
(void (*)(void *))IIR5BIQ16_init,\
(void (*)(void *))IIR5BIQ16_calc }
#define IIR5BIQ32_DEFAULTS { (int *)NULL, \
(int *)NULL, \
0, \
0, \
0, \
0, \
0, \
(void (*)(void *))IIR5BIQ32_init,\
(void (*)(void *))IIR5BIQ32_calc }
/*-------------------------------------------------------------
Prototypes for the functions
---------------------------------------------------------------*/
void IIR5BIQ16_calc(void *);
void IIR5BIQ32_calc(void *);
void IIR5BIQ16_init(IIR5BIQ16 *);
void IIR5BIQ32_init(IIR5BIQ32 *);
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -