mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F302R8/stm32f3xx_hal_comp.h@330:c80ac197fa6a, 2014-09-23 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Sep 23 10:30:11 2014 +0100
- Revision:
- 330:c80ac197fa6a
Synchronized with git revision 56e9fd597864aab1c8fd92ef1c565e88a04d0a37
Full URL: https://github.com/mbedmicro/mbed/commit/56e9fd597864aab1c8fd92ef1c565e88a04d0a37/
[NUCLEO_F302R8] Migration to STM32Cube driver.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 330:c80ac197fa6a | 1 | /** |
mbed_official | 330:c80ac197fa6a | 2 | ****************************************************************************** |
mbed_official | 330:c80ac197fa6a | 3 | * @file stm32f3xx_hal_comp.h |
mbed_official | 330:c80ac197fa6a | 4 | * @author MCD Application Team |
mbed_official | 330:c80ac197fa6a | 5 | * @version V1.1.0 |
mbed_official | 330:c80ac197fa6a | 6 | * @date 12-Sept-2014 |
mbed_official | 330:c80ac197fa6a | 7 | * @brief Header file of COMP HAL module. |
mbed_official | 330:c80ac197fa6a | 8 | ****************************************************************************** |
mbed_official | 330:c80ac197fa6a | 9 | * @attention |
mbed_official | 330:c80ac197fa6a | 10 | * |
mbed_official | 330:c80ac197fa6a | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 330:c80ac197fa6a | 12 | * |
mbed_official | 330:c80ac197fa6a | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 330:c80ac197fa6a | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 330:c80ac197fa6a | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 330:c80ac197fa6a | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 330:c80ac197fa6a | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 330:c80ac197fa6a | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 330:c80ac197fa6a | 19 | * and/or other materials provided with the distribution. |
mbed_official | 330:c80ac197fa6a | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 330:c80ac197fa6a | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 330:c80ac197fa6a | 22 | * without specific prior written permission. |
mbed_official | 330:c80ac197fa6a | 23 | * |
mbed_official | 330:c80ac197fa6a | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 330:c80ac197fa6a | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 330:c80ac197fa6a | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 330:c80ac197fa6a | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 330:c80ac197fa6a | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 330:c80ac197fa6a | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 330:c80ac197fa6a | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 330:c80ac197fa6a | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 330:c80ac197fa6a | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 330:c80ac197fa6a | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 330:c80ac197fa6a | 34 | * |
mbed_official | 330:c80ac197fa6a | 35 | ****************************************************************************** |
mbed_official | 330:c80ac197fa6a | 36 | */ |
mbed_official | 330:c80ac197fa6a | 37 | |
mbed_official | 330:c80ac197fa6a | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 330:c80ac197fa6a | 39 | #ifndef __STM32F3xx_HAL_COMP_H |
mbed_official | 330:c80ac197fa6a | 40 | #define __STM32F3xx_HAL_COMP_H |
mbed_official | 330:c80ac197fa6a | 41 | |
mbed_official | 330:c80ac197fa6a | 42 | #ifdef __cplusplus |
mbed_official | 330:c80ac197fa6a | 43 | extern "C" { |
mbed_official | 330:c80ac197fa6a | 44 | #endif |
mbed_official | 330:c80ac197fa6a | 45 | |
mbed_official | 330:c80ac197fa6a | 46 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 330:c80ac197fa6a | 47 | #include "stm32f3xx_hal_def.h" |
mbed_official | 330:c80ac197fa6a | 48 | |
mbed_official | 330:c80ac197fa6a | 49 | /** @addtogroup STM32F3xx_HAL_Driver |
mbed_official | 330:c80ac197fa6a | 50 | * @{ |
mbed_official | 330:c80ac197fa6a | 51 | */ |
mbed_official | 330:c80ac197fa6a | 52 | |
mbed_official | 330:c80ac197fa6a | 53 | /** @addtogroup COMP |
mbed_official | 330:c80ac197fa6a | 54 | * @{ |
mbed_official | 330:c80ac197fa6a | 55 | */ |
mbed_official | 330:c80ac197fa6a | 56 | |
mbed_official | 330:c80ac197fa6a | 57 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 330:c80ac197fa6a | 58 | /** @defgroup COMP_Exported_Types COMP Exported Types |
mbed_official | 330:c80ac197fa6a | 59 | * @{ |
mbed_official | 330:c80ac197fa6a | 60 | */ |
mbed_official | 330:c80ac197fa6a | 61 | /** |
mbed_official | 330:c80ac197fa6a | 62 | * @brief COMP Init structure definition |
mbed_official | 330:c80ac197fa6a | 63 | */ |
mbed_official | 330:c80ac197fa6a | 64 | |
mbed_official | 330:c80ac197fa6a | 65 | typedef struct |
mbed_official | 330:c80ac197fa6a | 66 | { |
mbed_official | 330:c80ac197fa6a | 67 | |
mbed_official | 330:c80ac197fa6a | 68 | uint32_t InvertingInput; /*!< Selects the inverting input of the comparator. |
mbed_official | 330:c80ac197fa6a | 69 | This parameter can be a value of @ref COMPEx_InvertingInput */ |
mbed_official | 330:c80ac197fa6a | 70 | |
mbed_official | 330:c80ac197fa6a | 71 | uint32_t NonInvertingInput; /*!< Selects the non inverting input of the comparator. |
mbed_official | 330:c80ac197fa6a | 72 | This parameter can be a value of @ref COMPEx_NonInvertingInput |
mbed_official | 330:c80ac197fa6a | 73 | Note: Only available on STM32F302xB/xC, STM32F303xB/xC and STM32F358xx devices */ |
mbed_official | 330:c80ac197fa6a | 74 | |
mbed_official | 330:c80ac197fa6a | 75 | uint32_t Output; /*!< Selects the output redirection of the comparator. |
mbed_official | 330:c80ac197fa6a | 76 | This parameter can be a value of @ref COMPEx_Output */ |
mbed_official | 330:c80ac197fa6a | 77 | |
mbed_official | 330:c80ac197fa6a | 78 | uint32_t OutputPol; /*!< Selects the output polarity of the comparator. |
mbed_official | 330:c80ac197fa6a | 79 | This parameter can be a value of @ref COMP_OutputPolarity */ |
mbed_official | 330:c80ac197fa6a | 80 | |
mbed_official | 330:c80ac197fa6a | 81 | uint32_t Hysteresis; /*!< Selects the hysteresis voltage of the comparator. |
mbed_official | 330:c80ac197fa6a | 82 | This parameter can be a value of @ref COMPEx_Hysteresis |
mbed_official | 330:c80ac197fa6a | 83 | Note: Only available on STM32F302xB/xC, STM32F303xB/xC, STM32F373xB/xC, STM32F358xx and STM32F378xx devices */ |
mbed_official | 330:c80ac197fa6a | 84 | |
mbed_official | 330:c80ac197fa6a | 85 | uint32_t BlankingSrce; /*!< Selects the output blanking source of the comparator. |
mbed_official | 330:c80ac197fa6a | 86 | This parameter can be a value of @ref COMPEx_BlankingSrce |
mbed_official | 330:c80ac197fa6a | 87 | Note: Not available on STM32F373xB/C and STM32F378xx devices */ |
mbed_official | 330:c80ac197fa6a | 88 | |
mbed_official | 330:c80ac197fa6a | 89 | uint32_t Mode; /*!< Selects the operating comsumption mode of the comparator |
mbed_official | 330:c80ac197fa6a | 90 | to adjust the speed/consumption. |
mbed_official | 330:c80ac197fa6a | 91 | This parameter can be a value of @ref COMPEx_Mode |
mbed_official | 330:c80ac197fa6a | 92 | Note: Not available on STM32F301x6/x8, STM32F302x6/x8, STM32F334x6/x8, STM32F318xx and STM32F328xx devices */ |
mbed_official | 330:c80ac197fa6a | 93 | |
mbed_official | 330:c80ac197fa6a | 94 | uint32_t WindowMode; /*!< Selects the window mode of the comparator X (X=2, 4 or 6 if available). |
mbed_official | 330:c80ac197fa6a | 95 | This parameter can be a value of @ref COMPEx_WindowMode */ |
mbed_official | 330:c80ac197fa6a | 96 | |
mbed_official | 330:c80ac197fa6a | 97 | uint32_t TriggerMode; /*!< Selects the trigger mode of the comparator (interrupt mode). |
mbed_official | 330:c80ac197fa6a | 98 | This parameter can be a value of @ref COMP_TriggerMode */ |
mbed_official | 330:c80ac197fa6a | 99 | |
mbed_official | 330:c80ac197fa6a | 100 | }COMP_InitTypeDef; |
mbed_official | 330:c80ac197fa6a | 101 | |
mbed_official | 330:c80ac197fa6a | 102 | /** |
mbed_official | 330:c80ac197fa6a | 103 | * @brief HAL State structures definition |
mbed_official | 330:c80ac197fa6a | 104 | */ |
mbed_official | 330:c80ac197fa6a | 105 | typedef enum |
mbed_official | 330:c80ac197fa6a | 106 | { |
mbed_official | 330:c80ac197fa6a | 107 | HAL_COMP_STATE_RESET = 0x00, /*!< COMP not yet initialized or disabled */ |
mbed_official | 330:c80ac197fa6a | 108 | HAL_COMP_STATE_READY = 0x01, /*!< COMP initialized and ready for use */ |
mbed_official | 330:c80ac197fa6a | 109 | HAL_COMP_STATE_READY_LOCKED = 0x11, /*!< COMP initialized but the configuration is locked */ |
mbed_official | 330:c80ac197fa6a | 110 | HAL_COMP_STATE_BUSY = 0x02, /*!< COMP is running */ |
mbed_official | 330:c80ac197fa6a | 111 | HAL_COMP_STATE_BUSY_LOCKED = 0x12 /*!< COMP is running and the configuration is locked */ |
mbed_official | 330:c80ac197fa6a | 112 | }HAL_COMP_StateTypeDef; |
mbed_official | 330:c80ac197fa6a | 113 | |
mbed_official | 330:c80ac197fa6a | 114 | |
mbed_official | 330:c80ac197fa6a | 115 | /** |
mbed_official | 330:c80ac197fa6a | 116 | * @brief PPP Handle Structure definition |
mbed_official | 330:c80ac197fa6a | 117 | */ |
mbed_official | 330:c80ac197fa6a | 118 | typedef struct |
mbed_official | 330:c80ac197fa6a | 119 | { |
mbed_official | 330:c80ac197fa6a | 120 | COMP_TypeDef *Instance; /*!< Register base address */ |
mbed_official | 330:c80ac197fa6a | 121 | COMP_InitTypeDef Init; /*!< COMP required parameters */ |
mbed_official | 330:c80ac197fa6a | 122 | HAL_LockTypeDef Lock; /*!< Locking object */ |
mbed_official | 330:c80ac197fa6a | 123 | __IO HAL_COMP_StateTypeDef State; /*!< COMP communication state */ |
mbed_official | 330:c80ac197fa6a | 124 | |
mbed_official | 330:c80ac197fa6a | 125 | }COMP_HandleTypeDef; |
mbed_official | 330:c80ac197fa6a | 126 | |
mbed_official | 330:c80ac197fa6a | 127 | /** |
mbed_official | 330:c80ac197fa6a | 128 | * @} |
mbed_official | 330:c80ac197fa6a | 129 | */ |
mbed_official | 330:c80ac197fa6a | 130 | |
mbed_official | 330:c80ac197fa6a | 131 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 330:c80ac197fa6a | 132 | /** @defgroup COMP_Exported_Constants COMP Exported Constants |
mbed_official | 330:c80ac197fa6a | 133 | * @{ |
mbed_official | 330:c80ac197fa6a | 134 | */ |
mbed_official | 330:c80ac197fa6a | 135 | |
mbed_official | 330:c80ac197fa6a | 136 | /** @defgroup COMP_OutputPolarity COMP Output Polarity |
mbed_official | 330:c80ac197fa6a | 137 | * @{ |
mbed_official | 330:c80ac197fa6a | 138 | */ |
mbed_official | 330:c80ac197fa6a | 139 | #define COMP_OUTPUTPOL_NONINVERTED ((uint32_t)0x00000000) /*!< COMP output on GPIO isn't inverted */ |
mbed_official | 330:c80ac197fa6a | 140 | #define COMP_OUTPUTPOL_INVERTED COMP_CSR_COMPxPOL /*!< COMP output on GPIO is inverted */ |
mbed_official | 330:c80ac197fa6a | 141 | #define IS_COMP_OUTPUTPOL(POL) (((POL) == COMP_OUTPUTPOL_NONINVERTED) || \ |
mbed_official | 330:c80ac197fa6a | 142 | ((POL) == COMP_OUTPUTPOL_INVERTED)) |
mbed_official | 330:c80ac197fa6a | 143 | /** |
mbed_official | 330:c80ac197fa6a | 144 | * @} |
mbed_official | 330:c80ac197fa6a | 145 | */ |
mbed_official | 330:c80ac197fa6a | 146 | |
mbed_official | 330:c80ac197fa6a | 147 | /** @defgroup COMP_OutputLevel COMP Output Level |
mbed_official | 330:c80ac197fa6a | 148 | * @{ |
mbed_official | 330:c80ac197fa6a | 149 | */ |
mbed_official | 330:c80ac197fa6a | 150 | /* When output polarity is not inverted, comparator output is low when |
mbed_official | 330:c80ac197fa6a | 151 | the non-inverting input is at a lower voltage than the inverting input*/ |
mbed_official | 330:c80ac197fa6a | 152 | #define COMP_OUTPUTLEVEL_LOW ((uint32_t)0x00000000) |
mbed_official | 330:c80ac197fa6a | 153 | /* When output polarity is not inverted, comparator output is high when |
mbed_official | 330:c80ac197fa6a | 154 | the non-inverting input is at a higher voltage than the inverting input */ |
mbed_official | 330:c80ac197fa6a | 155 | #define COMP_OUTPUTLEVEL_HIGH COMP_CSR_COMPxOUT |
mbed_official | 330:c80ac197fa6a | 156 | /** |
mbed_official | 330:c80ac197fa6a | 157 | * @} |
mbed_official | 330:c80ac197fa6a | 158 | */ |
mbed_official | 330:c80ac197fa6a | 159 | |
mbed_official | 330:c80ac197fa6a | 160 | /** @defgroup COMP_TriggerMode COMP Trigger Mode |
mbed_official | 330:c80ac197fa6a | 161 | * @{ |
mbed_official | 330:c80ac197fa6a | 162 | */ |
mbed_official | 330:c80ac197fa6a | 163 | #define COMP_TRIGGERMODE_NONE ((uint32_t)0x00000000) /*!< No External Interrupt trigger detection */ |
mbed_official | 330:c80ac197fa6a | 164 | #define COMP_TRIGGERMODE_IT_RISING ((uint32_t)0x00000001) /*!< External Interrupt Mode with Rising edge trigger detection */ |
mbed_official | 330:c80ac197fa6a | 165 | #define COMP_TRIGGERMODE_IT_FALLING ((uint32_t)0x00000002) /*!< External Interrupt Mode with Falling edge trigger detection */ |
mbed_official | 330:c80ac197fa6a | 166 | #define COMP_TRIGGERMODE_IT_RISING_FALLING ((uint32_t)0x00000003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ |
mbed_official | 330:c80ac197fa6a | 167 | #define IS_COMP_TRIGGERMODE(MODE) (((MODE) == COMP_TRIGGERMODE_NONE) || \ |
mbed_official | 330:c80ac197fa6a | 168 | ((MODE) == COMP_TRIGGERMODE_IT_RISING) || \ |
mbed_official | 330:c80ac197fa6a | 169 | ((MODE) == COMP_TRIGGERMODE_IT_FALLING) || \ |
mbed_official | 330:c80ac197fa6a | 170 | ((MODE) == COMP_TRIGGERMODE_IT_RISING_FALLING)) |
mbed_official | 330:c80ac197fa6a | 171 | /** |
mbed_official | 330:c80ac197fa6a | 172 | * @} |
mbed_official | 330:c80ac197fa6a | 173 | */ |
mbed_official | 330:c80ac197fa6a | 174 | |
mbed_official | 330:c80ac197fa6a | 175 | #define COMP_LOCK_DISABLE ((uint32_t)0x00000000) |
mbed_official | 330:c80ac197fa6a | 176 | #define COMP_LOCK_ENABLE COMP_CSR_COMPxLOCK |
mbed_official | 330:c80ac197fa6a | 177 | |
mbed_official | 330:c80ac197fa6a | 178 | #define COMP_STATE_BIT_LOCK ((uint32_t)0x10) |
mbed_official | 330:c80ac197fa6a | 179 | |
mbed_official | 330:c80ac197fa6a | 180 | /** |
mbed_official | 330:c80ac197fa6a | 181 | * @} |
mbed_official | 330:c80ac197fa6a | 182 | */ |
mbed_official | 330:c80ac197fa6a | 183 | |
mbed_official | 330:c80ac197fa6a | 184 | /* Exported macros -----------------------------------------------------------*/ |
mbed_official | 330:c80ac197fa6a | 185 | /** @defgroup COMP_Exported_Macros COMP Exported Macros |
mbed_official | 330:c80ac197fa6a | 186 | * @{ |
mbed_official | 330:c80ac197fa6a | 187 | */ |
mbed_official | 330:c80ac197fa6a | 188 | |
mbed_official | 330:c80ac197fa6a | 189 | /** @brief Reset COMP handle state |
mbed_official | 330:c80ac197fa6a | 190 | * @param __HANDLE__: COMP handle. |
mbed_official | 330:c80ac197fa6a | 191 | * @retval None |
mbed_official | 330:c80ac197fa6a | 192 | */ |
mbed_official | 330:c80ac197fa6a | 193 | #define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET) |
mbed_official | 330:c80ac197fa6a | 194 | /** |
mbed_official | 330:c80ac197fa6a | 195 | * @} |
mbed_official | 330:c80ac197fa6a | 196 | */ |
mbed_official | 330:c80ac197fa6a | 197 | |
mbed_official | 330:c80ac197fa6a | 198 | /* Include COMP HAL Extended module */ |
mbed_official | 330:c80ac197fa6a | 199 | #include "stm32f3xx_hal_comp_ex.h" |
mbed_official | 330:c80ac197fa6a | 200 | |
mbed_official | 330:c80ac197fa6a | 201 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 330:c80ac197fa6a | 202 | /** @addtogroup COMP_Exported_Functions COMP Exported Functions |
mbed_official | 330:c80ac197fa6a | 203 | * @{ |
mbed_official | 330:c80ac197fa6a | 204 | */ |
mbed_official | 330:c80ac197fa6a | 205 | |
mbed_official | 330:c80ac197fa6a | 206 | /** @addtogroup COMP_Exported_Functions_Group1 Initialization and de-initialization functions |
mbed_official | 330:c80ac197fa6a | 207 | * @brief Initialization and Configuration functions |
mbed_official | 330:c80ac197fa6a | 208 | * @{ |
mbed_official | 330:c80ac197fa6a | 209 | */ |
mbed_official | 330:c80ac197fa6a | 210 | /* Initialization and de-initialization functions ****************************/ |
mbed_official | 330:c80ac197fa6a | 211 | HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 212 | HAL_StatusTypeDef HAL_COMP_DeInit (COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 213 | void HAL_COMP_MspInit(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 214 | void HAL_COMP_MspDeInit(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 215 | /** |
mbed_official | 330:c80ac197fa6a | 216 | * @} |
mbed_official | 330:c80ac197fa6a | 217 | */ |
mbed_official | 330:c80ac197fa6a | 218 | |
mbed_official | 330:c80ac197fa6a | 219 | /** @addtogroup COMP_Exported_Functions_Group2 Input and Output operation functions |
mbed_official | 330:c80ac197fa6a | 220 | * @brief Data transfers functions |
mbed_official | 330:c80ac197fa6a | 221 | * @{ |
mbed_official | 330:c80ac197fa6a | 222 | */ |
mbed_official | 330:c80ac197fa6a | 223 | /* IO operation functions *****************************************************/ |
mbed_official | 330:c80ac197fa6a | 224 | HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 225 | HAL_StatusTypeDef HAL_COMP_Stop(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 226 | HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 227 | HAL_StatusTypeDef HAL_COMP_Stop_IT(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 228 | void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 229 | /** |
mbed_official | 330:c80ac197fa6a | 230 | * @} |
mbed_official | 330:c80ac197fa6a | 231 | */ |
mbed_official | 330:c80ac197fa6a | 232 | |
mbed_official | 330:c80ac197fa6a | 233 | /** @addtogroup COMP_Exported_Functions_Group3 Peripheral Control functions |
mbed_official | 330:c80ac197fa6a | 234 | * @brief management functions |
mbed_official | 330:c80ac197fa6a | 235 | * @{ |
mbed_official | 330:c80ac197fa6a | 236 | */ |
mbed_official | 330:c80ac197fa6a | 237 | /* Peripheral Control functions ***********************************************/ |
mbed_official | 330:c80ac197fa6a | 238 | HAL_StatusTypeDef HAL_COMP_Lock(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 239 | uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 240 | |
mbed_official | 330:c80ac197fa6a | 241 | /* Callback in Interrupt mode */ |
mbed_official | 330:c80ac197fa6a | 242 | void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 243 | /** |
mbed_official | 330:c80ac197fa6a | 244 | * @} |
mbed_official | 330:c80ac197fa6a | 245 | */ |
mbed_official | 330:c80ac197fa6a | 246 | |
mbed_official | 330:c80ac197fa6a | 247 | /** @addtogroup COMP_Exported_Functions_Group4 Peripheral State functions |
mbed_official | 330:c80ac197fa6a | 248 | * @brief Peripheral State functions |
mbed_official | 330:c80ac197fa6a | 249 | * @{ |
mbed_official | 330:c80ac197fa6a | 250 | */ |
mbed_official | 330:c80ac197fa6a | 251 | /* Peripheral State and Error functions ***************************************/ |
mbed_official | 330:c80ac197fa6a | 252 | HAL_COMP_StateTypeDef HAL_COMP_GetState(COMP_HandleTypeDef *hcomp); |
mbed_official | 330:c80ac197fa6a | 253 | /** |
mbed_official | 330:c80ac197fa6a | 254 | * @} |
mbed_official | 330:c80ac197fa6a | 255 | */ |
mbed_official | 330:c80ac197fa6a | 256 | |
mbed_official | 330:c80ac197fa6a | 257 | /** |
mbed_official | 330:c80ac197fa6a | 258 | * @} |
mbed_official | 330:c80ac197fa6a | 259 | */ |
mbed_official | 330:c80ac197fa6a | 260 | |
mbed_official | 330:c80ac197fa6a | 261 | /** |
mbed_official | 330:c80ac197fa6a | 262 | * @} |
mbed_official | 330:c80ac197fa6a | 263 | */ |
mbed_official | 330:c80ac197fa6a | 264 | |
mbed_official | 330:c80ac197fa6a | 265 | /** |
mbed_official | 330:c80ac197fa6a | 266 | * @} |
mbed_official | 330:c80ac197fa6a | 267 | */ |
mbed_official | 330:c80ac197fa6a | 268 | |
mbed_official | 330:c80ac197fa6a | 269 | #ifdef __cplusplus |
mbed_official | 330:c80ac197fa6a | 270 | } |
mbed_official | 330:c80ac197fa6a | 271 | #endif |
mbed_official | 330:c80ac197fa6a | 272 | |
mbed_official | 330:c80ac197fa6a | 273 | #endif /* __STM32F3xx_HAL_COMP_H */ |
mbed_official | 330:c80ac197fa6a | 274 | |
mbed_official | 330:c80ac197fa6a | 275 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |