Subversion Repositories LedShow

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 9
Line 1... Line 1...
1
/**
1
/**
2
  ******************************************************************************
2
  ******************************************************************************
3
  * @file    stm32f1xx_hal_dac_ex.h
3
  * @file    stm32f1xx_hal_dac_ex.h
4
  * @author  MCD Application Team
4
  * @author  MCD Application Team
5
  * @brief   Header file of DAC HAL Extension module.
5
  * @brief   Header file of DAC HAL Extended module.
6
  ******************************************************************************
6
  ******************************************************************************
7
  * @attention
7
  * @attention
8
  *
8
  *
9
  * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
9
  * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
-
 
10
  * All rights reserved.</center></h2>
10
  *
11
  *
11
  * Redistribution and use in source and binary forms, with or without modification,
12
  * This software component is licensed by ST under BSD 3-Clause license,
12
  * are permitted provided that the following conditions are met:
13
  * the "License"; You may not use this file except in compliance with the
13
  *   1. Redistributions of source code must retain the above copyright notice,
-
 
14
  *      this list of conditions and the following disclaimer.
-
 
15
  *   2. Redistributions in binary form must reproduce the above copyright notice,
-
 
16
  *      this list of conditions and the following disclaimer in the documentation
-
 
17
  *      and/or other materials provided with the distribution.
14
  * License. You may obtain a copy of the License at:
18
  *   3. Neither the name of STMicroelectronics nor the names of its contributors
-
 
19
  *      may be used to endorse or promote products derived from this software
15
  *                        opensource.org/licenses/BSD-3-Clause
20
  *      without specific prior written permission.
-
 
21
  *
-
 
22
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-
 
23
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-
 
24
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-
 
25
  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-
 
26
  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-
 
27
  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-
 
28
  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-
 
29
  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-
 
30
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-
 
31
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
 
32
  *
16
  *
33
  ******************************************************************************
17
  ******************************************************************************
34
  */
18
  */
35
 
19
 
36
/* Define to prevent recursive inclusion -------------------------------------*/
20
/* Define to prevent recursive inclusion -------------------------------------*/
37
#ifndef __STM32F1xx_HAL_DAC_EX_H
21
#ifndef STM32F1xx_HAL_DAC_EX_H
38
#define __STM32F1xx_HAL_DAC_EX_H
22
#define STM32F1xx_HAL_DAC_EX_H
39
 
23
 
40
#ifdef __cplusplus
24
#ifdef __cplusplus
41
 extern "C" {
25
extern "C" {
42
#endif
26
#endif
43
 
27
 
44
#if defined (STM32F100xB) || defined (STM32F100xE) || defined (STM32F101xE) || defined (STM32F101xG) || defined (STM32F103xE) || defined (STM32F103xG) || defined (STM32F105xC) || defined (STM32F107xC)
-
 
45
   
-
 
46
/* Includes ------------------------------------------------------------------*/
-
 
47
#include "stm32f1xx_hal_def.h"
-
 
48
 
-
 
49
/** @addtogroup STM32F1xx_HAL_Driver
28
/** @addtogroup STM32F1xx_HAL_Driver
50
  * @{
29
  * @{
51
  */
30
  */
52
 
31
 
-
 
32
/* Includes ------------------------------------------------------------------*/
-
 
33
#include "stm32f1xx_hal_def.h"
-
 
34
 
-
 
35
#if defined(DAC)
-
 
36
 
53
/** @addtogroup DACEx
37
/** @addtogroup DACEx
54
  * @{
38
  * @{
55
  */
39
  */
56
 
40
 
57
/* Exported types ------------------------------------------------------------*/
41
/* Exported types ------------------------------------------------------------*/
58
 
42
 
-
 
43
/**
-
 
44
  * @brief  HAL State structures definition
-
 
45
  */
-
 
46
 
59
/* Exported constants --------------------------------------------------------*/
47
/* Exported constants --------------------------------------------------------*/
60
 
48
 
61
/** @defgroup DACEx_Exported_Constants DACEx Exported Constants
49
/** @defgroup DACEx_Exported_Constants DACEx Exported Constants
62
  * @{
50
  * @{
63
  */
51
  */
64
 
52
 
65
/** @defgroup DACEx_lfsrunmask_triangleamplitude DACEx lfsrunmask triangleamplitude
53
/** @defgroup DACEx_lfsrunmask_triangleamplitude DACEx lfsrunmask triangle amplitude
66
  * @{
54
  * @{
67
  */
55
  */
68
#define DAC_LFSRUNMASK_BIT0                0x00000000U /*!< Unmask DAC channel LFSR bit0 for noise wave generation */
56
#define DAC_LFSRUNMASK_BIT0                0x00000000U                                                         /*!< Unmask DAC channel LFSR bit0 for noise wave generation */
69
#define DAC_LFSRUNMASK_BITS1_0             ((uint32_t)DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[1:0] for noise wave generation */
57
#define DAC_LFSRUNMASK_BITS1_0             (                                                   DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[1:0] for noise wave generation */
70
#define DAC_LFSRUNMASK_BITS2_0             ((uint32_t)DAC_CR_MAMP1_1) /*!< Unmask DAC channel LFSR bit[2:0] for noise wave generation */
58
#define DAC_LFSRUNMASK_BITS2_0             (                                  DAC_CR_MAMP1_1                 ) /*!< Unmask DAC channel LFSR bit[2:0] for noise wave generation */
71
#define DAC_LFSRUNMASK_BITS3_0             ((uint32_t)DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)/*!< Unmask DAC channel LFSR bit[3:0] for noise wave generation */
59
#define DAC_LFSRUNMASK_BITS3_0             (                                  DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[3:0] for noise wave generation */
72
#define DAC_LFSRUNMASK_BITS4_0             ((uint32_t)DAC_CR_MAMP1_2) /*!< Unmask DAC channel LFSR bit[4:0] for noise wave generation */
60
#define DAC_LFSRUNMASK_BITS4_0             (                 DAC_CR_MAMP1_2                                  ) /*!< Unmask DAC channel LFSR bit[4:0] for noise wave generation */
73
#define DAC_LFSRUNMASK_BITS5_0             ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[5:0] for noise wave generation */
61
#define DAC_LFSRUNMASK_BITS5_0             (                 DAC_CR_MAMP1_2                  | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[5:0] for noise wave generation */
74
#define DAC_LFSRUNMASK_BITS6_0             ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1) /*!< Unmask DAC channel LFSR bit[6:0] for noise wave generation */
62
#define DAC_LFSRUNMASK_BITS6_0             (                 DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1                 ) /*!< Unmask DAC channel LFSR bit[6:0] for noise wave generation */
75
#define DAC_LFSRUNMASK_BITS7_0             ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[7:0] for noise wave generation */
63
#define DAC_LFSRUNMASK_BITS7_0             (                 DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[7:0] for noise wave generation */
76
#define DAC_LFSRUNMASK_BITS8_0             ((uint32_t)DAC_CR_MAMP1_3) /*!< Unmask DAC channel LFSR bit[8:0] for noise wave generation */
64
#define DAC_LFSRUNMASK_BITS8_0             (DAC_CR_MAMP1_3                                                   ) /*!< Unmask DAC channel LFSR bit[8:0] for noise wave generation */
77
#define DAC_LFSRUNMASK_BITS9_0             ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[9:0] for noise wave generation */
65
#define DAC_LFSRUNMASK_BITS9_0             (DAC_CR_MAMP1_3                                   | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[9:0] for noise wave generation */
78
#define DAC_LFSRUNMASK_BITS10_0            ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1) /*!< Unmask DAC channel LFSR bit[10:0] for noise wave generation */
66
#define DAC_LFSRUNMASK_BITS10_0            (DAC_CR_MAMP1_3                  | DAC_CR_MAMP1_1                 ) /*!< Unmask DAC channel LFSR bit[10:0] for noise wave generation */
79
#define DAC_LFSRUNMASK_BITS11_0            ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[11:0] for noise wave generation */
67
#define DAC_LFSRUNMASK_BITS11_0            (DAC_CR_MAMP1_3                  | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[11:0] for noise wave generation */
80
#define DAC_TRIANGLEAMPLITUDE_1            0x00000000U /*!< Select max triangle amplitude of 1 */
68
#define DAC_TRIANGLEAMPLITUDE_1            0x00000000U                                                         /*!< Select max triangle amplitude of 1 */
81
#define DAC_TRIANGLEAMPLITUDE_3            ((uint32_t)DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 3 */
69
#define DAC_TRIANGLEAMPLITUDE_3            (                                                   DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 3 */
82
#define DAC_TRIANGLEAMPLITUDE_7            ((uint32_t)DAC_CR_MAMP1_1) /*!< Select max triangle amplitude of 7 */
70
#define DAC_TRIANGLEAMPLITUDE_7            (                                  DAC_CR_MAMP1_1                 ) /*!< Select max triangle amplitude of 7 */
83
#define DAC_TRIANGLEAMPLITUDE_15           ((uint32_t)DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 15 */
71
#define DAC_TRIANGLEAMPLITUDE_15           (                                  DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 15 */
84
#define DAC_TRIANGLEAMPLITUDE_31           ((uint32_t)DAC_CR_MAMP1_2) /*!< Select max triangle amplitude of 31 */
72
#define DAC_TRIANGLEAMPLITUDE_31           (                 DAC_CR_MAMP1_2                                  ) /*!< Select max triangle amplitude of 31 */
85
#define DAC_TRIANGLEAMPLITUDE_63           ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 63 */
73
#define DAC_TRIANGLEAMPLITUDE_63           (                 DAC_CR_MAMP1_2                  | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 63 */
86
#define DAC_TRIANGLEAMPLITUDE_127          ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1) /*!< Select max triangle amplitude of 127 */
74
#define DAC_TRIANGLEAMPLITUDE_127          (                 DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1                 ) /*!< Select max triangle amplitude of 127 */
87
#define DAC_TRIANGLEAMPLITUDE_255          ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 255 */
75
#define DAC_TRIANGLEAMPLITUDE_255          (                 DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 255 */
88
#define DAC_TRIANGLEAMPLITUDE_511          ((uint32_t)DAC_CR_MAMP1_3) /*!< Select max triangle amplitude of 511 */
76
#define DAC_TRIANGLEAMPLITUDE_511          (DAC_CR_MAMP1_3                                                   ) /*!< Select max triangle amplitude of 511 */
89
#define DAC_TRIANGLEAMPLITUDE_1023         ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 1023 */
77
#define DAC_TRIANGLEAMPLITUDE_1023         (DAC_CR_MAMP1_3                                   | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 1023 */
90
#define DAC_TRIANGLEAMPLITUDE_2047         ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1) /*!< Select max triangle amplitude of 2047 */
78
#define DAC_TRIANGLEAMPLITUDE_2047         (DAC_CR_MAMP1_3                  | DAC_CR_MAMP1_1                 ) /*!< Select max triangle amplitude of 2047 */
91
#define DAC_TRIANGLEAMPLITUDE_4095         ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 4095 */
79
#define DAC_TRIANGLEAMPLITUDE_4095         (DAC_CR_MAMP1_3                  | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 4095 */
92
 
80
 
93
/**
81
/**
94
  * @}
82
  * @}
95
  */
83
  */
96
 
84
 
Line 143... Line 131...
143
#endif /* STM32F100xB */
131
#endif /* STM32F100xB */
144
/**
132
/**
145
  * @}
133
  * @}
146
  */
134
  */
147
 
135
 
148
#if defined (STM32F100xB) || defined (STM32F100xE)
-
 
149
/** @defgroup DAC_flags_definition DAC flags definition
-
 
150
  * @{
-
 
151
  */
-
 
152
#define DAC_FLAG_DMAUDR1                   ((uint32_t)DAC_SR_DMAUDR1)
-
 
153
#define DAC_FLAG_DMAUDR2                   ((uint32_t)DAC_SR_DMAUDR2)   
-
 
154
 
-
 
155
/**
-
 
156
  * @}
-
 
157
  */
-
 
158
 
-
 
159
/** @defgroup DAC_IT_definition DAC IT definition
-
 
160
  * @{
-
 
161
  */
-
 
162
#define DAC_IT_DMAUDR1                   ((uint32_t)DAC_SR_DMAUDR1)
-
 
163
#define DAC_IT_DMAUDR2                   ((uint32_t)DAC_SR_DMAUDR2)   
-
 
164
 
-
 
165
/**
-
 
166
  * @}
-
 
167
  */
-
 
168
#endif /* STM32F100xB || STM32F100xE */
-
 
169
 
-
 
170
/**
136
/**
171
  * @}
137
  * @}
172
  */
138
  */
173
 
139
 
174
/* Exported macro ------------------------------------------------------------*/
140
/* Exported macro ------------------------------------------------------------*/
175
 
141
 
176
#if defined (STM32F100xB) || defined (STM32F100xE)
-
 
177
/** @defgroup DACEx_Exported_Macros DACEx Exported Macros
-
 
178
  * @{
-
 
179
  */
-
 
180
 
-
 
181
/** @brief Enable the DAC interrupt
-
 
182
  * @param  __HANDLE__: specifies the DAC handle
-
 
183
  * @param  __INTERRUPT__: specifies the DAC interrupt.
-
 
184
  *          This parameter can be any combination of the following values:
-
 
185
  *            @arg DAC_IT_DMAUDR1: DAC channel 1 DMA underrun interrupt
-
 
186
  *            @arg DAC_IT_DMAUDR2: DAC channel 2 DMA underrun interrupt
-
 
187
  * @retval None
-
 
188
  */
-
 
189
#define __HAL_DAC_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__))
-
 
190
 
-
 
191
/** @brief Disable the DAC interrupt
-
 
192
  * @param  __HANDLE__: specifies the DAC handle
-
 
193
  * @param  __INTERRUPT__: specifies the DAC interrupt.
-
 
194
  *          This parameter can be any combination of the following values:
-
 
195
  *            @arg DAC_IT_DMAUDR1: DAC channel 1 DMA underrun interrupt
-
 
196
  *            @arg DAC_IT_DMAUDR2: DAC channel 2 DMA underrun interrupt
-
 
197
  * @retval None
-
 
198
  */
-
 
199
#define __HAL_DAC_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__))
-
 
200
 
-
 
201
/** @brief  Checks if the specified DAC interrupt source is enabled or disabled.
-
 
202
  * @param __HANDLE__: DAC handle
-
 
203
  * @param __INTERRUPT__: DAC interrupt source to check
-
 
204
  *          This parameter can be any combination of the following values:
-
 
205
  *            @arg DAC_IT_DMAUDR1: DAC channel 1 DMA underrun interrupt
-
 
206
  *            @arg DAC_IT_DMAUDR2: DAC channel 2 DMA underrun interrupt
-
 
207
  * @retval State of interruption (SET or RESET)
-
 
208
  */
-
 
209
#define __HAL_DAC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR & (__INTERRUPT__)) == (__INTERRUPT__))
-
 
210
   
-
 
211
/** @brief  Get the selected DAC's flag status.
-
 
212
  * @param  __HANDLE__: specifies the DAC handle.
-
 
213
  * @param  __FLAG__: specifies the DAC flag to get.
-
 
214
  *          This parameter can be any combination of the following values:
-
 
215
  *            @arg DAC_FLAG_DMAUDR1: DAC channel 1 DMA underrun flag
-
 
216
  *            @arg DAC_FLAG_DMAUDR2: DAC channel 2 DMA underrun flag
-
 
217
  * @retval None
-
 
218
  */
-
 
219
#define __HAL_DAC_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))
-
 
220
 
-
 
221
/** @brief  Clear the DAC's flag.
-
 
222
  * @param  __HANDLE__: specifies the DAC handle.
-
 
223
  * @param  __FLAG__: specifies the DAC flag to clear.
-
 
224
  *          This parameter can be any combination of the following values:
-
 
225
  *            @arg DAC_FLAG_DMAUDR1: DAC channel 1 DMA underrun flag
-
 
226
  *            @arg DAC_FLAG_DMAUDR2: DAC channel 2 DMA underrun flag
-
 
227
  * @retval None
-
 
228
  */
-
 
229
#define __HAL_DAC_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = (__FLAG__))
-
 
230
 
-
 
231
 
-
 
232
/**
-
 
233
  * @}
-
 
234
  */
-
 
235
#endif /* STM32F100xB || STM32F100xE */
-
 
236
 
142
 
237
/* Private macro -------------------------------------------------------------*/
143
/* Private macro -------------------------------------------------------------*/
238
 
144
 
239
/** @defgroup DACEx_Private_Macros DACEx Private Macros
145
/** @defgroup DACEx_Private_Macros DACEx Private Macros
240
  * @{
146
  * @{
241
  */
147
  */
-
 
148
 
242
#if defined (STM32F101xE) || defined (STM32F101xG) || defined (STM32F103xE) || defined (STM32F103xG)
149
#if defined (STM32F101xE) || defined (STM32F101xG) || defined (STM32F103xE) || defined (STM32F103xG)
243
#define IS_DAC_TRIGGER(TRIGGER) (((TRIGGER) == DAC_TRIGGER_NONE)    || \
150
#define IS_DAC_TRIGGER(TRIGGER) (((TRIGGER) == DAC_TRIGGER_NONE)    || \
244
                                 ((TRIGGER) == DAC_TRIGGER_T6_TRGO) || \
151
                                 ((TRIGGER) == DAC_TRIGGER_T6_TRGO) || \
245
                                 ((TRIGGER) == DAC_TRIGGER_T8_TRGO) || \
152
                                 ((TRIGGER) == DAC_TRIGGER_T8_TRGO) || \
246
                                 ((TRIGGER) == DAC_TRIGGER_T7_TRGO) || \
153
                                 ((TRIGGER) == DAC_TRIGGER_T7_TRGO) || \
Line 295... Line 202...
295
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_255) || \
202
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_255) || \
296
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_511) || \
203
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_511) || \
297
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_1023) || \
204
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_1023) || \
298
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_2047) || \
205
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_2047) || \
299
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_4095))
206
                                                      ((VALUE) == DAC_TRIANGLEAMPLITUDE_4095))
300
 
-
 
301
/**
207
/**
302
  * @}
208
  * @}
303
  */
209
  */
304
 
210
 
305
 
-
 
306
/* Exported functions --------------------------------------------------------*/  
211
/* Exported functions --------------------------------------------------------*/
-
 
212
/* Extended features functions ***********************************************/
307
 
213
 
308
/** @addtogroup DACEx_Exported_Functions
214
/** @addtogroup DACEx_Exported_Functions
309
  * @{
215
  * @{
310
  */
216
  */
311
 
217
 
312
/** @addtogroup DACEx_Exported_Functions_Group1
218
/** @addtogroup DACEx_Exported_Functions_Group2
313
  * @{
219
  * @{
314
  */
220
  */
315
/* Extension features functions ***********************************************/
221
/* IO operation functions *****************************************************/
-
 
222
 
-
 
223
HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude);
-
 
224
HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude);
-
 
225
 
-
 
226
HAL_StatusTypeDef HAL_DACEx_DualSetValue(DAC_HandleTypeDef *hdac, uint32_t Alignment, uint32_t Data1, uint32_t Data2);
-
 
227
uint32_t HAL_DACEx_DualGetValue(DAC_HandleTypeDef *hdac);
-
 
228
 
-
 
229
void HAL_DACEx_ConvCpltCallbackCh2(DAC_HandleTypeDef *hdac);
-
 
