mppt/Hardware/inc/adc.h

37 lines
1.3 KiB
C
Raw Normal View History

2024-07-11 06:58:55 +00:00
#ifndef __ADC_H
#define __ADC_H
#include "ch32l103.h"
2024-10-08 07:18:44 +00:00
//typedef struct _ADC_DATA {
// uint16_t total_CHG_CURR; /* һ<><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD>adc<64>ɼ<EFBFBD><C9BC><EFBFBD>ֵ֮<D6B5><D6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
// uint16_t num_CHG_CURR; /* һ<><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD>adc<64>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD><D6AE> */
// uint16_t total_PV_VOLT_OUT; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ */
// uint16_t num_PV_VOLT_OUT;
// uint16_t total_DSG_CURR; /* <20>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD> */
// uint16_t num_DSG_CURR;
// uint16_t total_PV1_VOLT_IN; /* ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ */
// uint16_t num_PV1_VOLT_IN;
// uint16_t total_PV_VOLT_IN1; /* ̫<><CCAB><EFBFBD>ܰ<EFBFBD><DCB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ */
// uint16_t num_PV_VOLT_IN1;
// uint16_t total_MOSFET_Temper; /* mos<6F><73><EFBFBD><EFBFBD> */
// uint16_t num_MOSFET_Temper;
//}ADC_DATA;
typedef struct _ADC_DATA {
uint16_t num; /* һ<><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD>adc<64>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD><D6AE> */
uint16_t total_CHG_CURR; /* һ<><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD>adc<64>ɼ<EFBFBD><C9BC><EFBFBD>ֵ֮<D6B5><D6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
uint16_t total_PV_VOLT_OUT; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ */
uint16_t total_DSG_CURR; /* <20>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD> */
uint16_t total_PV1_VOLT_IN; /* ̫<><CCAB><EFBFBD>ܰ<EFBFBD><DCB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ */
uint16_t total_PV_VOLT_IN1; /* ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ */
uint16_t total_MOSFET_Temper; /* mos<6F><73><EFBFBD><EFBFBD> */
}ADC_DATA;
extern ADC_DATA g_adcData;
2024-07-11 06:58:55 +00:00
extern int16_t Calibrattion_Val;
void ADC_all_Init(void);
2024-10-08 07:18:44 +00:00
void ADC_TIM_DMA_Init(void);
2024-07-11 06:58:55 +00:00
#endif