b61c21c648
Signed-off-by: lidun <1084178170@qq.com>
43 lines
844 B
C
43 lines
844 B
C
#ifndef _Filtering_H__
|
|
|
|
#define _Filtering_H__
|
|
|
|
#include <sys.h>
|
|
|
|
enum INTPUT_VOLT_CURR_STATE
|
|
{
|
|
Null,
|
|
Over_Volt,
|
|
Under_Volt,
|
|
Over_Curr,
|
|
};
|
|
|
|
enum Continuous_filtering
|
|
{
|
|
GUNFlag,
|
|
CC2_R_Filter,
|
|
INTPUT_VOLT_Filter,
|
|
INTPUT_CURR_Filter,
|
|
DC_Back_Check_Filter,
|
|
AC_Back_Check_Filter,
|
|
HV_DSG_CHECJ_Filter,
|
|
HV_DSG_CHECJ_2_Filter,
|
|
Charging_Pile_Input_Current_Filter,
|
|
OncConSt_Status_Filter,
|
|
Continuous_filtering_NUM
|
|
};
|
|
struct parameters
|
|
{
|
|
uint16_t Filter_NUM;//滤波数
|
|
uint8_t Filter_Count;//现在的计数
|
|
uint8_t Current_value;
|
|
uint8_t Latter_value;
|
|
uint8_t (*filter_Funtion)(void* param);
|
|
};
|
|
extern struct parameters ContinuousFiltering[Continuous_filtering_NUM];
|
|
|
|
void Filter_INIT(void);
|
|
uint8_t FilteringScan(struct parameters* self,void* param);
|
|
|
|
#endif
|