mppt/App/inc/collect_Conversion.h

34 lines
743 B
C
Raw Permalink Normal View History

2024-07-11 06:58:55 +00:00
/*
* collect_Conversion.h
*
* Created on: 2024<EFBFBD><EFBFBD>6<EFBFBD><EFBFBD>21<EFBFBD><EFBFBD>
* Author: psx
*/
#ifndef APP_INC_COLLECT_CONVERSION_H_
#define APP_INC_COLLECT_CONVERSION_H_
#include "debug.h"
#include "adc.h"
#include "ring_queue2.h"
#define adcBuffSize 100
typedef struct _ADC_DATA{
RingQueue2 RQCHG_CURR;
RingQueue2 RQDSG_CURR;
int32_t total_CHG_CURR; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>adc֮<63><D6AE> */
int32_t total_DSG_CURR; /* <20>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD>adc֮<63><D6AE> */
}ADC_DATA;
extern ADC_DATA g_adcData;
2024-07-11 06:58:55 +00:00
float get_CHG_CURR(void);
float get_PV_VOLT_OUT(void);
float get_DSG_CURR(void);
float get_PV1_VOLT_IN(void);
float get_PV_VOLT_IN1(void);
float get_MOSFET_Temper(void);
float get_PV2_VOLT_IN(void);
void currBuffInit(void);
2024-07-11 06:58:55 +00:00
#endif /* APP_INC_COLLECT_CONVERSION_H_ */