/** ****************************************************************************** * @file stm8l15x_adc.h * @author MCD Application Team * @version V1.6.1 * @date 30-September-2014 * @brief This file contains all the functions prototypes for the ADC * firmware library. ****************************************************************************** * @attention * *

© COPYRIGHT 2014 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM8L15x_ADC_H #define __STM8L15x_ADC_H /* Includes ------------------------------------------------------------------*/ #include "stm8l15x.h" /** @addtogroup STM8L15x_StdPeriph_Driver * @{ */ /** @addtogroup ADC * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup ADC_Exported_Types * @{ */ /** @defgroup ADC_Channels * @{ */ typedef enum { ADC_Channel_0 = ((uint16_t)0x0301), /*!< Channel 00 */ ADC_Channel_1 = ((uint16_t)0x0302), /*!< Channel 01 */ ADC_Channel_2 = ((uint16_t)0x0304), /*!< Channel 02 */ ADC_Channel_3 = ((uint16_t)0x0308), /*!< Channel 03 */ ADC_Channel_4 = ((uint16_t)0x0310), /*!< Channel 04 */ ADC_Channel_5 = ((uint16_t)0x0320), /*!< Channel 05 */ ADC_Channel_6 = ((uint16_t)0x0340), /*!< Channel 06 */ ADC_Channel_7 = ((uint16_t)0x0380), /*!< Channel 07 */ ADC_Channel_8 = ((uint16_t)0x0201), /*!< Channel 08 */ ADC_Channel_9 = ((uint16_t)0x0202), /*!< Channel 09 */ ADC_Channel_10 = ((uint16_t)0x0204), /*!< Channel 10 */ ADC_Channel_11 = ((uint16_t)0x0208), /*!< Channel 11 */ ADC_Channel_12 = ((uint16_t)0x0210), /*!< Channel 12 */ ADC_Channel_13 = ((uint16_t)0x0220), /*!< Channel 13 */ ADC_Channel_14 = ((uint16_t)0x0240), /*!< Channel 14 */ ADC_Channel_15 = ((uint16_t)0x0280), /*!< Channel 15 */ ADC_Channel_16 = ((uint16_t)0x0101), /*!< Channel 16 */ ADC_Channel_17 = ((uint16_t)0x0102), /*!< Channel 17 */ ADC_Channel_18 = ((uint16_t)0x0104), /*!< Channel 18 */ ADC_Channel_19 = ((uint16_t)0x0108), /*!< Channel 19 */ ADC_Channel_20 = ((uint16_t)0x0110), /*!< Channel 20 */ ADC_Channel_21 = ((uint16_t)0x0120), /*!< Channel 21 */ ADC_Channel_22 = ((uint16_t)0x0140), /*!< Channel 22 */ ADC_Channel_23 = ((uint16_t)0x0180), /*!< Channel 23 */ ADC_Channel_24 = ((uint16_t)0x0001), /*!< Channel 24 */ ADC_Channel_25 = ((uint16_t)0x0002), /*!< Channel 25 */ ADC_Channel_26 = ((uint16_t)0x0004), /*!< Channel 26 */ ADC_Channel_27 = ((uint16_t)0x0008), /*!< Channel 27 */ ADC_Channel_Vrefint = ((uint16_t)0x0010), /*!< Vrefint Channel */ ADC_Channel_TempSensor = ((uint16_t)0x0020), /*!< Temperature sensor Channel */ /* combination*/ ADC_Channel_00To07 = ((uint16_t)0x03FF), /*!