BAIYI/HARDWARE/BAIYI/Err_Info_Process.h

65 lines
1008 B
C

#ifndef __ERRINFOPROCESS__H_
#define __ERRINFOPROCESS__H_
#include <sys.h>
#include <stdbool.h>
enum Fault
{
Nomal,
Fault
};
enum Fault_Level
{
Norma,
Fault_Level_1,
Fault_Level_2,
Fault_Level_3
};
enum Status
{
Yes,
No,
Invalid
};
enum Time
{
BMS_TIMEER,
Pile_TIMEER,
Timer_NUMber
};
enum Err
{
BMS_time_out_5S,
CDZ_time_out_5S,
Err_NUM
};
struct Err_Handl
{
uint32_t timer[Timer_NUMber];
bool error[Err_NUM];
};
extern struct Err_Handl Err_Handl;
void Print_Debug_Info(void);
void BMS_Time_Out_Handl(void);
void CDZ_Time_Out_Handl(void);
bool DCU_Time_Out_Handl(void);
enum Status VCU_Charge_Condition(void);
bool BMS_Charge_Condition(void);
bool REV_Pile_TimeOut(void);
bool VCU_Charging_Mode(void);
bool DCU_Fault_SelfTest(void);
bool Charging_Pile_Param(void);
bool Charging_Pile_Readly_TimeOut(void);
enum Status Send_BROAA_Condition(void);
void AC_DC_Adhesion_Detection(void);
bool CDZ_Charging_Condition(void);
void DCU_Internal_Failure();
void DCU_External_Failure();
#endif