mbed(SerialHalfDuplex入り)
Fork of mbed by
TARGET_NUCLEO_F103RB/stm32f1xx_hal_dac.h@96:487b796308b0, 2015-03-17 (annotated)
- Committer:
- Kojto
- Date:
- Tue Mar 17 14:27:45 2015 +0000
- Revision:
- 96:487b796308b0
Release 96 of the mbed library
Changes:
- IAR support for ble boards, lpc, ethernet stack
- RTC - attach function to redirect time functions
- Nucleo F103RB - cube driver
- k20xx - fixes for teensy and k20 platforms in sleep/deepsleep and usb
- STM32L0, Nucleo/Disco L053 - refactoring
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 96:487b796308b0 | 1 | /** |
Kojto | 96:487b796308b0 | 2 | ****************************************************************************** |
Kojto | 96:487b796308b0 | 3 | * @file stm32f1xx_hal_dac.h |
Kojto | 96:487b796308b0 | 4 | * @author MCD Application Team |
Kojto | 96:487b796308b0 | 5 | * @version V1.0.0 |
Kojto | 96:487b796308b0 | 6 | * @date 15-December-2014 |
Kojto | 96:487b796308b0 | 7 | * @brief Header file of DAC HAL module. |
Kojto | 96:487b796308b0 | 8 | ****************************************************************************** |
Kojto | 96:487b796308b0 | 9 | * @attention |
Kojto | 96:487b796308b0 | 10 | * |
Kojto | 96:487b796308b0 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
Kojto | 96:487b796308b0 | 12 | * |
Kojto | 96:487b796308b0 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 96:487b796308b0 | 14 | * are permitted provided that the following conditions are met: |
Kojto | 96:487b796308b0 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 96:487b796308b0 | 16 | * this list of conditions and the following disclaimer. |
Kojto | 96:487b796308b0 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 96:487b796308b0 | 18 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 96:487b796308b0 | 19 | * and/or other materials provided with the distribution. |
Kojto | 96:487b796308b0 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 96:487b796308b0 | 21 | * may be used to endorse or promote products derived from this software |
Kojto | 96:487b796308b0 | 22 | * without specific prior written permission. |
Kojto | 96:487b796308b0 | 23 | * |
Kojto | 96:487b796308b0 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 96:487b796308b0 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 96:487b796308b0 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 96:487b796308b0 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 96:487b796308b0 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 96:487b796308b0 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 96:487b796308b0 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 96:487b796308b0 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 96:487b796308b0 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 96:487b796308b0 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 96:487b796308b0 | 34 | * |
Kojto | 96:487b796308b0 | 35 | ****************************************************************************** |
Kojto | 96:487b796308b0 | 36 | */ |
Kojto | 96:487b796308b0 | 37 | |
Kojto | 96:487b796308b0 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Kojto | 96:487b796308b0 | 39 | #ifndef __STM32F1xx_HAL_DAC_H |
Kojto | 96:487b796308b0 | 40 | #define __STM32F1xx_HAL_DAC_H |
Kojto | 96:487b796308b0 | 41 | |
Kojto | 96:487b796308b0 | 42 | #ifdef __cplusplus |
Kojto | 96:487b796308b0 | 43 | extern "C" { |
Kojto | 96:487b796308b0 | 44 | #endif |
Kojto | 96:487b796308b0 | 45 | |
Kojto | 96:487b796308b0 | 46 | #if defined (STM32F100xB) || defined (STM32F100xE) || defined (STM32F101xE) || defined (STM32F101xG) || defined (STM32F103xE) || defined (STM32F103xG) || defined (STM32F105xC) || defined (STM32F107xC) |
Kojto | 96:487b796308b0 | 47 | |
Kojto | 96:487b796308b0 | 48 | /* Includes ------------------------------------------------------------------*/ |
Kojto | 96:487b796308b0 | 49 | #include "stm32f1xx_hal_def.h" |
Kojto | 96:487b796308b0 | 50 | |
Kojto | 96:487b796308b0 | 51 | /** @addtogroup STM32F1xx_HAL_Driver |
Kojto | 96:487b796308b0 | 52 | * @{ |
Kojto | 96:487b796308b0 | 53 | */ |
Kojto | 96:487b796308b0 | 54 | |
Kojto | 96:487b796308b0 | 55 | /** @addtogroup DAC |
Kojto | 96:487b796308b0 | 56 | * @{ |
Kojto | 96:487b796308b0 | 57 | */ |
Kojto | 96:487b796308b0 | 58 | |
Kojto | 96:487b796308b0 | 59 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 96:487b796308b0 | 60 | |
Kojto | 96:487b796308b0 | 61 | /** @defgroup DAC_Exported_Types DAC Exported Types |
Kojto | 96:487b796308b0 | 62 | * @{ |
Kojto | 96:487b796308b0 | 63 | */ |
Kojto | 96:487b796308b0 | 64 | |
Kojto | 96:487b796308b0 | 65 | /** |
Kojto | 96:487b796308b0 | 66 | * @brief HAL State structures definition |
Kojto | 96:487b796308b0 | 67 | */ |
Kojto | 96:487b796308b0 | 68 | typedef enum |
Kojto | 96:487b796308b0 | 69 | { |
Kojto | 96:487b796308b0 | 70 | HAL_DAC_STATE_RESET = 0x00, /*!< DAC not yet initialized or disabled */ |
Kojto | 96:487b796308b0 | 71 | HAL_DAC_STATE_READY = 0x01, /*!< DAC initialized and ready for use */ |
Kojto | 96:487b796308b0 | 72 | HAL_DAC_STATE_BUSY = 0x02, /*!< DAC internal processing is ongoing */ |
Kojto | 96:487b796308b0 | 73 | HAL_DAC_STATE_TIMEOUT = 0x03, /*!< DAC timeout state */ |
Kojto | 96:487b796308b0 | 74 | HAL_DAC_STATE_ERROR = 0x04 /*!< DAC error state */ |
Kojto | 96:487b796308b0 | 75 | |
Kojto | 96:487b796308b0 | 76 | }HAL_DAC_StateTypeDef; |
Kojto | 96:487b796308b0 | 77 | |
Kojto | 96:487b796308b0 | 78 | /** |
Kojto | 96:487b796308b0 | 79 | * @brief DAC handle Structure definition |
Kojto | 96:487b796308b0 | 80 | */ |
Kojto | 96:487b796308b0 | 81 | typedef struct |
Kojto | 96:487b796308b0 | 82 | { |
Kojto | 96:487b796308b0 | 83 | DAC_TypeDef *Instance; /*!< Register base address */ |
Kojto | 96:487b796308b0 | 84 | |
Kojto | 96:487b796308b0 | 85 | __IO HAL_DAC_StateTypeDef State; /*!< DAC communication state */ |
Kojto | 96:487b796308b0 | 86 | |
Kojto | 96:487b796308b0 | 87 | HAL_LockTypeDef Lock; /*!< DAC locking object */ |
Kojto | 96:487b796308b0 | 88 | |
Kojto | 96:487b796308b0 | 89 | DMA_HandleTypeDef *DMA_Handle1; /*!< Pointer DMA handler for channel 1 */ |
Kojto | 96:487b796308b0 | 90 | |
Kojto | 96:487b796308b0 | 91 | DMA_HandleTypeDef *DMA_Handle2; /*!< Pointer DMA handler for channel 2 */ |
Kojto | 96:487b796308b0 | 92 | |
Kojto | 96:487b796308b0 | 93 | __IO uint32_t ErrorCode; /*!< DAC Error code */ |
Kojto | 96:487b796308b0 | 94 | |
Kojto | 96:487b796308b0 | 95 | }DAC_HandleTypeDef; |
Kojto | 96:487b796308b0 | 96 | |
Kojto | 96:487b796308b0 | 97 | /** |
Kojto | 96:487b796308b0 | 98 | * @brief DAC Configuration regular Channel structure definition |
Kojto | 96:487b796308b0 | 99 | */ |
Kojto | 96:487b796308b0 | 100 | typedef struct |
Kojto | 96:487b796308b0 | 101 | { |
Kojto | 96:487b796308b0 | 102 | uint32_t DAC_Trigger; /*!< Specifies the external trigger for the selected DAC channel. |
Kojto | 96:487b796308b0 | 103 | This parameter can be a value of @ref DACEx_trigger_selection |
Kojto | 96:487b796308b0 | 104 | Note: For STM32F100x high-density value line devices, additional trigger sources are available. */ |
Kojto | 96:487b796308b0 | 105 | |
Kojto | 96:487b796308b0 | 106 | uint32_t DAC_OutputBuffer; /*!< Specifies whether the DAC channel output buffer is enabled or disabled. |
Kojto | 96:487b796308b0 | 107 | This parameter can be a value of @ref DAC_output_buffer */ |
Kojto | 96:487b796308b0 | 108 | |
Kojto | 96:487b796308b0 | 109 | }DAC_ChannelConfTypeDef; |
Kojto | 96:487b796308b0 | 110 | |
Kojto | 96:487b796308b0 | 111 | /** |
Kojto | 96:487b796308b0 | 112 | * @} |
Kojto | 96:487b796308b0 | 113 | */ |
Kojto | 96:487b796308b0 | 114 | |
Kojto | 96:487b796308b0 | 115 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 96:487b796308b0 | 116 | |
Kojto | 96:487b796308b0 | 117 | /** @defgroup DAC_Exported_Constants DAC Exported Constants |
Kojto | 96:487b796308b0 | 118 | * @{ |
Kojto | 96:487b796308b0 | 119 | */ |
Kojto | 96:487b796308b0 | 120 | |
Kojto | 96:487b796308b0 | 121 | /** @defgroup DAC_Error_Code DAC Error Code |
Kojto | 96:487b796308b0 | 122 | * @{ |
Kojto | 96:487b796308b0 | 123 | */ |
Kojto | 96:487b796308b0 | 124 | #define HAL_DAC_ERROR_NONE 0x00 /*!< No error */ |
Kojto | 96:487b796308b0 | 125 | #define HAL_DAC_ERROR_DMAUNDERRUNCH1 0x01 /*!< DAC channel1 DMA underrun error */ |
Kojto | 96:487b796308b0 | 126 | #define HAL_DAC_ERROR_DMAUNDERRUNCH2 0x02 /*!< DAC channel2 DMA underrun error */ |
Kojto | 96:487b796308b0 | 127 | #define HAL_DAC_ERROR_DMA 0x04 /*!< DMA error */ |
Kojto | 96:487b796308b0 | 128 | /** |
Kojto | 96:487b796308b0 | 129 | * @} |
Kojto | 96:487b796308b0 | 130 | */ |
Kojto | 96:487b796308b0 | 131 | |
Kojto | 96:487b796308b0 | 132 | /** @defgroup DAC_output_buffer DAC output buffer |
Kojto | 96:487b796308b0 | 133 | * @{ |
Kojto | 96:487b796308b0 | 134 | */ |
Kojto | 96:487b796308b0 | 135 | #define DAC_OUTPUTBUFFER_ENABLE ((uint32_t)0x00000000) |
Kojto | 96:487b796308b0 | 136 | #define DAC_OUTPUTBUFFER_DISABLE ((uint32_t)DAC_CR_BOFF1) |
Kojto | 96:487b796308b0 | 137 | |
Kojto | 96:487b796308b0 | 138 | /** |
Kojto | 96:487b796308b0 | 139 | * @} |
Kojto | 96:487b796308b0 | 140 | */ |
Kojto | 96:487b796308b0 | 141 | |
Kojto | 96:487b796308b0 | 142 | /** @defgroup DAC_Channel_selection DAC Channel selection |
Kojto | 96:487b796308b0 | 143 | * @{ |
Kojto | 96:487b796308b0 | 144 | */ |
Kojto | 96:487b796308b0 | 145 | #define DAC_CHANNEL_1 ((uint32_t)0x00000000) |
Kojto | 96:487b796308b0 | 146 | #define DAC_CHANNEL_2 ((uint32_t)0x00000010) |
Kojto | 96:487b796308b0 | 147 | |
Kojto | 96:487b796308b0 | 148 | /** |
Kojto | 96:487b796308b0 | 149 | * @} |
Kojto | 96:487b796308b0 | 150 | */ |
Kojto | 96:487b796308b0 | 151 | |
Kojto | 96:487b796308b0 | 152 | /** @defgroup DAC_data_alignement DAC data alignement |
Kojto | 96:487b796308b0 | 153 | * @{ |
Kojto | 96:487b796308b0 | 154 | */ |
Kojto | 96:487b796308b0 | 155 | #define DAC_ALIGN_12B_R ((uint32_t)0x00000000) |
Kojto | 96:487b796308b0 | 156 | #define DAC_ALIGN_12B_L ((uint32_t)0x00000004) |
Kojto | 96:487b796308b0 | 157 | #define DAC_ALIGN_8B_R ((uint32_t)0x00000008) |
Kojto | 96:487b796308b0 | 158 | |
Kojto | 96:487b796308b0 | 159 | /** |
Kojto | 96:487b796308b0 | 160 | * @} |
Kojto | 96:487b796308b0 | 161 | */ |
Kojto | 96:487b796308b0 | 162 | |
Kojto | 96:487b796308b0 | 163 | /** |
Kojto | 96:487b796308b0 | 164 | * @} |
Kojto | 96:487b796308b0 | 165 | */ |
Kojto | 96:487b796308b0 | 166 | |
Kojto | 96:487b796308b0 | 167 | /* Exported macro ------------------------------------------------------------*/ |
Kojto | 96:487b796308b0 | 168 | |
Kojto | 96:487b796308b0 | 169 | /** @defgroup DAC_Exported_Macros DAC Exported Macros |
Kojto | 96:487b796308b0 | 170 | * @{ |
Kojto | 96:487b796308b0 | 171 | */ |
Kojto | 96:487b796308b0 | 172 | |
Kojto | 96:487b796308b0 | 173 | /** @brief Reset DAC handle state |
Kojto | 96:487b796308b0 | 174 | * @param __HANDLE__: specifies the DAC handle. |
Kojto | 96:487b796308b0 | 175 | * @retval None |
Kojto | 96:487b796308b0 | 176 | */ |
Kojto | 96:487b796308b0 | 177 | #define __HAL_DAC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DAC_STATE_RESET) |
Kojto | 96:487b796308b0 | 178 | |
Kojto | 96:487b796308b0 | 179 | /** @brief Enable the DAC channel |
Kojto | 96:487b796308b0 | 180 | * @param __HANDLE__: specifies the DAC handle. |
Kojto | 96:487b796308b0 | 181 | * @param __DAC_Channel__: specifies the DAC channel |
Kojto | 96:487b796308b0 | 182 | * @retval None |
Kojto | 96:487b796308b0 | 183 | */ |
Kojto | 96:487b796308b0 | 184 | #define __HAL_DAC_ENABLE(__HANDLE__, __DAC_Channel__) \ |
Kojto | 96:487b796308b0 | 185 | ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << (__DAC_Channel__))) |
Kojto | 96:487b796308b0 | 186 | |
Kojto | 96:487b796308b0 | 187 | /** @brief Disable the DAC channel |
Kojto | 96:487b796308b0 | 188 | * @param __HANDLE__: specifies the DAC handle |
Kojto | 96:487b796308b0 | 189 | * @param __DAC_Channel__: specifies the DAC channel. |
Kojto | 96:487b796308b0 | 190 | * @retval None |
Kojto | 96:487b796308b0 | 191 | */ |
Kojto | 96:487b796308b0 | 192 | #define __HAL_DAC_DISABLE(__HANDLE__, __DAC_Channel__) \ |
Kojto | 96:487b796308b0 | 193 | ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << (__DAC_Channel__))) |
Kojto | 96:487b796308b0 | 194 | |
Kojto | 96:487b796308b0 | 195 | |
Kojto | 96:487b796308b0 | 196 | /** |
Kojto | 96:487b796308b0 | 197 | * @} |
Kojto | 96:487b796308b0 | 198 | */ |
Kojto | 96:487b796308b0 | 199 | |
Kojto | 96:487b796308b0 | 200 | /* Private macro -------------------------------------------------------------*/ |
Kojto | 96:487b796308b0 | 201 | |
Kojto | 96:487b796308b0 | 202 | /** @defgroup DAC_Private_Macros DAC Private Macros |
Kojto | 96:487b796308b0 | 203 | * @{ |
Kojto | 96:487b796308b0 | 204 | */ |
Kojto | 96:487b796308b0 | 205 | #define IS_DAC_OUTPUT_BUFFER_STATE(STATE) (((STATE) == DAC_OUTPUTBUFFER_ENABLE) || \ |
Kojto | 96:487b796308b0 | 206 | ((STATE) == DAC_OUTPUTBUFFER_DISABLE)) |
Kojto | 96:487b796308b0 | 207 | |
Kojto | 96:487b796308b0 | 208 | #define IS_DAC_CHANNEL(CHANNEL) (((CHANNEL) == DAC_CHANNEL_1) || \ |
Kojto | 96:487b796308b0 | 209 | ((CHANNEL) == DAC_CHANNEL_2)) |
Kojto | 96:487b796308b0 | 210 | |
Kojto | 96:487b796308b0 | 211 | #define IS_DAC_ALIGN(ALIGN) (((ALIGN) == DAC_ALIGN_12B_R) || \ |
Kojto | 96:487b796308b0 | 212 | ((ALIGN) == DAC_ALIGN_12B_L) || \ |
Kojto | 96:487b796308b0 | 213 | ((ALIGN) == DAC_ALIGN_8B_R)) |
Kojto | 96:487b796308b0 | 214 | |
Kojto | 96:487b796308b0 | 215 | #define IS_DAC_DATA(DATA) ((DATA) <= 0xFFF0) |
Kojto | 96:487b796308b0 | 216 | |
Kojto | 96:487b796308b0 | 217 | #define DAC_DHR12R1_ALIGNMENT(__ALIGNMENT__) (((uint32_t)0x00000008) + (__ALIGNMENT__)) |
Kojto | 96:487b796308b0 | 218 | |
Kojto | 96:487b796308b0 | 219 | #define DAC_DHR12R2_ALIGNMENT(__ALIGNMENT__) (((uint32_t)0x00000014) + (__ALIGNMENT__)) |
Kojto | 96:487b796308b0 | 220 | |
Kojto | 96:487b796308b0 | 221 | #define DAC_DHR12RD_ALIGNMENT(__ALIGNMENT__) (((uint32_t)0x00000020) + (__ALIGNMENT__)) |
Kojto | 96:487b796308b0 | 222 | |
Kojto | 96:487b796308b0 | 223 | /** |
Kojto | 96:487b796308b0 | 224 | * @} |
Kojto | 96:487b796308b0 | 225 | */ |
Kojto | 96:487b796308b0 | 226 | |
Kojto | 96:487b796308b0 | 227 | |
Kojto | 96:487b796308b0 | 228 | /* Include DAC HAL Extension module */ |
Kojto | 96:487b796308b0 | 229 | #include "stm32f1xx_hal_dac_ex.h" |
Kojto | 96:487b796308b0 | 230 | |
Kojto | 96:487b796308b0 | 231 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 96:487b796308b0 | 232 | |
Kojto | 96:487b796308b0 | 233 | /** @addtogroup DAC_Exported_Functions |
Kojto | 96:487b796308b0 | 234 | * @{ |
Kojto | 96:487b796308b0 | 235 | */ |
Kojto | 96:487b796308b0 | 236 | |
Kojto | 96:487b796308b0 | 237 | /** @addtogroup DAC_Exported_Functions_Group1 |
Kojto | 96:487b796308b0 | 238 | * @{ |
Kojto | 96:487b796308b0 | 239 | */ |
Kojto | 96:487b796308b0 | 240 | /* Initialization and de-initialization functions *****************************/ |
Kojto | 96:487b796308b0 | 241 | HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 242 | HAL_StatusTypeDef HAL_DAC_DeInit(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 243 | void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 244 | void HAL_DAC_MspDeInit(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 245 | |
Kojto | 96:487b796308b0 | 246 | /** |
Kojto | 96:487b796308b0 | 247 | * @} |
Kojto | 96:487b796308b0 | 248 | */ |
Kojto | 96:487b796308b0 | 249 | |
Kojto | 96:487b796308b0 | 250 | /** @addtogroup DAC_Exported_Functions_Group2 |
Kojto | 96:487b796308b0 | 251 | * @{ |
Kojto | 96:487b796308b0 | 252 | */ |
Kojto | 96:487b796308b0 | 253 | /* IO operation functions *****************************************************/ |
Kojto | 96:487b796308b0 | 254 | HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef* hdac, uint32_t Channel); |
Kojto | 96:487b796308b0 | 255 | HAL_StatusTypeDef HAL_DAC_Stop(DAC_HandleTypeDef* hdac, uint32_t Channel); |
Kojto | 96:487b796308b0 | 256 | HAL_StatusTypeDef HAL_DAC_Start_DMA(DAC_HandleTypeDef* hdac, uint32_t Channel, uint32_t* pData, uint32_t Length, uint32_t Alignment); |
Kojto | 96:487b796308b0 | 257 | HAL_StatusTypeDef HAL_DAC_Stop_DMA(DAC_HandleTypeDef* hdac, uint32_t Channel); |
Kojto | 96:487b796308b0 | 258 | HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef* hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data); |
Kojto | 96:487b796308b0 | 259 | uint32_t HAL_DAC_GetValue(DAC_HandleTypeDef* hdac, uint32_t Channel); |
Kojto | 96:487b796308b0 | 260 | |
Kojto | 96:487b796308b0 | 261 | /** |
Kojto | 96:487b796308b0 | 262 | * @} |
Kojto | 96:487b796308b0 | 263 | */ |
Kojto | 96:487b796308b0 | 264 | |
Kojto | 96:487b796308b0 | 265 | /** @addtogroup DAC_Exported_Functions_Group3 |
Kojto | 96:487b796308b0 | 266 | * @{ |
Kojto | 96:487b796308b0 | 267 | */ |
Kojto | 96:487b796308b0 | 268 | /* Peripheral Control functions ***********************************************/ |
Kojto | 96:487b796308b0 | 269 | HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef* hdac, DAC_ChannelConfTypeDef* sConfig, uint32_t Channel); |
Kojto | 96:487b796308b0 | 270 | |
Kojto | 96:487b796308b0 | 271 | /** |
Kojto | 96:487b796308b0 | 272 | * @} |
Kojto | 96:487b796308b0 | 273 | */ |
Kojto | 96:487b796308b0 | 274 | |
Kojto | 96:487b796308b0 | 275 | /** @addtogroup DAC_Exported_Functions_Group4 |
Kojto | 96:487b796308b0 | 276 | * @{ |
Kojto | 96:487b796308b0 | 277 | */ |
Kojto | 96:487b796308b0 | 278 | /* Peripheral State functions *************************************************/ |
Kojto | 96:487b796308b0 | 279 | HAL_DAC_StateTypeDef HAL_DAC_GetState(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 280 | uint32_t HAL_DAC_GetError(DAC_HandleTypeDef *hdac); |
Kojto | 96:487b796308b0 | 281 | |
Kojto | 96:487b796308b0 | 282 | void HAL_DAC_ConvCpltCallbackCh1(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 283 | void HAL_DAC_ConvHalfCpltCallbackCh1(DAC_HandleTypeDef* hdac); |
Kojto | 96:487b796308b0 | 284 | void HAL_DAC_ErrorCallbackCh1(DAC_HandleTypeDef *hdac); |
Kojto | 96:487b796308b0 | 285 | |
Kojto | 96:487b796308b0 | 286 | |
Kojto | 96:487b796308b0 | 287 | /** |
Kojto | 96:487b796308b0 | 288 | * @} |
Kojto | 96:487b796308b0 | 289 | */ |
Kojto | 96:487b796308b0 | 290 | |
Kojto | 96:487b796308b0 | 291 | /** |
Kojto | 96:487b796308b0 | 292 | * @} |
Kojto | 96:487b796308b0 | 293 | */ |
Kojto | 96:487b796308b0 | 294 | |
Kojto | 96:487b796308b0 | 295 | /** @addtogroup DAC_Private_Functions DAC Private Functions |
Kojto | 96:487b796308b0 | 296 | * @{ |
Kojto | 96:487b796308b0 | 297 | */ |
Kojto | 96:487b796308b0 | 298 | void DAC_DMAConvCpltCh1(DMA_HandleTypeDef *hdma); |
Kojto | 96:487b796308b0 | 299 | void DAC_DMAHalfConvCpltCh1(DMA_HandleTypeDef *hdma); |
Kojto | 96:487b796308b0 | 300 | void DAC_DMAErrorCh1(DMA_HandleTypeDef *hdma); |
Kojto | 96:487b796308b0 | 301 | |
Kojto | 96:487b796308b0 | 302 | /** |
Kojto | 96:487b796308b0 | 303 | * @} |
Kojto | 96:487b796308b0 | 304 | */ |
Kojto | 96:487b796308b0 | 305 | |
Kojto | 96:487b796308b0 | 306 | /** |
Kojto | 96:487b796308b0 | 307 | * @} |
Kojto | 96:487b796308b0 | 308 | */ |
Kojto | 96:487b796308b0 | 309 | |
Kojto | 96:487b796308b0 | 310 | /** |
Kojto | 96:487b796308b0 | 311 | * @} |
Kojto | 96:487b796308b0 | 312 | */ |
Kojto | 96:487b796308b0 | 313 | |
Kojto | 96:487b796308b0 | 314 | #endif /* STM32F100xB || STM32F100xE || STM32F101xE || STM32F101xG || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ |
Kojto | 96:487b796308b0 | 315 | |
Kojto | 96:487b796308b0 | 316 | #ifdef __cplusplus |
Kojto | 96:487b796308b0 | 317 | } |
Kojto | 96:487b796308b0 | 318 | #endif |
Kojto | 96:487b796308b0 | 319 | |
Kojto | 96:487b796308b0 | 320 | |
Kojto | 96:487b796308b0 | 321 | #endif /*__STM32F1xx_HAL_DAC_H */ |
Kojto | 96:487b796308b0 | 322 | |
Kojto | 96:487b796308b0 | 323 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
Kojto | 96:487b796308b0 | 324 |