230
void HAL_DACEx_ConvHalfCpltCallbackCh2(DAC_HandleTypeDef *hdac);
-
 
231
void HAL_DACEx_ErrorCallbackCh2(DAC_HandleTypeDef *hdac);
-
 
232
void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac);
316
 
233
 
317
uint32_t HAL_DACEx_DualGetValue(DAC_HandleTypeDef* hdac);
-
 
318
HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate(DAC_HandleTypeDef* hdac, uint32_t Channel, uint32_t Amplitude);
-
 
319
HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate(DAC_HandleTypeDef* hdac, uint32_t Channel, uint32_t Amplitude);
-
 
320
HAL_StatusTypeDef HAL_DACEx_DualSetValue(DAC_HandleTypeDef* hdac, uint32_t Alignment, uint32_t Data1, uint32_t Data2);
-
 
321
 
-
 
322
void HAL_DACEx_ConvCpltCallbackCh2(DAC_HandleTypeDef* hdac);
-
 
323
void HAL_DACEx_ConvHalfCpltCallbackCh2(DAC_HandleTypeDef* hdac);
-
 
324
void HAL_DACEx_ErrorCallbackCh2(DAC_HandleTypeDef* hdac);
-
 
325
 
-
 
326
#if defined (STM32F100xB) || defined (STM32F100xE)
-
 
