/**************************************************************************** Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED. This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT be copied by any method or incorporated into another program without the express written consent of Aerospace C.Power. This Information or any portion thereof remains the property of Aerospace C.Power. The Information contained herein is believed to be accurate and Aerospace C.Power assumes no responsibility or liability for its use in any way and conveys no license or title under any patent or copyright and makes no representation or warranty that this Information is free from patent or copyright infringement. ****************************************************************************/ #ifndef IOT_ADC_API_H #define IOT_ADC_API_H #ifdef __cplusplus extern "C" { #endif #include "iot_errno_api.h" /** \defgroup MISC_APIs MISC APIs * @brief MISC APIs * * */ /** @addtogroup MISC_APIs * @{ * */ /** * @brief ADC channel. */ typedef enum { ADC_CHANNEL0 = 0, ADC_CHANNEL1 = 1, ADC_CHANNEL2 = 2, ADC_CHANNEL3 = 3, ADC_CHANNEL4 = 4, ADC_CHANNEL5 = 5, ADC_CHANNEL2_3 = 6, ADC_CHANNEL0_1 = 7, ADC_CHANNEL6 = 8, ADC_CHANNEL7 = 9, ADC_CHANNEL4_5 = 10, ADC_CHANNEL6_7 = 11, ADC1_CHANNEL0 = 12, ADC1_CHANNEL1 = 13, ADC1_CHANNEL2 = 14, ADC1_CHANNEL3 = 15, ADC1_CHANNEL4 = 16, ADC1_CHANNEL5 = 17, ADC1_CHANNEL0_1 = 18, ADC1_CHANNEL2_3 = 19, ADC1_CHANNEL4_5 = 20, ADC_CHANNEL_INVALID = 0xff, } ADC_CHANNEL; /** * @brief ADC ACC, the num(1<