chargeController/APP/application/Src/chargControl.c

29 lines
414 B
C
Raw Normal View History

2024-12-06 09:38:25 +00:00
#include "chargControl.h"
#include "parameter.h"
#include "comm_types.h"
/**
* @brief
* @param
* @retval
*
*/
2024-12-06 09:38:25 +00:00
void chargControl(void)
{
// getCVData();
2024-12-06 09:38:25 +00:00
judgeYNBattery();
2024-12-06 13:23:28 +00:00
chargControlMode();
2024-12-06 09:38:25 +00:00
if (getMPPT_Mode() == noWork) {
2024-12-06 09:38:25 +00:00
return;
}
if (getBatteryState()) {
2024-12-06 09:38:25 +00:00
BatteryChargControl();
} else {
noBatteryChargControl();
}
}