37 lines
744 B
C
37 lines
744 B
C
/*
|
|
* app.h
|
|
*
|
|
* Created on: 2025年2月24日
|
|
* 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"
|
|
|
|
/*
|
|
* 充放电相关
|
|
*/
|
|
void CHG_Enable(uint8_t CHG_status); //充电使能
|
|
void DCHG_Enable(uint8_t DCHG_status); //放电使能
|
|
|
|
/*
|
|
* 定时器相关
|
|
*/
|
|
extern volatile uint8_t g_timer1SFlag; //1S定时标志
|
|
extern volatile uint8_t g_timer50MsFlag; //20Ms定时标志
|
|
|
|
/*
|
|
* ADC转换相关
|
|
*/
|
|
void convert_Temp(uint16_t *Tmp1, uint16_t *Tmp2, uint16_t *Tmp3); //温度转换
|
|
void convert_Current(uint16_t *Current_DSG, uint16_t *Current_CHG); //电流转换
|
|
|
|
|
|
#endif /* APP_INC_APP_H_ */
|