2024-12-07 09:52:46 +00:00
|
|
|
|
|
|
|
#ifndef BL_ABNORMAL_MANAGE_H_
|
|
|
|
#define BL_ABNORMAL_MANAGE_H_
|
|
|
|
|
|
|
|
#include "FM_TIM.h"
|
2024-12-14 09:52:26 +00:00
|
|
|
#include "comm_types.h"
|
|
|
|
#include "FM_GPIO.h"
|
2024-12-07 09:52:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-14 09:52:26 +00:00
|
|
|
BOOL getChargOverLoad(void);
|
2024-12-07 09:52:46 +00:00
|
|
|
|
2024-12-14 09:52:26 +00:00
|
|
|
uint8_t getShortCircuit(void);
|
|
|
|
void zeroShortCircuit(void);
|
|
|
|
void setShortCircuitFlag(BOOL state);
|
|
|
|
BOOL getShortCircuitFlag(void);
|
|
|
|
|
|
|
|
void zeroExcessiveLoad(void);
|
|
|
|
uint8_t getExcessiveLoad(void);
|
|
|
|
void setExcessiveLoadFlag(BOOL state);
|
|
|
|
BOOL getExcessiveLoadFlag(void);
|
2024-12-07 09:52:46 +00:00
|
|
|
|
2024-12-26 03:48:54 +00:00
|
|
|
void setSoftShortCircuit(uint16_t disChargCurrAdcNum);
|
|
|
|
|
2024-12-14 09:52:26 +00:00
|
|
|
void setPowerOutput(BOOL state);
|
|
|
|
|
|
|
|
void checkAbnormal(void);
|
2024-12-07 09:52:46 +00:00
|
|
|
|
2024-12-14 09:52:26 +00:00
|
|
|
void WORK_VOLT_Interrupt(void);
|
|
|
|
void DSG_PROT_Interrupt(void);
|
2024-12-07 09:52:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|