#ifndef  __DRV_DAC_H__
#define  __DRV_DAC_H__


#define ADC_GETRESULT_6TIMES	(6u)
/*=== Return value. ===*/
#define ADC_R_ERR_TIMEOUT		( -1 )
#define ADC_R_ERR_NULL			( -2 )
#define ADC_R_ERR_CHNUM			( -3 )

enum
{
	adc_temperatrue_0 = ADC_CHANNEL_0,
	adc_temperatrue_1 = ADC_CHANNEL_1,
	adc_vbat = ADC_CHANNEL_5,

	adc_max
};


#define Mea_Temp_Enable(x)  gpio_bit_write(GPIOC,GPIO_PIN_3,(bit_status)(x))


int8_t Sample_ADC_Value(uint8_t channel,uint16_t *ADC1ConvertedValue);

int8_t adc_getResult_6t(unsigned char chNo, unsigned short* result);

//**************************************************Measure_Temprature********************************************************
void _Measure_Temprature_Initial(void);


//**************************************************vbat********************************************************
void _Measure_Vol_Initial(void);


#endif

