mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Fri Aug 14 13:15:17 2015 +0100
Revision:
610:813dcc80987e
Synchronized with git revision 6d84db41c6833e0b9b024741eb0616a5f62d5599

Full URL: https://github.com/mbedmicro/mbed/commit/6d84db41c6833e0b9b024741eb0616a5f62d5599/

DISCO_F746NG - Improvements

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 610:813dcc80987e 1 /**
mbed_official 610:813dcc80987e 2 ******************************************************************************
mbed_official 610:813dcc80987e 3 * @file stm32l4xx_hal_dfsdm.h
mbed_official 610:813dcc80987e 4 * @author MCD Application Team
mbed_official 610:813dcc80987e 5 * @version V1.0.0
mbed_official 610:813dcc80987e 6 * @date 26-June-2015
mbed_official 610:813dcc80987e 7 * @brief Header file of DFSDM HAL module.
mbed_official 610:813dcc80987e 8 ******************************************************************************
mbed_official 610:813dcc80987e 9 * @attention
mbed_official 610:813dcc80987e 10 *
mbed_official 610:813dcc80987e 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 610:813dcc80987e 12 *
mbed_official 610:813dcc80987e 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 610:813dcc80987e 14 * are permitted provided that the following conditions are met:
mbed_official 610:813dcc80987e 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 610:813dcc80987e 16 * this list of conditions and the following disclaimer.
mbed_official 610:813dcc80987e 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 610:813dcc80987e 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 610:813dcc80987e 19 * and/or other materials provided with the distribution.
mbed_official 610:813dcc80987e 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 610:813dcc80987e 21 * may be used to endorse or promote products derived from this software
mbed_official 610:813dcc80987e 22 * without specific prior written permission.
mbed_official 610:813dcc80987e 23 *
mbed_official 610:813dcc80987e 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 610:813dcc80987e 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 610:813dcc80987e 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 610:813dcc80987e 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 610:813dcc80987e 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 610:813dcc80987e 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 610:813dcc80987e 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 610:813dcc80987e 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 610:813dcc80987e 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 610:813dcc80987e 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 610:813dcc80987e 34 *
mbed_official 610:813dcc80987e 35 ******************************************************************************
mbed_official 610:813dcc80987e 36 */
mbed_official 610:813dcc80987e 37
mbed_official 610:813dcc80987e 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 610:813dcc80987e 39 #ifndef __STM32L4xx_HAL_DFSDM_H
mbed_official 610:813dcc80987e 40 #define __STM32L4xx_HAL_DFSDM_H
mbed_official 610:813dcc80987e 41
mbed_official 610:813dcc80987e 42 #ifdef __cplusplus
mbed_official 610:813dcc80987e 43 extern "C" {
mbed_official 610:813dcc80987e 44 #endif
mbed_official 610:813dcc80987e 45
mbed_official 610:813dcc80987e 46 /* Includes ------------------------------------------------------------------*/
mbed_official 610:813dcc80987e 47 #include "stm32l4xx_hal_def.h"
mbed_official 610:813dcc80987e 48
mbed_official 610:813dcc80987e 49 /** @addtogroup STM32L4xx_HAL_Driver
mbed_official 610:813dcc80987e 50 * @{
mbed_official 610:813dcc80987e 51 */
mbed_official 610:813dcc80987e 52
mbed_official 610:813dcc80987e 53 /** @addtogroup DFSDM
mbed_official 610:813dcc80987e 54 * @{
mbed_official 610:813dcc80987e 55 */
mbed_official 610:813dcc80987e 56
mbed_official 610:813dcc80987e 57 /* Exported types ------------------------------------------------------------*/
mbed_official 610:813dcc80987e 58 /** @defgroup DFSDM_Exported_Types DFSDM Exported Types
mbed_official 610:813dcc80987e 59 * @{
mbed_official 610:813dcc80987e 60 */
mbed_official 610:813dcc80987e 61
mbed_official 610:813dcc80987e 62 /**
mbed_official 610:813dcc80987e 63 * @brief HAL DFSDM Channel states definition
mbed_official 610:813dcc80987e 64 */
mbed_official 610:813dcc80987e 65 typedef enum
mbed_official 610:813dcc80987e 66 {
mbed_official 610:813dcc80987e 67 HAL_DFSDM_CHANNEL_STATE_RESET = 0x00, /*!< DFSDM channel not initialized */
mbed_official 610:813dcc80987e 68 HAL_DFSDM_CHANNEL_STATE_READY = 0x01, /*!< DFSDM channel initialized and ready for use */
mbed_official 610:813dcc80987e 69 HAL_DFSDM_CHANNEL_STATE_ERROR = 0xFF /*!< DFSDM channel state error */
mbed_official 610:813dcc80987e 70 }HAL_DFSDM_Channel_StateTypeDef;
mbed_official 610:813dcc80987e 71
mbed_official 610:813dcc80987e 72 /**
mbed_official 610:813dcc80987e 73 * @brief DFSDM channel output clock structure definition
mbed_official 610:813dcc80987e 74 */
mbed_official 610:813dcc80987e 75 typedef struct
mbed_official 610:813dcc80987e 76 {
mbed_official 610:813dcc80987e 77 FunctionalState Activation; /*!< Output clock enable/disable */
mbed_official 610:813dcc80987e 78 uint32_t Selection; /*!< Output clock is system clock or audio clock.
mbed_official 610:813dcc80987e 79 This parameter can be a value of @ref DFSDM_Channel_OuputClock */
mbed_official 610:813dcc80987e 80 uint32_t Divider; /*!< Output clock divider.
mbed_official 610:813dcc80987e 81 This parameter must be a number between Min_Data = 2 and Max_Data = 256 */
mbed_official 610:813dcc80987e 82 }DFSDM_Channel_OutputClockTypeDef;
mbed_official 610:813dcc80987e 83
mbed_official 610:813dcc80987e 84 /**
mbed_official 610:813dcc80987e 85 * @brief DFSDM channel input structure definition
mbed_official 610:813dcc80987e 86 */
mbed_official 610:813dcc80987e 87 typedef struct
mbed_official 610:813dcc80987e 88 {
mbed_official 610:813dcc80987e 89 uint32_t Multiplexer; /*!< Input is external serial inputs or internal register.
mbed_official 610:813dcc80987e 90 This parameter can be a value of @ref DFSDM_Channel_InputMultiplexer */
mbed_official 610:813dcc80987e 91 uint32_t DataPacking; /*!< Standard, interleaved or dual mode for internal register.
mbed_official 610:813dcc80987e 92 This parameter can be a value of @ref DFSDM_Channel_DataPacking */
mbed_official 610:813dcc80987e 93 uint32_t Pins; /*!< Input pins are taken from same or following channel.
mbed_official 610:813dcc80987e 94 This parameter can be a value of @ref DFSDM_Channel_InputPins */
mbed_official 610:813dcc80987e 95 }DFSDM_Channel_InputTypeDef;
mbed_official 610:813dcc80987e 96
mbed_official 610:813dcc80987e 97 /**
mbed_official 610:813dcc80987e 98 * @brief DFSDM channel serial interface structure definition
mbed_official 610:813dcc80987e 99 */
mbed_official 610:813dcc80987e 100 typedef struct
mbed_official 610:813dcc80987e 101 {
mbed_official 610:813dcc80987e 102 uint32_t Type; /*!< SPI or Manchester modes.
mbed_official 610:813dcc80987e 103 This parameter can be a value of @ref DFSDM_Channel_SerialInterfaceType */
mbed_official 610:813dcc80987e 104 uint32_t SpiClock; /*!< SPI clock select (external or internal with different sampling point).
mbed_official 610:813dcc80987e 105 This parameter can be a value of @ref DFSDM_Channel_SpiClock */
mbed_official 610:813dcc80987e 106 }DFSDM_Channel_SerialInterfaceTypeDef;
mbed_official 610:813dcc80987e 107
mbed_official 610:813dcc80987e 108 /**
mbed_official 610:813dcc80987e 109 * @brief DFSDM channel analog watchdog structure definition
mbed_official 610:813dcc80987e 110 */
mbed_official 610:813dcc80987e 111 typedef struct
mbed_official 610:813dcc80987e 112 {
mbed_official 610:813dcc80987e 113 uint32_t FilterOrder; /*!< Analog watchdog Sinc filter order.
mbed_official 610:813dcc80987e 114 This parameter can be a value of @ref DFSDM_Channel_AwdFilterOrder */
mbed_official 610:813dcc80987e 115 uint32_t Oversampling; /*!< Analog watchdog filter oversampling ratio.
mbed_official 610:813dcc80987e 116 This parameter must be a number between Min_Data = 1 and Max_Data = 32 */
mbed_official 610:813dcc80987e 117 }DFSDM_Channel_AwdTypeDef;
mbed_official 610:813dcc80987e 118
mbed_official 610:813dcc80987e 119 /**
mbed_official 610:813dcc80987e 120 * @brief DFSDM channel init structure definition
mbed_official 610:813dcc80987e 121 */
mbed_official 610:813dcc80987e 122 typedef struct
mbed_official 610:813dcc80987e 123 {
mbed_official 610:813dcc80987e 124 DFSDM_Channel_OutputClockTypeDef OutputClock; /*!< DFSDM channel output clock parameters */
mbed_official 610:813dcc80987e 125 DFSDM_Channel_InputTypeDef Input; /*!< DFSDM channel input parameters */
mbed_official 610:813dcc80987e 126 DFSDM_Channel_SerialInterfaceTypeDef SerialInterface; /*!< DFSDM channel serial interface parameters */
mbed_official 610:813dcc80987e 127 DFSDM_Channel_AwdTypeDef Awd; /*!< DFSDM channel analog watchdog parameters */
mbed_official 610:813dcc80987e 128 int32_t Offset; /*!< DFSDM channel offset.
mbed_official 610:813dcc80987e 129 This parameter must be a number between Min_Data = -8388608 and Max_Data = 8388607 */
mbed_official 610:813dcc80987e 130 uint32_t RightBitShift; /*!< DFSDM channel right bit shift.
mbed_official 610:813dcc80987e 131 This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x1F */
mbed_official 610:813dcc80987e 132 }DFSDM_Channel_InitTypeDef;
mbed_official 610:813dcc80987e 133
mbed_official 610:813dcc80987e 134 /**
mbed_official 610:813dcc80987e 135 * @brief DFSDM channel handle structure definition
mbed_official 610:813dcc80987e 136 */
mbed_official 610:813dcc80987e 137 typedef struct
mbed_official 610:813dcc80987e 138 {
mbed_official 610:813dcc80987e 139 DFSDM_Channel_TypeDef *Instance; /*!< DFSDM channel instance */
mbed_official 610:813dcc80987e 140 DFSDM_Channel_InitTypeDef Init; /*!< DFSDM channel init parameters */
mbed_official 610:813dcc80987e 141 HAL_DFSDM_Channel_StateTypeDef State; /*!< DFSDM channel state */
mbed_official 610:813dcc80987e 142 }DFSDM_Channel_HandleTypeDef;
mbed_official 610:813dcc80987e 143
mbed_official 610:813dcc80987e 144 /**
mbed_official 610:813dcc80987e 145 * @brief HAL DFSDM Filter states definition
mbed_official 610:813dcc80987e 146 */
mbed_official 610:813dcc80987e 147 typedef enum
mbed_official 610:813dcc80987e 148 {
mbed_official 610:813dcc80987e 149 HAL_DFSDM_FILTER_STATE_RESET = 0x00, /*!< DFSDM filter not initialized */
mbed_official 610:813dcc80987e 150 HAL_DFSDM_FILTER_STATE_READY = 0x01, /*!< DFSDM filter initialized and ready for use */
mbed_official 610:813dcc80987e 151 HAL_DFSDM_FILTER_STATE_REG = 0x02, /*!< DFSDM filter regular conversion in progress */
mbed_official 610:813dcc80987e 152 HAL_DFSDM_FILTER_STATE_INJ = 0x03, /*!< DFSDM filter injected conversion in progress */
mbed_official 610:813dcc80987e 153 HAL_DFSDM_FILTER_STATE_REG_INJ = 0x04, /*!< DFSDM filter regular and injected conversions in progress */
mbed_official 610:813dcc80987e 154 HAL_DFSDM_FILTER_STATE_ERROR = 0xFF /*!< DFSDM filter state error */
mbed_official 610:813dcc80987e 155 }HAL_DFSDM_Filter_StateTypeDef;
mbed_official 610:813dcc80987e 156
mbed_official 610:813dcc80987e 157 /**
mbed_official 610:813dcc80987e 158 * @brief DFSDM filter regular conversion parameters structure definition
mbed_official 610:813dcc80987e 159 */
mbed_official 610:813dcc80987e 160 typedef struct
mbed_official 610:813dcc80987e 161 {
mbed_official 610:813dcc80987e 162 uint32_t Trigger; /*!< Trigger used to start regular conversion: software or synchronous.
mbed_official 610:813dcc80987e 163 This parameter can be a value of @ref DFSDM_Filter_Trigger */
mbed_official 610:813dcc80987e 164 FunctionalState FastMode; /*!< Enable/disable fast mode for regular conversion */
mbed_official 610:813dcc80987e 165 FunctionalState DmaMode; /*!< Enable/disable DMA for regular conversion */
mbed_official 610:813dcc80987e 166 }DFSDM_Filter_RegularParamTypeDef;
mbed_official 610:813dcc80987e 167
mbed_official 610:813dcc80987e 168 /**
mbed_official 610:813dcc80987e 169 * @brief DFSDM filter injected conversion parameters structure definition
mbed_official 610:813dcc80987e 170 */
mbed_official 610:813dcc80987e 171 typedef struct
mbed_official 610:813dcc80987e 172 {
mbed_official 610:813dcc80987e 173 uint32_t Trigger; /*!< Trigger used to start injected conversion: software, external or synchronous.
mbed_official 610:813dcc80987e 174 This parameter can be a value of @ref DFSDM_Filter_Trigger */
mbed_official 610:813dcc80987e 175 FunctionalState ScanMode; /*!< Enable/disable scanning mode for injected conversion */
mbed_official 610:813dcc80987e 176 FunctionalState DmaMode; /*!< Enable/disable DMA for injected conversion */
mbed_official 610:813dcc80987e 177 uint32_t ExtTrigger; /*!< External trigger.
mbed_official 610:813dcc80987e 178 This parameter can be a value of @ref DFSDM_Filter_ExtTrigger */
mbed_official 610:813dcc80987e 179 uint32_t ExtTriggerEdge; /*!< External trigger edge: rising, falling or both.
mbed_official 610:813dcc80987e 180 This parameter can be a value of @ref DFSDM_Filter_ExtTriggerEdge */
mbed_official 610:813dcc80987e 181 }DFSDM_Filter_InjectedParamTypeDef;
mbed_official 610:813dcc80987e 182
mbed_official 610:813dcc80987e 183 /**
mbed_official 610:813dcc80987e 184 * @brief DFSDM filter parameters structure definition
mbed_official 610:813dcc80987e 185 */
mbed_official 610:813dcc80987e 186 typedef struct
mbed_official 610:813dcc80987e 187 {
mbed_official 610:813dcc80987e 188 uint32_t SincOrder; /*!< Sinc filter order.
mbed_official 610:813dcc80987e 189 This parameter can be a value of @ref DFSDM_Filter_SincOrder */
mbed_official 610:813dcc80987e 190 uint32_t Oversampling; /*!< Filter oversampling ratio.
mbed_official 610:813dcc80987e 191 This parameter must be a number between Min_Data = 1 and Max_Data = 1024 */
mbed_official 610:813dcc80987e 192 uint32_t IntOversampling; /*!< Integrator oversampling ratio.
mbed_official 610:813dcc80987e 193 This parameter must be a number between Min_Data = 1 and Max_Data = 256 */
mbed_official 610:813dcc80987e 194 }DFSDM_Filter_FilterParamTypeDef;
mbed_official 610:813dcc80987e 195
mbed_official 610:813dcc80987e 196 /**
mbed_official 610:813dcc80987e 197 * @brief DFSDM filter init structure definition
mbed_official 610:813dcc80987e 198 */
mbed_official 610:813dcc80987e 199 typedef struct
mbed_official 610:813dcc80987e 200 {
mbed_official 610:813dcc80987e 201 DFSDM_Filter_RegularParamTypeDef RegularParam; /*!< DFSDM regular conversion parameters */
mbed_official 610:813dcc80987e 202 DFSDM_Filter_InjectedParamTypeDef InjectedParam; /*!< DFSDM injected conversion parameters */
mbed_official 610:813dcc80987e 203 DFSDM_Filter_FilterParamTypeDef FilterParam; /*!< DFSDM filter parameters */
mbed_official 610:813dcc80987e 204 }DFSDM_Filter_InitTypeDef;
mbed_official 610:813dcc80987e 205
mbed_official 610:813dcc80987e 206 /**
mbed_official 610:813dcc80987e 207 * @brief DFSDM filter handle structure definition
mbed_official 610:813dcc80987e 208 */
mbed_official 610:813dcc80987e 209 typedef struct
mbed_official 610:813dcc80987e 210 {
mbed_official 610:813dcc80987e 211 DFSDM_Filter_TypeDef *Instance; /*!< DFSDM filter instance */
mbed_official 610:813dcc80987e 212 DFSDM_Filter_InitTypeDef Init; /*!< DFSDM filter init parameters */
mbed_official 610:813dcc80987e 213 DMA_HandleTypeDef *hdmaReg; /*!< Pointer on DMA handler for regular conversions */
mbed_official 610:813dcc80987e 214 DMA_HandleTypeDef *hdmaInj; /*!< Pointer on DMA handler for injected conversions */
mbed_official 610:813dcc80987e 215 uint32_t RegularContMode; /*!< Regular conversion continuous mode */
mbed_official 610:813dcc80987e 216 uint32_t RegularTrigger; /*!< Trigger used for regular conversion */
mbed_official 610:813dcc80987e 217 uint32_t InjectedTrigger; /*!< Trigger used for injected conversion */
mbed_official 610:813dcc80987e 218 uint32_t ExtTriggerEdge; /*!< Rising, falling or both edges selected */
mbed_official 610:813dcc80987e 219 FunctionalState InjectedScanMode; /*!< Injected scanning mode */
mbed_official 610:813dcc80987e 220 uint32_t InjectedChannelsNbr; /*!< Number of channels in injected sequence */
mbed_official 610:813dcc80987e 221 uint32_t InjConvRemaining; /*!< Injected conversions remaining */
mbed_official 610:813dcc80987e 222 HAL_DFSDM_Filter_StateTypeDef State; /*!< DFSDM filter state */
mbed_official 610:813dcc80987e 223 uint32_t ErrorCode; /*!< DFSDM filter error code */
mbed_official 610:813dcc80987e 224 }DFSDM_Filter_HandleTypeDef;
mbed_official 610:813dcc80987e 225
mbed_official 610:813dcc80987e 226 /**
mbed_official 610:813dcc80987e 227 * @brief DFSDM filter analog watchdog parameters structure definition
mbed_official 610:813dcc80987e 228 */
mbed_official 610:813dcc80987e 229 typedef struct
mbed_official 610:813dcc80987e 230 {
mbed_official 610:813dcc80987e 231 uint32_t DataSource; /*!< Values from digital filter or from channel watchdog filter.
mbed_official 610:813dcc80987e 232 This parameter can be a value of @ref DFSDM_Filter_AwdDataSource */
mbed_official 610:813dcc80987e 233 uint32_t Channel; /*!< Analog watchdog channel selection.
mbed_official 610:813dcc80987e 234 This parameter can be a values combination of @ref DFSDM_Channel_Selection */
mbed_official 610:813dcc80987e 235 int32_t HighThreshold; /*!< High threshold for the analog watchdog.
mbed_official 610:813dcc80987e 236 This parameter must be a number between Min_Data = -8388608 and Max_Data = 8388607 */
mbed_official 610:813dcc80987e 237 int32_t LowThreshold; /*!< Low threshold for the analog watchdog.
mbed_official 610:813dcc80987e 238 This parameter must be a number between Min_Data = -8388608 and Max_Data = 8388607 */
mbed_official 610:813dcc80987e 239 uint32_t HighBreakSignal; /*!< Break signal assigned to analog watchdog high threshold event.
mbed_official 610:813dcc80987e 240 This parameter can be a values combination of @ref DFSDM_BreakSignals */
mbed_official 610:813dcc80987e 241 uint32_t LowBreakSignal; /*!< Break signal assigned to analog watchdog low threshold event.
mbed_official 610:813dcc80987e 242 This parameter can be a values combination of @ref DFSDM_BreakSignals */
mbed_official 610:813dcc80987e 243 }DFSDM_Filter_AwdParamTypeDef;
mbed_official 610:813dcc80987e 244
mbed_official 610:813dcc80987e 245 /**
mbed_official 610:813dcc80987e 246 * @}
mbed_official 610:813dcc80987e 247 */
mbed_official 610:813dcc80987e 248 /* End of exported types -----------------------------------------------------*/
mbed_official 610:813dcc80987e 249
mbed_official 610:813dcc80987e 250 /* Exported constants --------------------------------------------------------*/
mbed_official 610:813dcc80987e 251 /** @defgroup DFSDM_Exported_Constants DFSDM Exported Constants
mbed_official 610:813dcc80987e 252 * @{
mbed_official 610:813dcc80987e 253 */
mbed_official 610:813dcc80987e 254
mbed_official 610:813dcc80987e 255 /** @defgroup DFSDM_Channel_OuputClock DFSDM channel output clock selection
mbed_official 610:813dcc80987e 256 * @{
mbed_official 610:813dcc80987e 257 */
mbed_official 610:813dcc80987e 258 #define DFSDM_CHANNEL_OUTPUT_CLOCK_SYSTEM ((uint32_t)0x00000000) /*!< Source for ouput clock is system clock */
mbed_official 610:813dcc80987e 259 #define DFSDM_CHANNEL_OUTPUT_CLOCK_AUDIO DFSDM_CHCFGR1_CKOUTSRC /*!< Source for ouput clock is audio clock */
mbed_official 610:813dcc80987e 260 /**
mbed_official 610:813dcc80987e 261 * @}
mbed_official 610:813dcc80987e 262 */
mbed_official 610:813dcc80987e 263
mbed_official 610:813dcc80987e 264 /** @defgroup DFSDM_Channel_InputMultiplexer DFSDM channel input multiplexer
mbed_official 610:813dcc80987e 265 * @{
mbed_official 610:813dcc80987e 266 */
mbed_official 610:813dcc80987e 267 #define DFSDM_CHANNEL_EXTERNAL_INPUTS ((uint32_t)0x00000000) /*!< Data are taken from external inputs */
mbed_official 610:813dcc80987e 268 #define DFSDM_CHANNEL_INTERNAL_REGISTER DFSDM_CHCFGR1_DATMPX_1 /*!< Data are taken from internal register */
mbed_official 610:813dcc80987e 269 /**
mbed_official 610:813dcc80987e 270 * @}
mbed_official 610:813dcc80987e 271 */
mbed_official 610:813dcc80987e 272
mbed_official 610:813dcc80987e 273 /** @defgroup DFSDM_Channel_DataPacking DFSDM channel input data packing
mbed_official 610:813dcc80987e 274 * @{
mbed_official 610:813dcc80987e 275 */
mbed_official 610:813dcc80987e 276 #define DFSDM_CHANNEL_STANDARD_MODE ((uint32_t)0x00000000) /*!< Standard data packing mode */
mbed_official 610:813dcc80987e 277 #define DFSDM_CHANNEL_INTERLEAVED_MODE DFSDM_CHCFGR1_DATPACK_0 /*!< Interleaved data packing mode */
mbed_official 610:813dcc80987e 278 #define DFSDM_CHANNEL_DUAL_MODE DFSDM_CHCFGR1_DATPACK_1 /*!< Dual data packing mode */
mbed_official 610:813dcc80987e 279 /**
mbed_official 610:813dcc80987e 280 * @}
mbed_official 610:813dcc80987e 281 */
mbed_official 610:813dcc80987e 282
mbed_official 610:813dcc80987e 283 /** @defgroup DFSDM_Channel_InputPins DFSDM channel input pins
mbed_official 610:813dcc80987e 284 * @{
mbed_official 610:813dcc80987e 285 */
mbed_official 610:813dcc80987e 286 #define DFSDM_CHANNEL_SAME_CHANNEL_PINS ((uint32_t)0x00000000) /*!< Input from pins on same channel */
mbed_official 610:813dcc80987e 287 #define DFSDM_CHANNEL_FOLLOWING_CHANNEL_PINS DFSDM_CHCFGR1_CHINSEL /*!< Input from pins on following channel */
mbed_official 610:813dcc80987e 288 /**
mbed_official 610:813dcc80987e 289 * @}
mbed_official 610:813dcc80987e 290 */
mbed_official 610:813dcc80987e 291
mbed_official 610:813dcc80987e 292 /** @defgroup DFSDM_Channel_SerialInterfaceType DFSDM channel serial interface type
mbed_official 610:813dcc80987e 293 * @{
mbed_official 610:813dcc80987e 294 */
mbed_official 610:813dcc80987e 295 #define DFSDM_CHANNEL_SPI_RISING ((uint32_t)0x00000000) /*!< SPI with rising edge */
mbed_official 610:813dcc80987e 296 #define DFSDM_CHANNEL_SPI_FALLING DFSDM_CHCFGR1_SITP_0 /*!< SPI with falling edge */
mbed_official 610:813dcc80987e 297 #define DFSDM_CHANNEL_MANCHESTER_RISING DFSDM_CHCFGR1_SITP_1 /*!< Manchester with rising edge */
mbed_official 610:813dcc80987e 298 #define DFSDM_CHANNEL_MANCHESTER_FALLING DFSDM_CHCFGR1_SITP /*!< Manchester with falling edge */
mbed_official 610:813dcc80987e 299 /**
mbed_official 610:813dcc80987e 300 * @}
mbed_official 610:813dcc80987e 301 */
mbed_official 610:813dcc80987e 302
mbed_official 610:813dcc80987e 303 /** @defgroup DFSDM_Channel_SpiClock DFSDM channel SPI clock selection
mbed_official 610:813dcc80987e 304 * @{
mbed_official 610:813dcc80987e 305 */
mbed_official 610:813dcc80987e 306 #define DFSDM_CHANNEL_SPI_CLOCK_EXTERNAL ((uint32_t)0x00000000) /*!< External SPI clock */
mbed_official 610:813dcc80987e 307 #define DFSDM_CHANNEL_SPI_CLOCK_INTERNAL DFSDM_CHCFGR1_SPICKSEL_0 /*!< Internal SPI clock */
mbed_official 610:813dcc80987e 308 #define DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_FALLING DFSDM_CHCFGR1_SPICKSEL_1 /*!< Internal SPI clock divided by 2, falling edge */
mbed_official 610:813dcc80987e 309 #define DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_RISING DFSDM_CHCFGR1_SPICKSEL /*!< Internal SPI clock divided by 2, rising edge */
mbed_official 610:813dcc80987e 310 /**
mbed_official 610:813dcc80987e 311 * @}
mbed_official 610:813dcc80987e 312 */
mbed_official 610:813dcc80987e 313
mbed_official 610:813dcc80987e 314 /** @defgroup DFSDM_Channel_AwdFilterOrder DFSDM channel analog watchdog filter order
mbed_official 610:813dcc80987e 315 * @{
mbed_official 610:813dcc80987e 316 */
mbed_official 610:813dcc80987e 317 #define DFSDM_CHANNEL_FASTSINC_ORDER ((uint32_t)0x00000000) /*!< FastSinc filter type */
mbed_official 610:813dcc80987e 318 #define DFSDM_CHANNEL_SINC1_ORDER DFSDM_AWSCDR_AWFORD_0 /*!< Sinc 1 filter type */
mbed_official 610:813dcc80987e 319 #define DFSDM_CHANNEL_SINC2_ORDER DFSDM_AWSCDR_AWFORD_1 /*!< Sinc 2 filter type */
mbed_official 610:813dcc80987e 320 #define DFSDM_CHANNEL_SINC3_ORDER DFSDM_AWSCDR_AWFORD /*!< Sinc 3 filter type */
mbed_official 610:813dcc80987e 321 /**
mbed_official 610:813dcc80987e 322 * @}
mbed_official 610:813dcc80987e 323 */
mbed_official 610:813dcc80987e 324
mbed_official 610:813dcc80987e 325 /** @defgroup DFSDM_Filter_Trigger DFSDM filter conversion trigger
mbed_official 610:813dcc80987e 326 * @{
mbed_official 610:813dcc80987e 327 */
mbed_official 610:813dcc80987e 328 #define DFSDM_FILTER_SW_TRIGGER ((uint32_t)0x00000000) /*!< Software trigger */
mbed_official 610:813dcc80987e 329 #define DFSDM_FILTER_SYNC_TRIGGER ((uint32_t)0x00000001) /*!< Synchronous with DFSDM0 */
mbed_official 610:813dcc80987e 330 #define DFSDM_FILTER_EXT_TRIGGER ((uint32_t)0x00000002) /*!< External trigger (only for injected conversion) */
mbed_official 610:813dcc80987e 331 /**
mbed_official 610:813dcc80987e 332 * @}
mbed_official 610:813dcc80987e 333 */
mbed_official 610:813dcc80987e 334
mbed_official 610:813dcc80987e 335 /** @defgroup DFSDM_Filter_ExtTrigger DFSDM filter external trigger
mbed_official 610:813dcc80987e 336 * @{
mbed_official 610:813dcc80987e 337 */
mbed_official 610:813dcc80987e 338 #define DFSDM_FILTER_EXT_TRIG_TIM1_TRGO ((uint32_t)0x00000000) /*!< For DFSDM 0, 1, 2 and 3 */
mbed_official 610:813dcc80987e 339 #define DFSDM_FILTER_EXT_TRIG_TIM1_TRGO2 DFSDM_CR1_JEXTSEL_0 /*!< For DFSDM 0, 1, 2 and 3 */
mbed_official 610:813dcc80987e 340 #define DFSDM_FILTER_EXT_TRIG_TIM8_TRGO DFSDM_CR1_JEXTSEL_1 /*!< For DFSDM 0, 1, 2 and 3 */
mbed_official 610:813dcc80987e 341 #define DFSDM_FILTER_EXT_TRIG_TIM8_TRGO2 (DFSDM_CR1_JEXTSEL_0 | DFSDM_CR1_JEXTSEL_1) /*!< For DFSDM 0, 1 and 2 */
mbed_official 610:813dcc80987e 342 #define DFSDM_FILTER_EXT_TRIG_TIM3_TRGO (DFSDM_CR1_JEXTSEL_0 | DFSDM_CR1_JEXTSEL_1) /*!< For DFSDM 3 */
mbed_official 610:813dcc80987e 343 #define DFSDM_FILTER_EXT_TRIG_TIM4_TRGO DFSDM_CR1_JEXTSEL_2 /*!< For DFSDM 0, 1 and 2 */
mbed_official 610:813dcc80987e 344 #define DFSDM_FILTER_EXT_TRIG_TIM16_OC1 DFSDM_CR1_JEXTSEL_2 /*!< For DFSDM 3 */
mbed_official 610:813dcc80987e 345 #define DFSDM_FILTER_EXT_TRIG_TIM6_TRGO (DFSDM_CR1_JEXTSEL_0 | DFSDM_CR1_JEXTSEL_2) /*!< For DFSDM 0 and 1 */
mbed_official 610:813dcc80987e 346 #define DFSDM_FILTER_EXT_TRIG_TIM7_TRGO (DFSDM_CR1_JEXTSEL_0 | DFSDM_CR1_JEXTSEL_2) /*!< For DFSDM 2 and 3 */
mbed_official 610:813dcc80987e 347 #define DFSDM_FILTER_EXT_TRIG_EXTI11 (DFSDM_CR1_JEXTSEL_1 | DFSDM_CR1_JEXTSEL_2) /*!< For DFSDM 0, 1, 2 and 3 */
mbed_official 610:813dcc80987e 348 #define DFSDM_FILTER_EXT_TRIG_EXTI15 DFSDM_CR1_JEXTSEL /*!< For DFSDM 0, 1, 2 and 3 */
mbed_official 610:813dcc80987e 349 /**
mbed_official 610:813dcc80987e 350 * @}
mbed_official 610:813dcc80987e 351 */
mbed_official 610:813dcc80987e 352
mbed_official 610:813dcc80987e 353 /** @defgroup DFSDM_Filter_ExtTriggerEdge DFSDM filter external trigger edge
mbed_official 610:813dcc80987e 354 * @{
mbed_official 610:813dcc80987e 355 */
mbed_official 610:813dcc80987e 356 #define DFSDM_FILTER_EXT_TRIG_RISING_EDGE DFSDM_CR1_JEXTEN_0 /*!< External rising edge */
mbed_official 610:813dcc80987e 357 #define DFSDM_FILTER_EXT_TRIG_FALLING_EDGE DFSDM_CR1_JEXTEN_1 /*!< External falling edge */
mbed_official 610:813dcc80987e 358 #define DFSDM_FILTER_EXT_TRIG_BOTH_EDGES DFSDM_CR1_JEXTEN /*!< External rising and falling edges */
mbed_official 610:813dcc80987e 359 /**
mbed_official 610:813dcc80987e 360 * @}
mbed_official 610:813dcc80987e 361 */
mbed_official 610:813dcc80987e 362
mbed_official 610:813dcc80987e 363 /** @defgroup DFSDM_Filter_SincOrder DFSDM filter sinc order
mbed_official 610:813dcc80987e 364 * @{
mbed_official 610:813dcc80987e 365 */
mbed_official 610:813dcc80987e 366 #define DFSDM_FILTER_FASTSINC_ORDER ((uint32_t)0x00000000) /*!< FastSinc filter type */
mbed_official 610:813dcc80987e 367 #define DFSDM_FILTER_SINC1_ORDER DFSDM_FCR_FORD_0 /*!< Sinc 1 filter type */
mbed_official 610:813dcc80987e 368 #define DFSDM_FILTER_SINC2_ORDER DFSDM_FCR_FORD_1 /*!< Sinc 2 filter type */
mbed_official 610:813dcc80987e 369 #define DFSDM_FILTER_SINC3_ORDER (DFSDM_FCR_FORD_0 | DFSDM_FCR_FORD_1) /*!< Sinc 3 filter type */
mbed_official 610:813dcc80987e 370 #define DFSDM_FILTER_SINC4_ORDER DFSDM_FCR_FORD_2 /*!< Sinc 4 filter type */
mbed_official 610:813dcc80987e 371 #define DFSDM_FILTER_SINC5_ORDER (DFSDM_FCR_FORD_0 | DFSDM_FCR_FORD_2) /*!< Sinc 5 filter type */
mbed_official 610:813dcc80987e 372 /**
mbed_official 610:813dcc80987e 373 * @}
mbed_official 610:813dcc80987e 374 */
mbed_official 610:813dcc80987e 375
mbed_official 610:813dcc80987e 376 /** @defgroup DFSDM_Filter_AwdDataSource DFSDM filter analog watchdog data source
mbed_official 610:813dcc80987e 377 * @{
mbed_official 610:813dcc80987e 378 */
mbed_official 610:813dcc80987e 379 #define DFSDM_FILTER_AWD_FILTER_DATA ((uint32_t)0x00000000) /*!< From digital filter */
mbed_official 610:813dcc80987e 380 #define DFSDM_FILTER_AWD_CHANNEL_DATA DFSDM_CR1_AWFSEL /*!< From analog watchdog channel */
mbed_official 610:813dcc80987e 381 /**
mbed_official 610:813dcc80987e 382 * @}
mbed_official 610:813dcc80987e 383 */
mbed_official 610:813dcc80987e 384
mbed_official 610:813dcc80987e 385 /** @defgroup DFSDM_Filter_ErrorCode DFSDM filter error code
mbed_official 610:813dcc80987e 386 * @{
mbed_official 610:813dcc80987e 387 */
mbed_official 610:813dcc80987e 388 #define DFSDM_FILTER_ERROR_NONE ((uint32_t)0x00000000) /*!< No error */
mbed_official 610:813dcc80987e 389 #define DFSDM_FILTER_ERROR_REGULAR_OVERRUN ((uint32_t)0x00000001) /*!< Overrun occurs during regular conversion */
mbed_official 610:813dcc80987e 390 #define DFSDM_FILTER_ERROR_INJECTED_OVERRUN ((uint32_t)0x00000002) /*!< Overrun occurs during injected conversion */
mbed_official 610:813dcc80987e 391 #define DFSDM_FILTER_ERROR_DMA ((uint32_t)0x00000003) /*!< DMA error occurs */
mbed_official 610:813dcc80987e 392 /**
mbed_official 610:813dcc80987e 393 * @}
mbed_official 610:813dcc80987e 394 */
mbed_official 610:813dcc80987e 395
mbed_official 610:813dcc80987e 396 /** @defgroup DFSDM_BreakSignals DFSDM break signals
mbed_official 610:813dcc80987e 397 * @{
mbed_official 610:813dcc80987e 398 */
mbed_official 610:813dcc80987e 399 #define DFSDM_NO_BREAK_SIGNAL ((uint32_t)0x00000000) /*!< No break signal */
mbed_official 610:813dcc80987e 400 #define DFSDM_BREAK_SIGNAL_0 ((uint32_t)0x00000001) /*!< Break signal 0 */
mbed_official 610:813dcc80987e 401 #define DFSDM_BREAK_SIGNAL_1 ((uint32_t)0x00000002) /*!< Break signal 1 */
mbed_official 610:813dcc80987e 402 #define DFSDM_BREAK_SIGNAL_2 ((uint32_t)0x00000004) /*!< Break signal 2 */
mbed_official 610:813dcc80987e 403 #define DFSDM_BREAK_SIGNAL_3 ((uint32_t)0x00000008) /*!< Break signal 3 */
mbed_official 610:813dcc80987e 404 /**
mbed_official 610:813dcc80987e 405 * @}
mbed_official 610:813dcc80987e 406 */
mbed_official 610:813dcc80987e 407
mbed_official 610:813dcc80987e 408 /** @defgroup DFSDM_Channel_Selection DFSDM Channel Selection
mbed_official 610:813dcc80987e 409 * @{
mbed_official 610:813dcc80987e 410 */
mbed_official 610:813dcc80987e 411 /* DFSDM Channels ------------------------------------------------------------*/
mbed_official 610:813dcc80987e 412 /* The DFSDM channels are defined as follows:
mbed_official 610:813dcc80987e 413 - in 16-bit LSB the channel mask is set
mbed_official 610:813dcc80987e 414 - in 16-bit MSB the channel number is set
mbed_official 610:813dcc80987e 415 e.g. for channel 5 definition:
mbed_official 610:813dcc80987e 416 - the channel mask is 0x00000020 (bit 5 is set)
mbed_official 610:813dcc80987e 417 - the channel number 5 is 0x00050000
mbed_official 610:813dcc80987e 418 --> Consequently, channel 5 definition is 0x00000020 | 0x00050000 = 0x00050020 */
mbed_official 610:813dcc80987e 419 #define DFSDM_CHANNEL_0 ((uint32_t)0x00000001)
mbed_official 610:813dcc80987e 420 #define DFSDM_CHANNEL_1 ((uint32_t)0x00010002)
mbed_official 610:813dcc80987e 421 #define DFSDM_CHANNEL_2 ((uint32_t)0x00020004)
mbed_official 610:813dcc80987e 422 #define DFSDM_CHANNEL_3 ((uint32_t)0x00030008)
mbed_official 610:813dcc80987e 423 #define DFSDM_CHANNEL_4 ((uint32_t)0x00040010)
mbed_official 610:813dcc80987e 424 #define DFSDM_CHANNEL_5 ((uint32_t)0x00050020)
mbed_official 610:813dcc80987e 425 #define DFSDM_CHANNEL_6 ((uint32_t)0x00060040)
mbed_official 610:813dcc80987e 426 #define DFSDM_CHANNEL_7 ((uint32_t)0x00070080)
mbed_official 610:813dcc80987e 427 /**
mbed_official 610:813dcc80987e 428 * @}
mbed_official 610:813dcc80987e 429 */
mbed_official 610:813dcc80987e 430
mbed_official 610:813dcc80987e 431 /** @defgroup DFSDM_ContinuousMode DFSDM Continuous Mode
mbed_official 610:813dcc80987e 432 * @{
mbed_official 610:813dcc80987e 433 */
mbed_official 610:813dcc80987e 434 #define DFSDM_CONTINUOUS_CONV_OFF ((uint32_t)0x00000000) /*!< Conversion are not continuous */
mbed_official 610:813dcc80987e 435 #define DFSDM_CONTINUOUS_CONV_ON ((uint32_t)0x00000001) /*!< Conversion are continuous */
mbed_official 610:813dcc80987e 436 /**
mbed_official 610:813dcc80987e 437 * @}
mbed_official 610:813dcc80987e 438 */
mbed_official 610:813dcc80987e 439
mbed_official 610:813dcc80987e 440 /** @defgroup DFSDM_AwdThreshold DFSDM analog watchdog threshold
mbed_official 610:813dcc80987e 441 * @{
mbed_official 610:813dcc80987e 442 */
mbed_official 610:813dcc80987e 443 #define DFSDM_AWD_HIGH_THRESHOLD ((uint32_t)0x00000000) /*!< Analog watchdog high threshold */
mbed_official 610:813dcc80987e 444 #define DFSDM_AWD_LOW_THRESHOLD ((uint32_t)0x00000001) /*!< Analog watchdog low threshold */
mbed_official 610:813dcc80987e 445 /**
mbed_official 610:813dcc80987e 446 * @}
mbed_official 610:813dcc80987e 447 */
mbed_official 610:813dcc80987e 448
mbed_official 610:813dcc80987e 449 /**
mbed_official 610:813dcc80987e 450 * @}
mbed_official 610:813dcc80987e 451 */
mbed_official 610:813dcc80987e 452 /* End of exported constants -------------------------------------------------*/
mbed_official 610:813dcc80987e 453
mbed_official 610:813dcc80987e 454 /* Exported macros -----------------------------------------------------------*/
mbed_official 610:813dcc80987e 455 /** @defgroup DFSDM_Exported_Macros DFSDM Exported Macros
mbed_official 610:813dcc80987e 456 * @{
mbed_official 610:813dcc80987e 457 */
mbed_official 610:813dcc80987e 458
mbed_official 610:813dcc80987e 459 /** @brief Reset DFSDM channel handle state.
mbed_official 610:813dcc80987e 460 * @param __HANDLE__: DFSDM channel handle.
mbed_official 610:813dcc80987e 461 * @retval None
mbed_official 610:813dcc80987e 462 */
mbed_official 610:813dcc80987e 463 #define __HAL_DFSDM_CHANNEL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DFSDM_CHANNEL_STATE_RESET)
mbed_official 610:813dcc80987e 464
mbed_official 610:813dcc80987e 465 /** @brief Reset DFSDM filter handle state.
mbed_official 610:813dcc80987e 466 * @param __HANDLE__: DFSDM filter handle.
mbed_official 610:813dcc80987e 467 * @retval None
mbed_official 610:813dcc80987e 468 */
mbed_official 610:813dcc80987e 469 #define __HAL_DFSDM_FILTER_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DFSDM_FILTER_STATE_RESET)
mbed_official 610:813dcc80987e 470
mbed_official 610:813dcc80987e 471 /**
mbed_official 610:813dcc80987e 472 * @}
mbed_official 610:813dcc80987e 473 */
mbed_official 610:813dcc80987e 474 /* End of exported macros ----------------------------------------------------*/
mbed_official 610:813dcc80987e 475
mbed_official 610:813dcc80987e 476 /* Exported functions --------------------------------------------------------*/
mbed_official 610:813dcc80987e 477 /** @addtogroup DFSDM_Exported_Functions DFSDM Exported Functions
mbed_official 610:813dcc80987e 478 * @{
mbed_official 610:813dcc80987e 479 */
mbed_official 610:813dcc80987e 480
mbed_official 610:813dcc80987e 481 /** @addtogroup DFSDM_Exported_Functions_Group1_Channel Channel initialization and de-initialization functions
mbed_official 610:813dcc80987e 482 * @{
mbed_official 610:813dcc80987e 483 */
mbed_official 610:813dcc80987e 484 /* Channel initialization and de-initialization functions *********************/
mbed_official 610:813dcc80987e 485 HAL_StatusTypeDef HAL_DFSDM_ChannelInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 486 HAL_StatusTypeDef HAL_DFSDM_ChannelDeInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 487 void HAL_DFSDM_ChannelMspInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 488 void HAL_DFSDM_ChannelMspDeInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 489 /**
mbed_official 610:813dcc80987e 490 * @}
mbed_official 610:813dcc80987e 491 */
mbed_official 610:813dcc80987e 492
mbed_official 610:813dcc80987e 493 /** @addtogroup DFSDM_Exported_Functions_Group2_Channel Channel operation functions
mbed_official 610:813dcc80987e 494 * @{
mbed_official 610:813dcc80987e 495 */
mbed_official 610:813dcc80987e 496 /* Channel operation functions ************************************************/
mbed_official 610:813dcc80987e 497 HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStart(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 498 HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStart_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 499 HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStop(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 500 HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStop_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 501
mbed_official 610:813dcc80987e 502 HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Threshold, uint32_t BreakSignal);
mbed_official 610:813dcc80987e 503 HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Threshold, uint32_t BreakSignal);
mbed_official 610:813dcc80987e 504 HAL_StatusTypeDef HAL_DFSDM_ChannelScdStop(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 505 HAL_StatusTypeDef HAL_DFSDM_ChannelScdStop_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 506
mbed_official 610:813dcc80987e 507 int16_t HAL_DFSDM_ChannelGetAwdValue(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 508 HAL_StatusTypeDef HAL_DFSDM_ChannelModifyOffset(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, int32_t Offset);
mbed_official 610:813dcc80987e 509
mbed_official 610:813dcc80987e 510 HAL_StatusTypeDef HAL_DFSDM_ChannelPollForCkab(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Timeout);
mbed_official 610:813dcc80987e 511 HAL_StatusTypeDef HAL_DFSDM_ChannelPollForScd(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Timeout);
mbed_official 610:813dcc80987e 512
mbed_official 610:813dcc80987e 513 void HAL_DFSDM_ChannelCkabCallback(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 514 void HAL_DFSDM_ChannelScdCallback(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 515 /**
mbed_official 610:813dcc80987e 516 * @}
mbed_official 610:813dcc80987e 517 */
mbed_official 610:813dcc80987e 518
mbed_official 610:813dcc80987e 519 /** @defgroup DFSDM_Exported_Functions_Group3_Channel Channel state function
mbed_official 610:813dcc80987e 520 * @{
mbed_official 610:813dcc80987e 521 */
mbed_official 610:813dcc80987e 522 /* Channel state function *****************************************************/
mbed_official 610:813dcc80987e 523 HAL_DFSDM_Channel_StateTypeDef HAL_DFSDM_ChannelGetState(DFSDM_Channel_HandleTypeDef *hdfsdm_channel);
mbed_official 610:813dcc80987e 524 /**
mbed_official 610:813dcc80987e 525 * @}
mbed_official 610:813dcc80987e 526 */
mbed_official 610:813dcc80987e 527
mbed_official 610:813dcc80987e 528 /** @addtogroup DFSDM_Exported_Functions_Group1_Filter Filter initialization and de-initialization functions
mbed_official 610:813dcc80987e 529 * @{
mbed_official 610:813dcc80987e 530 */
mbed_official 610:813dcc80987e 531 /* Filter initialization and de-initialization functions *********************/
mbed_official 610:813dcc80987e 532 HAL_StatusTypeDef HAL_DFSDM_FilterInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 533 HAL_StatusTypeDef HAL_DFSDM_FilterDeInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 534 void HAL_DFSDM_FilterMspInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 535 void HAL_DFSDM_FilterMspDeInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 536 /**
mbed_official 610:813dcc80987e 537 * @}
mbed_official 610:813dcc80987e 538 */
mbed_official 610:813dcc80987e 539
mbed_official 610:813dcc80987e 540 /** @addtogroup DFSDM_Exported_Functions_Group2_Filter Filter control functions
mbed_official 610:813dcc80987e 541 * @{
mbed_official 610:813dcc80987e 542 */
mbed_official 610:813dcc80987e 543 /* Filter control functions *********************/
mbed_official 610:813dcc80987e 544 HAL_StatusTypeDef HAL_DFSDM_FilterConfigRegChannel(DFSDM_Filter_HandleTypeDef *hdfsdm_filter,
mbed_official 610:813dcc80987e 545 uint32_t Channel,
mbed_official 610:813dcc80987e 546 uint32_t ContinuousMode);
mbed_official 610:813dcc80987e 547 HAL_StatusTypeDef HAL_DFSDM_FilterConfigInjChannel(DFSDM_Filter_HandleTypeDef *hdfsdm_filter,
mbed_official 610:813dcc80987e 548 uint32_t Channel);
mbed_official 610:813dcc80987e 549 /**
mbed_official 610:813dcc80987e 550 * @}
mbed_official 610:813dcc80987e 551 */
mbed_official 610:813dcc80987e 552
mbed_official 610:813dcc80987e 553 /** @addtogroup DFSDM_Exported_Functions_Group3_Filter Filter operation functions
mbed_official 610:813dcc80987e 554 * @{
mbed_official 610:813dcc80987e 555 */
mbed_official 610:813dcc80987e 556 /* Filter operation functions *********************/
mbed_official 610:813dcc80987e 557 HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 558 HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 559 HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length);
mbed_official 610:813dcc80987e 560 HAL_StatusTypeDef HAL_DFSDM_FilterRegularMsbStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length);
mbed_official 610:813dcc80987e 561 HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 562 HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 563 HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 564 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 565 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 566 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length);
mbed_official 610:813dcc80987e 567 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedMsbStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length);
mbed_official 610:813dcc80987e 568 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 569 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 570 HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 571 HAL_StatusTypeDef HAL_DFSDM_FilterAwdStart_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter,
mbed_official 610:813dcc80987e 572 DFSDM_Filter_AwdParamTypeDef* awdParam);
mbed_official 610:813dcc80987e 573 HAL_StatusTypeDef HAL_DFSDM_FilterAwdStop_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 574 HAL_StatusTypeDef HAL_DFSDM_FilterExdStart(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel);
mbed_official 610:813dcc80987e 575 HAL_StatusTypeDef HAL_DFSDM_FilterExdStop(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 576
mbed_official 610:813dcc80987e 577 int32_t HAL_DFSDM_FilterGetRegularValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t* Channel);
mbed_official 610:813dcc80987e 578 int32_t HAL_DFSDM_FilterGetInjectedValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t* Channel);
mbed_official 610:813dcc80987e 579 int32_t HAL_DFSDM_FilterGetExdMaxValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t* Channel);
mbed_official 610:813dcc80987e 580 int32_t HAL_DFSDM_FilterGetExdMinValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t* Channel);
mbed_official 610:813dcc80987e 581 uint32_t HAL_DFSDM_FilterGetConvTimeValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 582
mbed_official 610:813dcc80987e 583 void HAL_DFSDM_IRQHandler(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 584
mbed_official 610:813dcc80987e 585 HAL_StatusTypeDef HAL_DFSDM_FilterPollForRegConversion(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout);
mbed_official 610:813dcc80987e 586 HAL_StatusTypeDef HAL_DFSDM_FilterPollForInjConversion(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout);
mbed_official 610:813dcc80987e 587
mbed_official 610:813dcc80987e 588 void HAL_DFSDM_FilterRegConvCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 589 void HAL_DFSDM_FilterRegConvHalfCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 590 void HAL_DFSDM_FilterInjConvCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 591 void HAL_DFSDM_FilterInjConvHalfCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 592 void HAL_DFSDM_FilterAwdCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel, uint32_t Threshold);
mbed_official 610:813dcc80987e 593 void HAL_DFSDM_FilterErrorCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 594 /**
mbed_official 610:813dcc80987e 595 * @}
mbed_official 610:813dcc80987e 596 */
mbed_official 610:813dcc80987e 597
mbed_official 610:813dcc80987e 598 /** @defgroup DFSDM_Exported_Functions_Group4_Filter Filter state functions
mbed_official 610:813dcc80987e 599 * @{
mbed_official 610:813dcc80987e 600 */
mbed_official 610:813dcc80987e 601 /* Filter state functions *****************************************************/
mbed_official 610:813dcc80987e 602 HAL_DFSDM_Filter_StateTypeDef HAL_DFSDM_FilterGetState(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 603 uint32_t HAL_DFSDM_FilterGetError(DFSDM_Filter_HandleTypeDef *hdfsdm_filter);
mbed_official 610:813dcc80987e 604 /**
mbed_official 610:813dcc80987e 605 * @}
mbed_official 610:813dcc80987e 606 */
mbed_official 610:813dcc80987e 607
mbed_official 610:813dcc80987e 608 /**
mbed_official 610:813dcc80987e 609 * @}
mbed_official 610:813dcc80987e 610 */
mbed_official 610:813dcc80987e 611 /* End of exported functions -------------------------------------------------*/
mbed_official 610:813dcc80987e 612
mbed_official 610:813dcc80987e 613 /* Private macros ------------------------------------------------------------*/
mbed_official 610:813dcc80987e 614 /** @defgroup DFSDM_Private_Macros DFSDM Private Macros
mbed_official 610:813dcc80987e 615 * @{
mbed_official 610:813dcc80987e 616 */
mbed_official 610:813dcc80987e 617 #define IS_DFSDM_CHANNEL_OUTPUT_CLOCK(CLOCK) (((CLOCK) == DFSDM_CHANNEL_OUTPUT_CLOCK_SYSTEM) || \
mbed_official 610:813dcc80987e 618 ((CLOCK) == DFSDM_CHANNEL_OUTPUT_CLOCK_AUDIO))
mbed_official 610:813dcc80987e 619 #define IS_DFSDM_CHANNEL_OUTPUT_CLOCK_DIVIDER(DIVIDER) ((2 <= (DIVIDER)) && ((DIVIDER) <= 256))
mbed_official 610:813dcc80987e 620 #define IS_DFSDM_CHANNEL_INPUT(INPUT) (((INPUT) == DFSDM_CHANNEL_EXTERNAL_INPUTS) || \
mbed_official 610:813dcc80987e 621 ((INPUT) == DFSDM_CHANNEL_INTERNAL_REGISTER))
mbed_official 610:813dcc80987e 622 #define IS_DFSDM_CHANNEL_DATA_PACKING(MODE) (((MODE) == DFSDM_CHANNEL_STANDARD_MODE) || \
mbed_official 610:813dcc80987e 623 ((MODE) == DFSDM_CHANNEL_INTERLEAVED_MODE) || \
mbed_official 610:813dcc80987e 624 ((MODE) == DFSDM_CHANNEL_DUAL_MODE))
mbed_official 610:813dcc80987e 625 #define IS_DFSDM_CHANNEL_INPUT_PINS(PINS) (((PINS) == DFSDM_CHANNEL_SAME_CHANNEL_PINS) || \
mbed_official 610:813dcc80987e 626 ((PINS) == DFSDM_CHANNEL_FOLLOWING_CHANNEL_PINS))
mbed_official 610:813dcc80987e 627 #define IS_DFSDM_CHANNEL_SERIAL_INTERFACE_TYPE(MODE) (((MODE) == DFSDM_CHANNEL_SPI_RISING) || \
mbed_official 610:813dcc80987e 628 ((MODE) == DFSDM_CHANNEL_SPI_FALLING) || \
mbed_official 610:813dcc80987e 629 ((MODE) == DFSDM_CHANNEL_MANCHESTER_RISING) || \
mbed_official 610:813dcc80987e 630 ((MODE) == DFSDM_CHANNEL_MANCHESTER_FALLING))
mbed_official 610:813dcc80987e 631 #define IS_DFSDM_CHANNEL_SPI_CLOCK(TYPE) (((TYPE) == DFSDM_CHANNEL_SPI_CLOCK_EXTERNAL) || \
mbed_official 610:813dcc80987e 632 ((TYPE) == DFSDM_CHANNEL_SPI_CLOCK_INTERNAL) || \
mbed_official 610:813dcc80987e 633 ((TYPE) == DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_FALLING) || \
mbed_official 610:813dcc80987e 634 ((TYPE) == DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_RISING))
mbed_official 610:813dcc80987e 635 #define IS_DFSDM_CHANNEL_FILTER_ORDER(ORDER) (((ORDER) == DFSDM_CHANNEL_FASTSINC_ORDER) || \
mbed_official 610:813dcc80987e 636 ((ORDER) == DFSDM_CHANNEL_SINC1_ORDER) || \
mbed_official 610:813dcc80987e 637 ((ORDER) == DFSDM_CHANNEL_SINC2_ORDER) || \
mbed_official 610:813dcc80987e 638 ((ORDER) == DFSDM_CHANNEL_SINC3_ORDER))
mbed_official 610:813dcc80987e 639 #define IS_DFSDM_CHANNEL_FILTER_OVS_RATIO(RATIO) ((1 <= (RATIO)) && ((RATIO) <= 32))
mbed_official 610:813dcc80987e 640 #define IS_DFSDM_CHANNEL_OFFSET(VALUE) ((-8388608 <= (VALUE)) && ((VALUE) <= 8388607))
mbed_official 610:813dcc80987e 641 #define IS_DFSDM_CHANNEL_RIGHT_BIT_SHIFT(VALUE) ((VALUE) <= 0x1F)
mbed_official 610:813dcc80987e 642 #define IS_DFSDM_CHANNEL_SCD_THRESHOLD(VALUE) ((VALUE) <= 0xFF)
mbed_official 610:813dcc80987e 643 #define IS_DFSDM_FILTER_REG_TRIGGER(TRIG) (((TRIG) == DFSDM_FILTER_SW_TRIGGER) || \
mbed_official 610:813dcc80987e 644 ((TRIG) == DFSDM_FILTER_SYNC_TRIGGER))
mbed_official 610:813dcc80987e 645 #define IS_DFSDM_FILTER_INJ_TRIGGER(TRIG) (((TRIG) == DFSDM_FILTER_SW_TRIGGER) || \
mbed_official 610:813dcc80987e 646 ((TRIG) == DFSDM_FILTER_SYNC_TRIGGER) || \
mbed_official 610:813dcc80987e 647 ((TRIG) == DFSDM_FILTER_EXT_TRIGGER))
mbed_official 610:813dcc80987e 648 #define IS_DFSDM_FILTER_EXT_TRIG(TRIG) (((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM1_TRGO) || \
mbed_official 610:813dcc80987e 649 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM1_TRGO2) || \
mbed_official 610:813dcc80987e 650 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM8_TRGO) || \
mbed_official 610:813dcc80987e 651 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM8_TRGO2) || \
mbed_official 610:813dcc80987e 652 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM3_TRGO) || \
mbed_official 610:813dcc80987e 653 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM4_TRGO) || \
mbed_official 610:813dcc80987e 654 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM16_OC1) || \
mbed_official 610:813dcc80987e 655 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM6_TRGO) || \
mbed_official 610:813dcc80987e 656 ((TRIG) == DFSDM_FILTER_EXT_TRIG_TIM7_TRGO) || \
mbed_official 610:813dcc80987e 657 ((TRIG) == DFSDM_FILTER_EXT_TRIG_EXTI11) || \
mbed_official 610:813dcc80987e 658 ((TRIG) == DFSDM_FILTER_EXT_TRIG_EXTI15))
mbed_official 610:813dcc80987e 659 #define IS_DFSDM_FILTER_EXT_TRIG_EDGE(EDGE) (((EDGE) == DFSDM_FILTER_EXT_TRIG_RISING_EDGE) || \
mbed_official 610:813dcc80987e 660 ((EDGE) == DFSDM_FILTER_EXT_TRIG_FALLING_EDGE) || \
mbed_official 610:813dcc80987e 661 ((EDGE) == DFSDM_FILTER_EXT_TRIG_BOTH_EDGES))
mbed_official 610:813dcc80987e 662 #define IS_DFSDM_FILTER_SINC_ORDER(ORDER) (((ORDER) == DFSDM_FILTER_FASTSINC_ORDER) || \
mbed_official 610:813dcc80987e 663 ((ORDER) == DFSDM_FILTER_SINC1_ORDER) || \
mbed_official 610:813dcc80987e 664 ((ORDER) == DFSDM_FILTER_SINC2_ORDER) || \
mbed_official 610:813dcc80987e 665 ((ORDER) == DFSDM_FILTER_SINC3_ORDER) || \
mbed_official 610:813dcc80987e 666 ((ORDER) == DFSDM_FILTER_SINC4_ORDER) || \
mbed_official 610:813dcc80987e 667 ((ORDER) == DFSDM_FILTER_SINC5_ORDER))
mbed_official 610:813dcc80987e 668 #define IS_DFSDM_FILTER_OVS_RATIO(RATIO) ((1 <= (RATIO)) && ((RATIO) <= 1024))
mbed_official 610:813dcc80987e 669 #define IS_DFSDM_FILTER_INTEGRATOR_OVS_RATIO(RATIO) ((1 <= (RATIO)) && ((RATIO) <= 256))
mbed_official 610:813dcc80987e 670 #define IS_DFSDM_FILTER_AWD_DATA_SOURCE(DATA) (((DATA) == DFSDM_FILTER_AWD_FILTER_DATA) || \
mbed_official 610:813dcc80987e 671 ((DATA) == DFSDM_FILTER_AWD_CHANNEL_DATA))
mbed_official 610:813dcc80987e 672 #define IS_DFSDM_FILTER_AWD_THRESHOLD(VALUE) ((-8388608 <= (VALUE)) && ((VALUE) <= 8388607))
mbed_official 610:813dcc80987e 673 #define IS_DFSDM_BREAK_SIGNALS(VALUE) ((VALUE) <= 0xF)
mbed_official 610:813dcc80987e 674 #define IS_DFSDM_REGULAR_CHANNEL(CHANNEL) (((CHANNEL) == DFSDM_CHANNEL_0) || \
mbed_official 610:813dcc80987e 675 ((CHANNEL) == DFSDM_CHANNEL_1) || \
mbed_official 610:813dcc80987e 676 ((CHANNEL) == DFSDM_CHANNEL_2) || \
mbed_official 610:813dcc80987e 677 ((CHANNEL) == DFSDM_CHANNEL_3) || \
mbed_official 610:813dcc80987e 678 ((CHANNEL) == DFSDM_CHANNEL_4) || \
mbed_official 610:813dcc80987e 679 ((CHANNEL) == DFSDM_CHANNEL_5) || \
mbed_official 610:813dcc80987e 680 ((CHANNEL) == DFSDM_CHANNEL_6) || \
mbed_official 610:813dcc80987e 681 ((CHANNEL) == DFSDM_CHANNEL_7))
mbed_official 610:813dcc80987e 682 #define IS_DFSDM_INJECTED_CHANNEL(CHANNEL) (((CHANNEL) != 0) && ((CHANNEL) <= 0x000F00FF))
mbed_official 610:813dcc80987e 683 #define IS_DFSDM_CONTINUOUS_MODE(MODE) (((MODE) == DFSDM_CONTINUOUS_CONV_OFF) || \
mbed_official 610:813dcc80987e 684 ((MODE) == DFSDM_CONTINUOUS_CONV_ON))
mbed_official 610:813dcc80987e 685 /**
mbed_official 610:813dcc80987e 686 * @}
mbed_official 610:813dcc80987e 687 */
mbed_official 610:813dcc80987e 688 /* End of private macros -----------------------------------------------------*/
mbed_official 610:813dcc80987e 689
mbed_official 610:813dcc80987e 690 /**
mbed_official 610:813dcc80987e 691 * @}
mbed_official 610:813dcc80987e 692 */
mbed_official 610:813dcc80987e 693
mbed_official 610:813dcc80987e 694 /**
mbed_official 610:813dcc80987e 695 * @}
mbed_official 610:813dcc80987e 696 */
mbed_official 610:813dcc80987e 697
mbed_official 610:813dcc80987e 698 #ifdef __cplusplus
mbed_official 610:813dcc80987e 699 }
mbed_official 610:813dcc80987e 700 #endif
mbed_official 610:813dcc80987e 701
mbed_official 610:813dcc80987e 702 #endif /* __STM32L4xx_HAL_DFSDM_H */
mbed_official 610:813dcc80987e 703
mbed_official 610:813dcc80987e 704 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/