/*****
* adc reference voltage
*/
typedef enum{
ADC_REF_VOL_1V3 = 0x00, //!< ADC Reference:1.3v
ADC_REF_VOL_AVDD = 0x01, //!< ADC Reference:AVDD
} ADC_REFVOL_t;
/*****
* @brief init adc module. such as adc clock, input channel, resolution, reference voltage and so on.
* notice: adc clock: when the reference voltage is AVDD, the adc clock must be lower than 5Mhz.
* when the reference voltage is 1.4, the adc clock must be lower than 4Mhz.
* @param[in] adc_clock - enum ADC_CLK_t, set adc clock.
* @param[in] chn - enum ADC_INPUTCHN_t ,acd channel
* @param[in] mode - enum ADC_INPUTMODE_t
* @param[in] ref_vol - enum ADC_REFVOL_t, adc reference voltage.
* @param[in] resolution - enum ADC_RESOLUTION_t
* @param[in] sample_cycle - enum ADC_SAMPCYC_t
* @return none
*/
void adc_Init(ADC_CLK_t adc_clock,ADC_INPUTCHN_t chn,ADC_INPUTMODE_t mode,ADC_REFVOL_t ref_vol,\
ADC_RESOLUTION_t resolution,ADC_SAMPCYC_t sample_cycle);