filter.h

来自「在ccs编程环境下」· C头文件 代码 · 共 27 行

H
27
字号


typedef struct {  	_iq	x;				/* Input:Input of the low pass filter (PU) */
					_iq	Tc;				/* Parameter:Sampling period (PU) */
					_iq wc;				/* Parameter:Cut off frequency for low pass filter (PU) */
					_iq	y_old;			/* Variable:Output of the last cycle (PU) */
					_iq	y;				/* Output:Output of the low pass filter (PU) */
					void  (*calc)();	/* Po_iqer to calculation function */ 
				 } LPF;

typedef LPF *LPF_handle;

//-----------------------------------------------------------------------------*/                     
#define LPF_DEFAULTS {0,    /*  x  */  \
	                      0,    /*  Tc  */  \
	                      0,    /*  wc  */  \
	                      0,    /*  y_old */   \
	                      0,    /*  y  */ \
	                      (void (*)(long))lpf_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in TIME_LPF.C
------------------------------------------------------------------------------*/
void lpf_calc(LPF_handle);
/*******************************************************************************/


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?