ZD-BMS-CH/ZDBMS/BMS_MC/app/inc/app.h

37 lines
744 B
C
Raw Normal View History

2025-03-15 01:41:28 +00:00
/*
* app.h
*
* Created on: 2025<EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>24<EFBFBD><EFBFBD>
* Author: Cerlink
*/
#ifndef APP_INC_APP_H_
#define APP_INC_APP_H_
#include "ch32l103_conf.h"
#include "../../app/inc/chgContrl.h"
#include "../../app/inc/convert.h"
#include "../../app/inc/timeIT.h"
/*
* <EFBFBD><EFBFBD><EFBFBD>ŵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
void CHG_Enable(uint8_t CHG_status); //<2F><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>
void DCHG_Enable(uint8_t DCHG_status); //<2F>ŵ<EFBFBD>ʹ<EFBFBD><CAB9>
/*
* <EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
extern volatile uint8_t g_timer1SFlag; //1S<31><53>ʱ<EFBFBD><CAB1>־
extern volatile uint8_t g_timer50MsFlag; //20Ms<4D><73>ʱ<EFBFBD><CAB1>־
/*
* ADCת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
void convert_Temp(uint16_t *Tmp1, uint16_t *Tmp2, uint16_t *Tmp3); //<2F><EFBFBD>ת<EFBFBD><D7AA>
void convert_Current(uint16_t *Current_DSG, uint16_t *Current_CHG); //<2F><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
#endif /* APP_INC_APP_H_ */