327
void HAL_DAC_IRQHandler(DAC_HandleTypeDef* hdac);
-
 
328
void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac);
-
 
329
void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef* hdac);
-
 
330
#endif /* STM32F100xB) || defined (STM32F100xE) */
-
 
331
 
234
 
332
/**
235
/**
333
  * @}
236
  * @}
334
  */
237
  */
335
 
238
 
336
 
-
 
337
 
-
 
338
   
-
 
339
/**
239
/**
340
  * @}
240
  * @}
341
  */
241
  */
342
 
242
 
343
/** @addtogroup DACEx_Private_Functions
243
/** @addtogroup DACEx_Private_Functions
344
  * @{
244
  * @{
345
  */
245
  */
-
 
246
 
-
 
247
/* DAC_DMAConvCpltCh2 / DAC_DMAErrorCh2 / DAC_DMAHalfConvCpltCh2 */
-
 
248
/* are called by HAL_DAC_Start_DMA */
346
void DAC_DMAConvCpltCh2(DMA_HandleTypeDef *hdma);
249
void DAC_DMAConvCpltCh2(DMA_HandleTypeDef *hdma);
347
void DAC_DMAHalfConvCpltCh2(DMA_HandleTypeDef *hdma);
-
 
348
void DAC_DMAErrorCh2(DMA_HandleTypeDef *hdma);
250
void DAC_DMAErrorCh2(DMA_HandleTypeDef *hdma);
-
 
251
void DAC_DMAHalfConvCpltCh2(DMA_HandleTypeDef *hdma);
349
 
252
 
350
/**
253
/**
351
  * @}
254
  * @}
352
  */
255
  */
353
 
256
 
Line 357... Line 260...
357
 
260
 
358
/**
261
/**
359
  * @}
262
  * @}
360
  */
263
  */
361
 
264
 
362
#endif /* STM32F100xB || STM32F100xE || STM32F101xE || STM32F101xG || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */
265
#endif /* DAC */
-
 
266
 
-
 
267
/**
-
 
268
  * @}
-
 
269
  */
363
 
270
 
364
#ifdef __cplusplus
271
#ifdef __cplusplus
365
}
272
}
366
#endif
273
#endif
367
 
274
 
368
#endif /*__STM32F1xx_HAL_DAC_EX_H */
275
#endif /*STM32F1xx_HAL_DAC_EX_H */
369
 
276
 
370
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
277
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/