The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_NUCLEO_F302R8/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_adc.h@136:ef9c61f8c49f, 2017-02-14 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 14 11:24:20 2017 +0000
- Revision:
- 136:ef9c61f8c49f
- Parent:
- 135:176b8275d35d
Release 136 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 86:04dd9b1680ae | 1 | /** |
bogdanm | 86:04dd9b1680ae | 2 | ****************************************************************************** |
bogdanm | 86:04dd9b1680ae | 3 | * @file stm32f3xx_hal_adc.h |
bogdanm | 86:04dd9b1680ae | 4 | * @author MCD Application Team |
<> | 135:176b8275d35d | 5 | * @version V1.4.0 |
<> | 135:176b8275d35d | 6 | * @date 16-December-2016 |
bogdanm | 86:04dd9b1680ae | 7 | * @brief Header file containing functions prototypes of ADC HAL library. |
bogdanm | 86:04dd9b1680ae | 8 | ****************************************************************************** |
bogdanm | 86:04dd9b1680ae | 9 | * @attention |
bogdanm | 86:04dd9b1680ae | 10 | * |
Kojto | 122:f9eeca106725 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
bogdanm | 86:04dd9b1680ae | 12 | * |
bogdanm | 86:04dd9b1680ae | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bogdanm | 86:04dd9b1680ae | 14 | * are permitted provided that the following conditions are met: |
bogdanm | 86:04dd9b1680ae | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 86:04dd9b1680ae | 16 | * this list of conditions and the following disclaimer. |
bogdanm | 86:04dd9b1680ae | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 86:04dd9b1680ae | 18 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 86:04dd9b1680ae | 19 | * and/or other materials provided with the distribution. |
bogdanm | 86:04dd9b1680ae | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bogdanm | 86:04dd9b1680ae | 21 | * may be used to endorse or promote products derived from this software |
bogdanm | 86:04dd9b1680ae | 22 | * without specific prior written permission. |
bogdanm | 86:04dd9b1680ae | 23 | * |
bogdanm | 86:04dd9b1680ae | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 86:04dd9b1680ae | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 86:04dd9b1680ae | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 86:04dd9b1680ae | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 86:04dd9b1680ae | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 86:04dd9b1680ae | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 86:04dd9b1680ae | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 86:04dd9b1680ae | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 86:04dd9b1680ae | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 86:04dd9b1680ae | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 86:04dd9b1680ae | 34 | * |
bogdanm | 86:04dd9b1680ae | 35 | ****************************************************************************** |
bogdanm | 86:04dd9b1680ae | 36 | */ |
bogdanm | 86:04dd9b1680ae | 37 | |
bogdanm | 86:04dd9b1680ae | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bogdanm | 86:04dd9b1680ae | 39 | #ifndef __STM32F3xx_ADC_H |
bogdanm | 86:04dd9b1680ae | 40 | #define __STM32F3xx_ADC_H |
bogdanm | 86:04dd9b1680ae | 41 | |
bogdanm | 86:04dd9b1680ae | 42 | #ifdef __cplusplus |
bogdanm | 86:04dd9b1680ae | 43 | extern "C" { |
bogdanm | 86:04dd9b1680ae | 44 | #endif |
bogdanm | 86:04dd9b1680ae | 45 | |
bogdanm | 86:04dd9b1680ae | 46 | /* Includes ------------------------------------------------------------------*/ |
bogdanm | 86:04dd9b1680ae | 47 | #include "stm32f3xx_hal_def.h" |
Kojto | 122:f9eeca106725 | 48 | |
Kojto | 122:f9eeca106725 | 49 | /* Include ADC HAL Extended module */ |
Kojto | 122:f9eeca106725 | 50 | /* (include on top of file since ADC structures are defined in extended file) */ |
bogdanm | 86:04dd9b1680ae | 51 | #include "stm32f3xx_hal_adc_ex.h" |
bogdanm | 86:04dd9b1680ae | 52 | |
bogdanm | 86:04dd9b1680ae | 53 | /** @addtogroup STM32F3xx_HAL_Driver |
bogdanm | 86:04dd9b1680ae | 54 | * @{ |
bogdanm | 86:04dd9b1680ae | 55 | */ |
bogdanm | 86:04dd9b1680ae | 56 | |
bogdanm | 86:04dd9b1680ae | 57 | /** @addtogroup ADC |
bogdanm | 86:04dd9b1680ae | 58 | * @{ |
bogdanm | 86:04dd9b1680ae | 59 | */ |
bogdanm | 86:04dd9b1680ae | 60 | |
bogdanm | 86:04dd9b1680ae | 61 | /* Exported types ------------------------------------------------------------*/ |
bogdanm | 92:4fc01daae5a5 | 62 | /** @defgroup ADC_Exported_Types ADC Exported Types |
bogdanm | 92:4fc01daae5a5 | 63 | * @{ |
Kojto | 122:f9eeca106725 | 64 | */ |
bogdanm | 86:04dd9b1680ae | 65 | /** |
Kojto | 122:f9eeca106725 | 66 | * @brief HAL ADC state machine: ADC states definition (bitfields) |
Kojto | 122:f9eeca106725 | 67 | * @note ADC state machine is managed by bitfields, state must be compared |
Kojto | 122:f9eeca106725 | 68 | * with bit by bit. |
Kojto | 122:f9eeca106725 | 69 | * For example: |
Kojto | 122:f9eeca106725 | 70 | * " if (HAL_IS_BIT_SET(HAL_ADC_GetState(hadc1), HAL_ADC_STATE_REG_BUSY)) " |
Kojto | 122:f9eeca106725 | 71 | * " if (HAL_IS_BIT_SET(HAL_ADC_GetState(hadc1), HAL_ADC_STATE_AWD1) ) " |
Kojto | 122:f9eeca106725 | 72 | */ |
Kojto | 122:f9eeca106725 | 73 | /* States of ADC global scope */ |
<> | 135:176b8275d35d | 74 | #define HAL_ADC_STATE_RESET (0x00000000U) /*!< ADC not yet initialized or disabled */ |
<> | 135:176b8275d35d | 75 | #define HAL_ADC_STATE_READY (0x00000001U) /*!< ADC peripheral ready for use */ |
<> | 135:176b8275d35d | 76 | #define HAL_ADC_STATE_BUSY_INTERNAL (0x00000002U) /*!< ADC is busy to internal process (initialization, calibration) */ |
<> | 135:176b8275d35d | 77 | #define HAL_ADC_STATE_TIMEOUT (0x00000004U) /*!< TimeOut occurrence */ |
Kojto | 122:f9eeca106725 | 78 | |
Kojto | 122:f9eeca106725 | 79 | /* States of ADC errors */ |
<> | 135:176b8275d35d | 80 | #define HAL_ADC_STATE_ERROR_INTERNAL (0x00000010U) /*!< Internal error occurrence */ |
<> | 135:176b8275d35d | 81 | #define HAL_ADC_STATE_ERROR_CONFIG (0x00000020U) /*!< Configuration error occurrence */ |
<> | 135:176b8275d35d | 82 | #define HAL_ADC_STATE_ERROR_DMA (0x00000040U) /*!< DMA error occurrence */ |
Kojto | 122:f9eeca106725 | 83 | |
Kojto | 122:f9eeca106725 | 84 | /* States of ADC group regular */ |
<> | 135:176b8275d35d | 85 | #define HAL_ADC_STATE_REG_BUSY (0x00000100U) /*!< A conversion on group regular is ongoing or can occur (either by continuous mode, |
Kojto | 122:f9eeca106725 | 86 | external trigger, low power auto power-on, multimode ADC master control) */ |
<> | 135:176b8275d35d | 87 | #define HAL_ADC_STATE_REG_EOC (0x00000200U) /*!< Conversion data available on group regular */ |
<> | 135:176b8275d35d | 88 | #define HAL_ADC_STATE_REG_OVR (0x00000400U) /*!< Overrun occurrence */ |
<> | 135:176b8275d35d | 89 | #define HAL_ADC_STATE_REG_EOSMP (0x00000800U) /*!< End Of Sampling flag raised */ |
Kojto | 122:f9eeca106725 | 90 | |
Kojto | 122:f9eeca106725 | 91 | /* States of ADC group injected */ |
<> | 135:176b8275d35d | 92 | #define HAL_ADC_STATE_INJ_BUSY (0x00001000U) /*!< A conversion on group injected is ongoing or can occur (either by auto-injection mode, |
Kojto | 122:f9eeca106725 | 93 | external trigger, low power auto power-on, multimode ADC master control) */ |
<> | 135:176b8275d35d | 94 | #define HAL_ADC_STATE_INJ_EOC (0x00002000U) /*!< Conversion data available on group injected */ |
<> | 135:176b8275d35d | 95 | #define HAL_ADC_STATE_INJ_JQOVF (0x00004000U) /*!< Injected queue overflow occurrence */ |
Kojto | 122:f9eeca106725 | 96 | |
Kojto | 122:f9eeca106725 | 97 | /* States of ADC analog watchdogs */ |
<> | 135:176b8275d35d | 98 | #define HAL_ADC_STATE_AWD1 (0x00010000U) /*!< Out-of-window occurrence of analog watchdog 1 */ |
<> | 135:176b8275d35d | 99 | #define HAL_ADC_STATE_AWD2 (0x00020000U) /*!< Out-of-window occurrence of analog watchdog 2 */ |
<> | 135:176b8275d35d | 100 | #define HAL_ADC_STATE_AWD3 (0x00040000U) /*!< Out-of-window occurrence of analog watchdog 3 */ |
Kojto | 122:f9eeca106725 | 101 | |
Kojto | 122:f9eeca106725 | 102 | /* States of ADC multi-mode */ |
<> | 135:176b8275d35d | 103 | #define HAL_ADC_STATE_MULTIMODE_SLAVE (0x00100000U) /*!< ADC in multimode slave state, controlled by another ADC master ( */ |
Kojto | 122:f9eeca106725 | 104 | |
bogdanm | 86:04dd9b1680ae | 105 | |
bogdanm | 86:04dd9b1680ae | 106 | /** |
bogdanm | 86:04dd9b1680ae | 107 | * @brief ADC handle Structure definition |
Kojto | 122:f9eeca106725 | 108 | */ |
bogdanm | 86:04dd9b1680ae | 109 | typedef struct __ADC_HandleTypeDef |
bogdanm | 86:04dd9b1680ae | 110 | { |
bogdanm | 86:04dd9b1680ae | 111 | ADC_TypeDef *Instance; /*!< Register base address */ |
bogdanm | 86:04dd9b1680ae | 112 | |
bogdanm | 86:04dd9b1680ae | 113 | ADC_InitTypeDef Init; /*!< ADC required parameters */ |
bogdanm | 86:04dd9b1680ae | 114 | |
bogdanm | 86:04dd9b1680ae | 115 | DMA_HandleTypeDef *DMA_Handle; /*!< Pointer DMA Handler */ |
bogdanm | 86:04dd9b1680ae | 116 | |
bogdanm | 86:04dd9b1680ae | 117 | HAL_LockTypeDef Lock; /*!< ADC locking object */ |
bogdanm | 86:04dd9b1680ae | 118 | |
Kojto | 122:f9eeca106725 | 119 | __IO uint32_t State; /*!< ADC communication state (bitmap of ADC states) */ |
bogdanm | 86:04dd9b1680ae | 120 | |
bogdanm | 86:04dd9b1680ae | 121 | __IO uint32_t ErrorCode; /*!< ADC Error code */ |
Kojto | 122:f9eeca106725 | 122 | |
Kojto | 122:f9eeca106725 | 123 | #if defined(STM32F302xE) || defined(STM32F303xE) || defined(STM32F398xx) || \ |
Kojto | 122:f9eeca106725 | 124 | defined(STM32F302xC) || defined(STM32F303xC) || defined(STM32F358xx) || \ |
Kojto | 122:f9eeca106725 | 125 | defined(STM32F303x8) || defined(STM32F334x8) || defined(STM32F328xx) || \ |
Kojto | 122:f9eeca106725 | 126 | defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx) |
Kojto | 122:f9eeca106725 | 127 | ADC_InjectionConfigTypeDef InjectionConfig ; /*!< ADC injected channel configuration build-up structure */ |
Kojto | 122:f9eeca106725 | 128 | #endif /* STM32F302xE || STM32F303xE || STM32F398xx || */ |
Kojto | 122:f9eeca106725 | 129 | /* STM32F302xC || STM32F303xC || STM32F358xx || */ |
Kojto | 122:f9eeca106725 | 130 | /* STM32F303x8 || STM32F334x8 || STM32F328xx || */ |
Kojto | 122:f9eeca106725 | 131 | /* STM32F301x8 || STM32F302x8 || STM32F318xx */ |
Kojto | 122:f9eeca106725 | 132 | |
bogdanm | 86:04dd9b1680ae | 133 | }ADC_HandleTypeDef; |
bogdanm | 92:4fc01daae5a5 | 134 | /** |
bogdanm | 92:4fc01daae5a5 | 135 | * @} |
bogdanm | 92:4fc01daae5a5 | 136 | */ |
bogdanm | 86:04dd9b1680ae | 137 | |
bogdanm | 86:04dd9b1680ae | 138 | /* Exported constants --------------------------------------------------------*/ |
bogdanm | 86:04dd9b1680ae | 139 | /* Exported macros -----------------------------------------------------------*/ |
bogdanm | 86:04dd9b1680ae | 140 | |
bogdanm | 92:4fc01daae5a5 | 141 | /** @defgroup ADC_Exported_Macro ADC Exported Macros |
bogdanm | 86:04dd9b1680ae | 142 | * @{ |
bogdanm | 86:04dd9b1680ae | 143 | */ |
bogdanm | 86:04dd9b1680ae | 144 | /** @brief Reset ADC handle state |
bogdanm | 86:04dd9b1680ae | 145 | * @param __HANDLE__: ADC handle |
bogdanm | 86:04dd9b1680ae | 146 | * @retval None |
bogdanm | 86:04dd9b1680ae | 147 | */ |
bogdanm | 86:04dd9b1680ae | 148 | #define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_ADC_STATE_RESET) |
bogdanm | 86:04dd9b1680ae | 149 | |
bogdanm | 86:04dd9b1680ae | 150 | /** |
bogdanm | 86:04dd9b1680ae | 151 | * @} |
bogdanm | 86:04dd9b1680ae | 152 | */ |
bogdanm | 86:04dd9b1680ae | 153 | |
bogdanm | 86:04dd9b1680ae | 154 | |
bogdanm | 86:04dd9b1680ae | 155 | |
bogdanm | 86:04dd9b1680ae | 156 | /* Exported functions --------------------------------------------------------*/ |
bogdanm | 92:4fc01daae5a5 | 157 | /** @addtogroup ADC_Exported_Functions ADC Exported Functions |
bogdanm | 92:4fc01daae5a5 | 158 | * @{ |
bogdanm | 92:4fc01daae5a5 | 159 | */ |
bogdanm | 92:4fc01daae5a5 | 160 | |
bogdanm | 92:4fc01daae5a5 | 161 | /** @addtogroup ADC_Exported_Functions_Group1 Initialization and de-initialization functions |
bogdanm | 92:4fc01daae5a5 | 162 | * @{ |
bogdanm | 92:4fc01daae5a5 | 163 | */ |
bogdanm | 86:04dd9b1680ae | 164 | /* Initialization and de-initialization functions **********************************/ |
bogdanm | 86:04dd9b1680ae | 165 | HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 166 | HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc); |
bogdanm | 86:04dd9b1680ae | 167 | void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 168 | void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc); |
bogdanm | 92:4fc01daae5a5 | 169 | /** |
bogdanm | 92:4fc01daae5a5 | 170 | * @} |
bogdanm | 92:4fc01daae5a5 | 171 | */ |
bogdanm | 86:04dd9b1680ae | 172 | |
bogdanm | 92:4fc01daae5a5 | 173 | /** @addtogroup ADC_Exported_Functions_Group2 Input and Output operation functions |
bogdanm | 92:4fc01daae5a5 | 174 | * @{ |
bogdanm | 92:4fc01daae5a5 | 175 | */ |
bogdanm | 86:04dd9b1680ae | 176 | /* Blocking mode: Polling */ |
bogdanm | 86:04dd9b1680ae | 177 | HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 178 | HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 179 | HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout); |
bogdanm | 86:04dd9b1680ae | 180 | HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef* hadc, uint32_t EventType, uint32_t Timeout); |
bogdanm | 86:04dd9b1680ae | 181 | |
bogdanm | 86:04dd9b1680ae | 182 | /* Non-blocking mode: Interruption */ |
bogdanm | 86:04dd9b1680ae | 183 | HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 184 | HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 185 | |
bogdanm | 86:04dd9b1680ae | 186 | /* Non-blocking mode: DMA */ |
bogdanm | 86:04dd9b1680ae | 187 | HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length); |
bogdanm | 86:04dd9b1680ae | 188 | HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 189 | |
bogdanm | 86:04dd9b1680ae | 190 | /* ADC retrieve conversion value intended to be used with polling or interruption */ |
bogdanm | 86:04dd9b1680ae | 191 | uint32_t HAL_ADC_GetValue(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 192 | |
bogdanm | 86:04dd9b1680ae | 193 | /* ADC IRQHandler and Callbacks used in non-blocking modes (Interruption and DMA) */ |
bogdanm | 86:04dd9b1680ae | 194 | void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 195 | void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 196 | void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 197 | void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 198 | void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc); |
bogdanm | 92:4fc01daae5a5 | 199 | /** |
bogdanm | 92:4fc01daae5a5 | 200 | * @} |
bogdanm | 92:4fc01daae5a5 | 201 | */ |
bogdanm | 86:04dd9b1680ae | 202 | |
bogdanm | 92:4fc01daae5a5 | 203 | /** @addtogroup ADC_Exported_Functions_Group3 Peripheral Control functions |
bogdanm | 92:4fc01daae5a5 | 204 | * @{ |
bogdanm | 92:4fc01daae5a5 | 205 | */ |
bogdanm | 86:04dd9b1680ae | 206 | /* Peripheral Control functions ***********************************************/ |
bogdanm | 86:04dd9b1680ae | 207 | HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig); |
bogdanm | 86:04dd9b1680ae | 208 | HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef* hadc, ADC_AnalogWDGConfTypeDef* AnalogWDGConfig); |
bogdanm | 92:4fc01daae5a5 | 209 | /** |
bogdanm | 92:4fc01daae5a5 | 210 | * @} |
bogdanm | 92:4fc01daae5a5 | 211 | */ |
bogdanm | 86:04dd9b1680ae | 212 | |
bogdanm | 92:4fc01daae5a5 | 213 | /** @defgroup ADC_Exported_Functions_Group4 Peripheral State functions |
bogdanm | 92:4fc01daae5a5 | 214 | * @brief ADC Peripheral State functions |
bogdanm | 92:4fc01daae5a5 | 215 | * @{ |
bogdanm | 92:4fc01daae5a5 | 216 | */ |
bogdanm | 86:04dd9b1680ae | 217 | /* Peripheral State functions *************************************************/ |
Kojto | 122:f9eeca106725 | 218 | uint32_t HAL_ADC_GetState(ADC_HandleTypeDef* hadc); |
bogdanm | 86:04dd9b1680ae | 219 | uint32_t HAL_ADC_GetError(ADC_HandleTypeDef *hadc); |
bogdanm | 92:4fc01daae5a5 | 220 | /** |
bogdanm | 92:4fc01daae5a5 | 221 | * @} |
bogdanm | 92:4fc01daae5a5 | 222 | */ |
bogdanm | 86:04dd9b1680ae | 223 | |
bogdanm | 92:4fc01daae5a5 | 224 | /** |
bogdanm | 92:4fc01daae5a5 | 225 | * @} |
bogdanm | 92:4fc01daae5a5 | 226 | */ |
bogdanm | 86:04dd9b1680ae | 227 | |
bogdanm | 86:04dd9b1680ae | 228 | /** |
bogdanm | 86:04dd9b1680ae | 229 | * @} |
bogdanm | 86:04dd9b1680ae | 230 | */ |
bogdanm | 86:04dd9b1680ae | 231 | |
bogdanm | 86:04dd9b1680ae | 232 | /** |
bogdanm | 86:04dd9b1680ae | 233 | * @} |
bogdanm | 86:04dd9b1680ae | 234 | */ |
bogdanm | 86:04dd9b1680ae | 235 | |
bogdanm | 86:04dd9b1680ae | 236 | #ifdef __cplusplus |
bogdanm | 86:04dd9b1680ae | 237 | } |
bogdanm | 86:04dd9b1680ae | 238 | #endif |
bogdanm | 86:04dd9b1680ae | 239 | |
bogdanm | 86:04dd9b1680ae | 240 | #endif /*__STM32F3xx_ADC_H */ |
bogdanm | 86:04dd9b1680ae | 241 | |
bogdanm | 86:04dd9b1680ae | 242 | |
bogdanm | 86:04dd9b1680ae | 243 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |