#ifndef _ADC_MEASUREMENT_TASK_H #define _ADC_MEASUREMENT_TASK_H #include #include #include "systick_device.h" #include #include #include "hwcfg.h" #define INVALID_PARAM (0x7FFFU) #define INVALID_VOLT (0x7FFFU) #define INVALID_TEMP (-127) /* * Get battery voltage in mV * @param [out] battVolt: 0-32678 * @return 0: get voltage success, other : failed */ int8_t MES_GetBatteryVolt(uint16_t *battVolt); /* * Get chip temperature in 1C * @param [out] chipTemperature: -127-127C * @return 0: get voltage success, other : failed */ int16_t MES_GetChipTemperature(int16_t *chipTemperature); /* * measurement Task handle * @return none */ void MES_TaskHandler(void); #endif