STM32F479xx HAL User Manual
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f4xx_hal_dac.h 00004 * @author MCD Application Team 00005 * @brief Header file of DAC HAL module. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * <h2><center>© Copyright (c) 2016 STMicroelectronics. 00010 * All rights reserved.</center></h2> 00011 * 00012 * This software component is licensed by ST under BSD 3-Clause license, 00013 * the "License"; You may not use this file except in compliance with the 00014 * License. You may obtain a copy of the License at: 00015 * opensource.org/licenses/BSD-3-Clause 00016 * 00017 ****************************************************************************** 00018 */ 00019 00020 /* Define to prevent recursive inclusion -------------------------------------*/ 00021 #ifndef STM32F4xx_HAL_DAC_H 00022 #define STM32F4xx_HAL_DAC_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /** @addtogroup STM32F4xx_HAL_Driver 00029 * @{ 00030 */ 00031 00032 /* Includes ------------------------------------------------------------------*/ 00033 #include "stm32f4xx_hal_def.h" 00034 00035 #if defined(DAC) 00036 00037 /** @addtogroup DAC 00038 * @{ 00039 */ 00040 00041 /* Exported types ------------------------------------------------------------*/ 00042 00043 /** @defgroup DAC_Exported_Types DAC Exported Types 00044 * @{ 00045 */ 00046 00047 /** 00048 * @brief HAL State structures definition 00049 */ 00050 typedef enum 00051 { 00052 HAL_DAC_STATE_RESET = 0x00U, /*!< DAC not yet initialized or disabled */ 00053 HAL_DAC_STATE_READY = 0x01U, /*!< DAC initialized and ready for use */ 00054 HAL_DAC_STATE_BUSY = 0x02U, /*!< DAC internal processing is ongoing */ 00055 HAL_DAC_STATE_TIMEOUT = 0x03U, /*!< DAC timeout state */ 00056 HAL_DAC_STATE_ERROR = 0x04U /*!< DAC error state */ 00057 00058 } HAL_DAC_StateTypeDef; 00059 00060 /** 00061 * @brief DAC handle Structure definition 00062 */ 00063 #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) 00064 typedef struct __DAC_HandleTypeDef 00065 #else 00066 typedef struct 00067 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ 00068 { 00069 DAC_TypeDef *Instance; /*!< Register base address */ 00070 00071 __IO HAL_DAC_StateTypeDef State; /*!< DAC communication state */ 00072 00073 HAL_LockTypeDef Lock; /*!< DAC locking object */ 00074 00075 DMA_HandleTypeDef *DMA_Handle1; /*!< Pointer DMA handler for channel 1 */ 00076 00077 DMA_HandleTypeDef *DMA_Handle2; /*!< Pointer DMA handler for channel 2 */ 00078 00079 __IO uint32_t ErrorCode; /*!< DAC Error code */ 00080 00081 #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) 00082 void (* ConvCpltCallbackCh1) (struct __DAC_HandleTypeDef *hdac); 00083 void (* ConvHalfCpltCallbackCh1) (struct __DAC_HandleTypeDef *hdac); 00084 void (* ErrorCallbackCh1) (struct __DAC_HandleTypeDef *hdac); 00085 void (* DMAUnderrunCallbackCh1) (struct __DAC_HandleTypeDef *hdac); 00086 #if defined(DAC_CHANNEL2_SUPPORT) 00087 void (* ConvCpltCallbackCh2) (struct __DAC_HandleTypeDef *hdac); 00088 void (* ConvHalfCpltCallbackCh2) (struct __DAC_HandleTypeDef *hdac); 00089 void (* ErrorCallbackCh2) (struct __DAC_HandleTypeDef *hdac); 00090 void (* DMAUnderrunCallbackCh2) (struct __DAC_HandleTypeDef *hdac); 00091 #endif /* DAC_CHANNEL2_SUPPORT */ 00092 00093 void (* MspInitCallback) (struct __DAC_HandleTypeDef *hdac); 00094 void (* MspDeInitCallback) (struct __DAC_HandleTypeDef *hdac); 00095 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ 00096 00097 } DAC_HandleTypeDef; 00098 00099 /** 00100 * @brief DAC Configuration regular Channel structure definition 00101 */ 00102 typedef struct 00103 { 00104 uint32_t DAC_Trigger; /*!< Specifies the external trigger for the selected DAC channel. 00105 This parameter can be a value of @ref DAC_trigger_selection */ 00106 00107 uint32_t DAC_OutputBuffer; /*!< Specifies whether the DAC channel output buffer is enabled or disabled. 00108 This parameter can be a value of @ref DAC_output_buffer */ 00109 00110 } DAC_ChannelConfTypeDef; 00111 00112 #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) 00113 /** 00114 * @brief HAL DAC Callback ID enumeration definition 00115 */ 00116 typedef enum 00117 { 00118 HAL_DAC_CH1_COMPLETE_CB_ID = 0x00U, /*!< DAC CH1 Complete Callback ID */ 00119 HAL_DAC_CH1_HALF_COMPLETE_CB_ID = 0x01U, /*!< DAC CH1 half Complete Callback ID */ 00120 HAL_DAC_CH1_ERROR_ID = 0x02U, /*!< DAC CH1 error Callback ID */ 00121 HAL_DAC_CH1_UNDERRUN_CB_ID = 0x03U, /*!< DAC CH1 underrun Callback ID */ 00122 #if defined(DAC_CHANNEL2_SUPPORT) 00123 HAL_DAC_CH2_COMPLETE_CB_ID = 0x04U, /*!< DAC CH2 Complete Callback ID */ 00124 HAL_DAC_CH2_HALF_COMPLETE_CB_ID = 0x05U, /*!< DAC CH2 half Complete Callback ID */ 00125 HAL_DAC_CH2_ERROR_ID = 0x06U, /*!< DAC CH2 error Callback ID */ 00126 HAL_DAC_CH2_UNDERRUN_CB_ID = 0x07U, /*!< DAC CH2 underrun Callback ID */ 00127 #endif /* DAC_CHANNEL2_SUPPORT */ 00128 HAL_DAC_MSPINIT_CB_ID = 0x08U, /*!< DAC MspInit Callback ID */ 00129 HAL_DAC_MSPDEINIT_CB_ID = 0x09U, /*!< DAC MspDeInit Callback ID */ 00130 HAL_DAC_ALL_CB_ID = 0x0AU /*!< DAC All ID */ 00131 } HAL_DAC_CallbackIDTypeDef; 00132 00133 /** 00134 * @brief HAL DAC Callback pointer definition 00135 */ 00136 typedef void (*pDAC_CallbackTypeDef)(DAC_HandleTypeDef *hdac); 00137 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ 00138 00139 /** 00140 * @} 00141 */ 00142 00143 /* Exported constants --------------------------------------------------------*/ 00144 00145 /** @defgroup DAC_Exported_Constants DAC Exported Constants 00146 * @{ 00147 */ 00148 00149 /** @defgroup DAC_Error_Code DAC Error Code 00150 * @{ 00151 */ 00152 #define HAL_DAC_ERROR_NONE 0x00U /*!< No error */ 00153 #define HAL_DAC_ERROR_DMAUNDERRUNCH1 0x01U /*!< DAC channel1 DMA underrun error */ 00154 #if defined(DAC_CHANNEL2_SUPPORT) 00155 #define HAL_DAC_ERROR_DMAUNDERRUNCH2 0x02U /*!< DAC channel2 DMA underrun error */ 00156 #endif /* DAC_CHANNEL2_SUPPORT */ 00157 #define HAL_DAC_ERROR_DMA 0x04U /*!< DMA error */ 00158 #define HAL_DAC_ERROR_TIMEOUT 0x08U /*!< Timeout error */ 00159 #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) 00160 #define HAL_DAC_ERROR_INVALID_CALLBACK 0x10U /*!< Invalid callback error */ 00161 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ 00162 00163 /** 00164 * @} 00165 */ 00166 00167 /** @defgroup DAC_trigger_selection DAC trigger selection 00168 * @{ 00169 */ 00170 #define DAC_TRIGGER_NONE 0x00000000UL /*!< Conversion is automatic once the DAC1_DHRxxxx register has been loaded, and not by external trigger */ 00171 #define DAC_TRIGGER_T2_TRGO (DAC_CR_TSEL1_2 | DAC_CR_TEN1) /*!< TIM2 TRGO selected as external conversion trigger for DAC channel */ 00172 #define DAC_TRIGGER_T4_TRGO (DAC_CR_TSEL1_2 | DAC_CR_TSEL1_0 | DAC_CR_TEN1) /*!< TIM4 TRGO selected as external conversion trigger for DAC channel */ 00173 #define DAC_TRIGGER_T5_TRGO ( DAC_CR_TSEL1_1 | DAC_CR_TSEL1_0 | DAC_CR_TEN1) /*!< TIM3 TRGO selected as external conversion trigger for DAC channel */ 00174 #define DAC_TRIGGER_T6_TRGO ( DAC_CR_TEN1) /*!< Conversion started by software trigger for DAC channel */ 00175 #define DAC_TRIGGER_T7_TRGO ( DAC_CR_TSEL1_1 | DAC_CR_TEN1) /*!< TIM7 TRGO selected as external conversion trigger for DAC channel */ 00176 #define DAC_TRIGGER_T8_TRGO ( DAC_CR_TSEL1_0 | DAC_CR_TEN1) /*!< TIM8 TRGO selected as external conversion trigger for DAC channel */ 00177 #define DAC_TRIGGER_EXT_IT9 (DAC_CR_TSEL1_2 | DAC_CR_TSEL1_1 | DAC_CR_TEN1) /*!< EXTI Line9 event selected as external conversion trigger for DAC channel */ 00178 #define DAC_TRIGGER_SOFTWARE (DAC_CR_TSEL1 | DAC_CR_TEN1) /*!< Conversion started by software trigger for DAC channel */ 00179 00180 /** 00181 * @} 00182 */ 00183 00184 /** @defgroup DAC_output_buffer DAC output buffer 00185 * @{ 00186 */ 00187 #define DAC_OUTPUTBUFFER_ENABLE 0x00000000U 00188 #define DAC_OUTPUTBUFFER_DISABLE (DAC_CR_BOFF1) 00189 00190 /** 00191 * @} 00192 */ 00193 00194 /** @defgroup DAC_Channel_selection DAC Channel selection 00195 * @{ 00196 */ 00197 #define DAC_CHANNEL_1 0x00000000U 00198 #if defined(DAC_CHANNEL2_SUPPORT) 00199 #define DAC_CHANNEL_2 0x00000010U 00200 #endif /* DAC_CHANNEL2_SUPPORT */ 00201 /** 00202 * @} 00203 */ 00204 00205 /** @defgroup DAC_data_alignment DAC data alignment 00206 * @{ 00207 */ 00208 #define DAC_ALIGN_12B_R 0x00000000U 00209 #define DAC_ALIGN_12B_L 0x00000004U 00210 #define DAC_ALIGN_8B_R 0x00000008U 00211 00212 /** 00213 * @} 00214 */ 00215 00216 /** @defgroup DAC_flags_definition DAC flags definition 00217 * @{ 00218 */ 00219 #define DAC_FLAG_DMAUDR1 (DAC_SR_DMAUDR1) 00220 #if defined(DAC_CHANNEL2_SUPPORT) 00221 #define DAC_FLAG_DMAUDR2 (DAC_SR_DMAUDR2) 00222 #endif /* DAC_CHANNEL2_SUPPORT */ 00223 00224 /** 00225 * @} 00226 */ 00227 00228 /** @defgroup DAC_IT_definition DAC IT definition 00229 * @{ 00230 */ 00231 #define DAC_IT_DMAUDR1 (DAC_SR_DMAUDR1) 00232 #if defined(DAC_CHANNEL2_SUPPORT) 00233 #define DAC_IT_DMAUDR2 (DAC_SR_DMAUDR2) 00234 #endif /* DAC_CHANNEL2_SUPPORT */ 00235 00236 /** 00237 * @} 00238 */ 00239 00240 /** 00241 * @} 00242 */ 00243 00244 /* Exported macro ------------------------------------------------------------*/ 00245 00246 /** @defgroup DAC_Exported_Macros DAC Exported Macros 00247 * @{ 00248 */ 00249 00250 /** @brief Reset DAC handle state. 00251 * @param __HANDLE__ specifies the DAC handle. 00252 * @retval None 00253 */ 00254 #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) 00255 #define __HAL_DAC_RESET_HANDLE_STATE(__HANDLE__) do { \ 00256 (__HANDLE__)->State = HAL_DAC_STATE_RESET; \ 00257 (__HANDLE__)->MspInitCallback = NULL; \ 00258 (__HANDLE__)->MspDeInitCallback = NULL; \ 00259 } while(0) 00260 #else 00261 #define __HAL_DAC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DAC_STATE_RESET) 00262 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ 00263 00264 /** @brief Enable the DAC channel. 00265 * @param __HANDLE__ specifies the DAC handle. 00266 * @param __DAC_Channel__ specifies the DAC channel 00267 * @retval None 00268 */ 00269 #define __HAL_DAC_ENABLE(__HANDLE__, __DAC_Channel__) \ 00270 ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << ((__DAC_Channel__) & 0x10UL))) 00271 00272 /** @brief Disable the DAC channel. 00273 * @param __HANDLE__ specifies the DAC handle 00274 * @param __DAC_Channel__ specifies the DAC channel. 00275 * @retval None 00276 */ 00277 #define __HAL_DAC_DISABLE(__HANDLE__, __DAC_Channel__) \ 00278 ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << ((__DAC_Channel__) & 0x10UL))) 00279 00280 /** @brief Set DHR12R1 alignment. 00281 * @param __ALIGNMENT__ specifies the DAC alignment 00282 * @retval None 00283 */ 00284 #define DAC_DHR12R1_ALIGNMENT(__ALIGNMENT__) (0x00000008UL + (__ALIGNMENT__)) 00285 00286 #if defined(DAC_CHANNEL2_SUPPORT) 00287 /** @brief Set DHR12R2 alignment. 00288 * @param __ALIGNMENT__ specifies the DAC alignment 00289 * @retval None 00290 */ 00291 #define DAC_DHR12R2_ALIGNMENT(__ALIGNMENT__) (0x00000014UL + (__ALIGNMENT__)) 00292 #endif /* DAC_CHANNEL2_SUPPORT */ 00293 00294 /** @brief Set DHR12RD alignment. 00295 * @param __ALIGNMENT__ specifies the DAC alignment 00296 * @retval None 00297 */ 00298 #define DAC_DHR12RD_ALIGNMENT(__ALIGNMENT__) (0x00000020UL + (__ALIGNMENT__)) 00299 00300 /** @brief Enable the DAC interrupt. 00301 * @param __HANDLE__ specifies the DAC handle 00302 * @param __INTERRUPT__ specifies the DAC interrupt. 00303 * This parameter can be any combination of the following values: 00304 * @arg DAC_IT_DMAUDR1 DAC channel 1 DMA underrun interrupt 00305 * @arg DAC_IT_DMAUDR2 DAC channel 2 DMA underrun interrupt 00306 * @retval None 00307 */ 00308 #define __HAL_DAC_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__)) 00309 00310 /** @brief Disable the DAC interrupt. 00311 * @param __HANDLE__ specifies the DAC handle 00312 * @param __INTERRUPT__ specifies the DAC interrupt. 00313 * This parameter can be any combination of the following values: 00314 * @arg DAC_IT_DMAUDR1 DAC channel 1 DMA underrun interrupt 00315 * @arg DAC_IT_DMAUDR2 DAC channel 2 DMA underrun interrupt 00316 * @retval None 00317 */ 00318 #define __HAL_DAC_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__)) 00319 00320 /** @brief Check whether the specified DAC interrupt source is enabled or not. 00321 * @param __HANDLE__ DAC handle 00322 * @param __INTERRUPT__ DAC interrupt source to check 00323 * This parameter can be any combination of the following values: 00324 * @arg DAC_IT_DMAUDR1 DAC channel 1 DMA underrun interrupt 00325 * @arg DAC_IT_DMAUDR2 DAC channel 2 DMA underrun interrupt 00326 * @retval State of interruption (SET or RESET) 00327 */ 00328 #define __HAL_DAC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR\ 00329 & (__INTERRUPT__)) == (__INTERRUPT__)) 00330 00331 /** @brief Get the selected DAC's flag status. 00332 * @param __HANDLE__ specifies the DAC handle. 00333 * @param __FLAG__ specifies the DAC flag to get. 00334 * This parameter can be any combination of the following values: 00335 * @arg DAC_FLAG_DMAUDR1 DAC channel 1 DMA underrun flag 00336 * @arg DAC_FLAG_DMAUDR2 DAC channel 2 DMA underrun flag 00337 * @retval None 00338 */ 00339 #define __HAL_DAC_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__)) 00340 00341 /** @brief Clear the DAC's flag. 00342 * @param __HANDLE__ specifies the DAC handle. 00343 * @param __FLAG__ specifies the DAC flag to clear. 00344 * This parameter can be any combination of the following values: 00345 * @arg DAC_FLAG_DMAUDR1 DAC channel 1 DMA underrun flag 00346 * @arg DAC_FLAG_DMAUDR2 DAC channel 2 DMA underrun flag 00347 * @retval None 00348 */ 00349 #define __HAL_DAC_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = (__FLAG__)) 00350 00351 /** 00352 * @} 00353 */ 00354 00355 /* Private macro -------------------------------------------------------------*/ 00356 00357 /** @defgroup DAC_Private_Macros DAC Private Macros 00358 * @{ 00359 */ 00360 #define IS_DAC_OUTPUT_BUFFER_STATE(STATE) (((STATE) == DAC_OUTPUTBUFFER_ENABLE) || \ 00361 ((STATE) == DAC_OUTPUTBUFFER_DISABLE)) 00362 00363 #if defined(DAC_CHANNEL2_SUPPORT) 00364 #define IS_DAC_CHANNEL(CHANNEL) (((CHANNEL) == DAC_CHANNEL_1) || \ 00365 ((CHANNEL) == DAC_CHANNEL_2)) 00366 #else 00367 #define IS_DAC_CHANNEL(CHANNEL) ((CHANNEL) == DAC_CHANNEL_1) 00368 #endif /* DAC_CHANNEL2_SUPPORT */ 00369 00370 #define IS_DAC_ALIGN(ALIGN) (((ALIGN) == DAC_ALIGN_12B_R) || \ 00371 ((ALIGN) == DAC_ALIGN_12B_L) || \ 00372 ((ALIGN) == DAC_ALIGN_8B_R)) 00373 00374 #define IS_DAC_DATA(DATA) ((DATA) <= 0xFFF0UL) 00375 00376 /** 00377 * @} 00378 */ 00379 00380 /* Include DAC HAL Extended module */ 00381 #include "stm32f4xx_hal_dac_ex.h" 00382 00383 /* Exported functions --------------------------------------------------------*/ 00384 00385 /** @addtogroup DAC_Exported_Functions 00386 * @{ 00387 */ 00388 00389 /** @addtogroup DAC_Exported_Functions_Group1 00390 * @{ 00391 */ 00392 /* Initialization and de-initialization functions *****************************/ 00393 HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac); 00394 HAL_StatusTypeDef HAL_DAC_DeInit(DAC_HandleTypeDef *hdac); 00395 void HAL_DAC_MspInit(DAC_HandleTypeDef *hdac); 00396 void HAL_DAC_MspDeInit(DAC_HandleTypeDef *hdac); 00397 00398 /** 00399 * @} 00400 */ 00401 00402 /** @addtogroup DAC_Exported_Functions_Group2 00403 * @{ 00404 */ 00405 /* IO operation functions *****************************************************/ 00406 HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel); 00407 HAL_StatusTypeDef HAL_DAC_Stop(DAC_HandleTypeDef *hdac, uint32_t Channel); 00408 HAL_StatusTypeDef HAL_DAC_Start_DMA(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t *pData, uint32_t Length, 00409 uint32_t Alignment); 00410 HAL_StatusTypeDef HAL_DAC_Stop_DMA(DAC_HandleTypeDef *hdac, uint32_t Channel); 00411 void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac); 00412 HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data); 00413 00414 void HAL_DAC_ConvCpltCallbackCh1(DAC_HandleTypeDef *hdac); 00415 void HAL_DAC_ConvHalfCpltCallbackCh1(DAC_HandleTypeDef *hdac); 00416 void HAL_DAC_ErrorCallbackCh1(DAC_HandleTypeDef *hdac); 00417 void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac); 00418 00419 #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) 00420 /* DAC callback registering/unregistering */ 00421 HAL_StatusTypeDef HAL_DAC_RegisterCallback(DAC_HandleTypeDef *hdac, HAL_DAC_CallbackIDTypeDef CallbackID, 00422 pDAC_CallbackTypeDef pCallback); 00423 HAL_StatusTypeDef HAL_DAC_UnRegisterCallback(DAC_HandleTypeDef *hdac, HAL_DAC_CallbackIDTypeDef CallbackID); 00424 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ 00425 00426 /** 00427 * @} 00428 */ 00429 00430 /** @addtogroup DAC_Exported_Functions_Group3 00431 * @{ 00432 */ 00433 /* Peripheral Control functions ***********************************************/ 00434 uint32_t HAL_DAC_GetValue(DAC_HandleTypeDef *hdac, uint32_t Channel); 00435 HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel); 00436 /** 00437 * @} 00438 */ 00439 00440 /** @addtogroup DAC_Exported_Functions_Group4 00441 * @{ 00442 */ 00443 /* Peripheral State and Error functions ***************************************/ 00444 HAL_DAC_StateTypeDef HAL_DAC_GetState(DAC_HandleTypeDef *hdac); 00445 uint32_t HAL_DAC_GetError(DAC_HandleTypeDef *hdac); 00446 00447 /** 00448 * @} 00449 */ 00450 00451 /** 00452 * @} 00453 */ 00454 00455 /** @defgroup DAC_Private_Functions DAC Private Functions 00456 * @{ 00457 */ 00458 void DAC_DMAConvCpltCh1(DMA_HandleTypeDef *hdma); 00459 void DAC_DMAErrorCh1(DMA_HandleTypeDef *hdma); 00460 void DAC_DMAHalfConvCpltCh1(DMA_HandleTypeDef *hdma); 00461 /** 00462 * @} 00463 */ 00464 00465 /** 00466 * @} 00467 */ 00468 00469 #endif /* DAC */ 00470 00471 /** 00472 * @} 00473 */ 00474 00475 #ifdef __cplusplus 00476 } 00477 #endif 00478 00479 00480 #endif /* STM32F4xx_HAL_DAC_H */ 00481 00482 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/