Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Inc/stm32l4xx_hal_dac_ex.h@0:80ee8f3b695e, 2015-11-02 (annotated)
- Committer:
- EricLew
- Date:
- Mon Nov 02 19:37:23 2015 +0000
- Revision:
- 0:80ee8f3b695e
Errors are with definitions of LCD and QSPI functions. I believe all .h and .c files are uploaded, but there may need to be certain functions called.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| EricLew | 0:80ee8f3b695e | 1 | /** |
| EricLew | 0:80ee8f3b695e | 2 | ****************************************************************************** |
| EricLew | 0:80ee8f3b695e | 3 | * @file stm32l4xx_hal_dac_ex.h |
| EricLew | 0:80ee8f3b695e | 4 | * @author MCD Application Team |
| EricLew | 0:80ee8f3b695e | 5 | * @version V1.1.0 |
| EricLew | 0:80ee8f3b695e | 6 | * @date 16-September-2015 |
| EricLew | 0:80ee8f3b695e | 7 | * @brief Header file of DAC HAL Extended module. |
| EricLew | 0:80ee8f3b695e | 8 | ****************************************************************************** |
| EricLew | 0:80ee8f3b695e | 9 | * @attention |
| EricLew | 0:80ee8f3b695e | 10 | * |
| EricLew | 0:80ee8f3b695e | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| EricLew | 0:80ee8f3b695e | 12 | * |
| EricLew | 0:80ee8f3b695e | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| EricLew | 0:80ee8f3b695e | 14 | * are permitted provided that the following conditions are met: |
| EricLew | 0:80ee8f3b695e | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| EricLew | 0:80ee8f3b695e | 16 | * this list of conditions and the following disclaimer. |
| EricLew | 0:80ee8f3b695e | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| EricLew | 0:80ee8f3b695e | 18 | * this list of conditions and the following disclaimer in the documentation |
| EricLew | 0:80ee8f3b695e | 19 | * and/or other materials provided with the distribution. |
| EricLew | 0:80ee8f3b695e | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| EricLew | 0:80ee8f3b695e | 21 | * may be used to endorse or promote products derived from this software |
| EricLew | 0:80ee8f3b695e | 22 | * without specific prior written permission. |
| EricLew | 0:80ee8f3b695e | 23 | * |
| EricLew | 0:80ee8f3b695e | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| EricLew | 0:80ee8f3b695e | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| EricLew | 0:80ee8f3b695e | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| EricLew | 0:80ee8f3b695e | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| EricLew | 0:80ee8f3b695e | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| EricLew | 0:80ee8f3b695e | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| EricLew | 0:80ee8f3b695e | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| EricLew | 0:80ee8f3b695e | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| EricLew | 0:80ee8f3b695e | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| EricLew | 0:80ee8f3b695e | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| EricLew | 0:80ee8f3b695e | 34 | * |
| EricLew | 0:80ee8f3b695e | 35 | ****************************************************************************** |
| EricLew | 0:80ee8f3b695e | 36 | */ |
| EricLew | 0:80ee8f3b695e | 37 | |
| EricLew | 0:80ee8f3b695e | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 39 | #ifndef __STM32L4xx_HAL_DAC_EX_H |
| EricLew | 0:80ee8f3b695e | 40 | #define __STM32L4xx_HAL_DAC_EX_H |
| EricLew | 0:80ee8f3b695e | 41 | |
| EricLew | 0:80ee8f3b695e | 42 | #ifdef __cplusplus |
| EricLew | 0:80ee8f3b695e | 43 | extern "C" { |
| EricLew | 0:80ee8f3b695e | 44 | #endif |
| EricLew | 0:80ee8f3b695e | 45 | |
| EricLew | 0:80ee8f3b695e | 46 | /* Includes ------------------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 47 | #include "stm32l4xx_hal_def.h" |
| EricLew | 0:80ee8f3b695e | 48 | |
| EricLew | 0:80ee8f3b695e | 49 | /** @addtogroup STM32L4xx_HAL_Driver |
| EricLew | 0:80ee8f3b695e | 50 | * @{ |
| EricLew | 0:80ee8f3b695e | 51 | */ |
| EricLew | 0:80ee8f3b695e | 52 | |
| EricLew | 0:80ee8f3b695e | 53 | /** @addtogroup DACEx |
| EricLew | 0:80ee8f3b695e | 54 | * @{ |
| EricLew | 0:80ee8f3b695e | 55 | */ |
| EricLew | 0:80ee8f3b695e | 56 | |
| EricLew | 0:80ee8f3b695e | 57 | /* Exported types ------------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 58 | |
| EricLew | 0:80ee8f3b695e | 59 | /** |
| EricLew | 0:80ee8f3b695e | 60 | * @brief HAL State structures definition |
| EricLew | 0:80ee8f3b695e | 61 | */ |
| EricLew | 0:80ee8f3b695e | 62 | |
| EricLew | 0:80ee8f3b695e | 63 | /* Exported constants --------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 64 | |
| EricLew | 0:80ee8f3b695e | 65 | /** @defgroup DACEx_Exported_Constants DACEx Exported Constants |
| EricLew | 0:80ee8f3b695e | 66 | * @{ |
| EricLew | 0:80ee8f3b695e | 67 | */ |
| EricLew | 0:80ee8f3b695e | 68 | |
| EricLew | 0:80ee8f3b695e | 69 | /** @defgroup DACEx_lfsrunmask_triangleamplitude DACEx lfsrunmask triangleamplitude |
| EricLew | 0:80ee8f3b695e | 70 | * @{ |
| EricLew | 0:80ee8f3b695e | 71 | */ |
| EricLew | 0:80ee8f3b695e | 72 | #define DAC_LFSRUNMASK_BIT0 ((uint32_t)0x00000000) /*!< Unmask DAC channel LFSR bit0 for noise wave generation */ |
| EricLew | 0:80ee8f3b695e | 73 | #define DAC_LFSRUNMASK_BITS1_0 ((uint32_t)DAC_CR_MAMP1_0) /*!< Unmask DAC channel LFSR bit[1:0] for noise wave generation */ |
| EricLew | 0:80ee8f3b695e | 74 | #define DAC_LFSRUNMASK_BITS2_0 ((uint32_t)DAC_CR_MAMP1_1) /*!< Unmask DAC channel LFSR bit[2:0] for noise wave generation */ |
| EricLew | 0:80ee8f3b695e | 75 | #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 */ |
| EricLew | 0:80ee8f3b695e | 76 | #define DAC_LFSRUNMASK_BITS4_0 ((uint32_t)DAC_CR_MAMP1_2) /*!< Unmask DAC channel LFSR bit[4:0] for noise wave generation */ |
| EricLew | 0:80ee8f3b695e | 77 | #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 */ |
| EricLew | 0:80ee8f3b695e | 78 | #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 */ |
| EricLew | 0:80ee8f3b695e | 79 | #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 */ |
| EricLew | 0:80ee8f3b695e | 80 | #define DAC_LFSRUNMASK_BITS8_0 ((uint32_t)DAC_CR_MAMP1_3) /*!< Unmask DAC channel LFSR bit[8:0] for noise wave generation */ |
| EricLew | 0:80ee8f3b695e | 81 | #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 */ |
| EricLew | 0:80ee8f3b695e | 82 | #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 */ |
| EricLew | 0:80ee8f3b695e | 83 | #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 */ |
| EricLew | 0:80ee8f3b695e | 84 | #define DAC_TRIANGLEAMPLITUDE_1 ((uint32_t)0x00000000) /*!< Select max triangle amplitude of 1 */ |
| EricLew | 0:80ee8f3b695e | 85 | #define DAC_TRIANGLEAMPLITUDE_3 ((uint32_t)DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 3 */ |
| EricLew | 0:80ee8f3b695e | 86 | #define DAC_TRIANGLEAMPLITUDE_7 ((uint32_t)DAC_CR_MAMP1_1) /*!< Select max triangle amplitude of 7 */ |
| EricLew | 0:80ee8f3b695e | 87 | #define DAC_TRIANGLEAMPLITUDE_15 ((uint32_t)DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 15 */ |
| EricLew | 0:80ee8f3b695e | 88 | #define DAC_TRIANGLEAMPLITUDE_31 ((uint32_t)DAC_CR_MAMP1_2) /*!< Select max triangle amplitude of 31 */ |
| EricLew | 0:80ee8f3b695e | 89 | #define DAC_TRIANGLEAMPLITUDE_63 ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 63 */ |
| EricLew | 0:80ee8f3b695e | 90 | #define DAC_TRIANGLEAMPLITUDE_127 ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1) /*!< Select max triangle amplitude of 127 */ |
| EricLew | 0:80ee8f3b695e | 91 | #define DAC_TRIANGLEAMPLITUDE_255 ((uint32_t)DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 255 */ |
| EricLew | 0:80ee8f3b695e | 92 | #define DAC_TRIANGLEAMPLITUDE_511 ((uint32_t)DAC_CR_MAMP1_3) /*!< Select max triangle amplitude of 511 */ |
| EricLew | 0:80ee8f3b695e | 93 | #define DAC_TRIANGLEAMPLITUDE_1023 ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 1023 */ |
| EricLew | 0:80ee8f3b695e | 94 | #define DAC_TRIANGLEAMPLITUDE_2047 ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1) /*!< Select max triangle amplitude of 2047 */ |
| EricLew | 0:80ee8f3b695e | 95 | #define DAC_TRIANGLEAMPLITUDE_4095 ((uint32_t)DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0) /*!< Select max triangle amplitude of 4095 */ |
| EricLew | 0:80ee8f3b695e | 96 | |
| EricLew | 0:80ee8f3b695e | 97 | /** |
| EricLew | 0:80ee8f3b695e | 98 | * @} |
| EricLew | 0:80ee8f3b695e | 99 | */ |
| EricLew | 0:80ee8f3b695e | 100 | |
| EricLew | 0:80ee8f3b695e | 101 | /** |
| EricLew | 0:80ee8f3b695e | 102 | * @} |
| EricLew | 0:80ee8f3b695e | 103 | */ |
| EricLew | 0:80ee8f3b695e | 104 | |
| EricLew | 0:80ee8f3b695e | 105 | /* Exported macro ------------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 106 | |
| EricLew | 0:80ee8f3b695e | 107 | |
| EricLew | 0:80ee8f3b695e | 108 | /* Private macro -------------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 109 | |
| EricLew | 0:80ee8f3b695e | 110 | /** @defgroup DACEx_Private_Macros DACEx Private Macros |
| EricLew | 0:80ee8f3b695e | 111 | * @{ |
| EricLew | 0:80ee8f3b695e | 112 | */ |
| EricLew | 0:80ee8f3b695e | 113 | |
| EricLew | 0:80ee8f3b695e | 114 | #define IS_DAC_TRIGGER(TRIGGER) (((TRIGGER) == DAC_TRIGGER_NONE) || \ |
| EricLew | 0:80ee8f3b695e | 115 | ((TRIGGER) == DAC_TRIGGER_T2_TRGO) || \ |
| EricLew | 0:80ee8f3b695e | 116 | ((TRIGGER) == DAC_TRIGGER_T4_TRGO) || \ |
| EricLew | 0:80ee8f3b695e | 117 | ((TRIGGER) == DAC_TRIGGER_T5_TRGO) || \ |
| EricLew | 0:80ee8f3b695e | 118 | ((TRIGGER) == DAC_TRIGGER_T6_TRGO) || \ |
| EricLew | 0:80ee8f3b695e | 119 | ((TRIGGER) == DAC_TRIGGER_T7_TRGO) || \ |
| EricLew | 0:80ee8f3b695e | 120 | ((TRIGGER) == DAC_TRIGGER_T8_TRGO) || \ |
| EricLew | 0:80ee8f3b695e | 121 | ((TRIGGER) == DAC_TRIGGER_EXT_IT9) || \ |
| EricLew | 0:80ee8f3b695e | 122 | ((TRIGGER) == DAC_TRIGGER_SOFTWARE)) |
| EricLew | 0:80ee8f3b695e | 123 | |
| EricLew | 0:80ee8f3b695e | 124 | #define IS_DAC_SAMPLETIME(TIME) ((TIME) <= 0x0000003FF) |
| EricLew | 0:80ee8f3b695e | 125 | |
| EricLew | 0:80ee8f3b695e | 126 | #define IS_DAC_HOLDTIME(TIME) ((TIME) <= 0x0000003FF) |
| EricLew | 0:80ee8f3b695e | 127 | |
| EricLew | 0:80ee8f3b695e | 128 | #define IS_DAC_SAMPLEANDHOLD(MODE) (((MODE) == DAC_SAMPLEANDHOLD_DISABLE) || \ |
| EricLew | 0:80ee8f3b695e | 129 | ((MODE) == DAC_SAMPLEANDHOLD_ENABLE)) |
| EricLew | 0:80ee8f3b695e | 130 | |
| EricLew | 0:80ee8f3b695e | 131 | |
| EricLew | 0:80ee8f3b695e | 132 | #define IS_DAC_TRIMMINGVALUE(TRIMMINGVALUE) ((TRIMMINGVALUE) <= 0x1F) |
| EricLew | 0:80ee8f3b695e | 133 | |
| EricLew | 0:80ee8f3b695e | 134 | #define IS_DAC_NEWTRIMMINGVALUE(TRIMMINGVALUE) ((TRIMMINGVALUE) <= 0x1F) |
| EricLew | 0:80ee8f3b695e | 135 | |
| EricLew | 0:80ee8f3b695e | 136 | #define IS_DAC_CHIP_CONNECTION(CONNECT) (((CONNECT) == DAC_CHIPCONNECT_DISABLE) || \ |
| EricLew | 0:80ee8f3b695e | 137 | ((CONNECT) == DAC_CHIPCONNECT_ENABLE)) |
| EricLew | 0:80ee8f3b695e | 138 | |
| EricLew | 0:80ee8f3b695e | 139 | #define IS_DAC_TRIMMING(TRIMMING) (((TRIMMING) == DAC_TRIMMING_FACTORY) || \ |
| EricLew | 0:80ee8f3b695e | 140 | ((TRIMMING) == DAC_TRIMMING_USER)) |
| EricLew | 0:80ee8f3b695e | 141 | |
| EricLew | 0:80ee8f3b695e | 142 | #define IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(VALUE) (((VALUE) == DAC_LFSRUNMASK_BIT0) || \ |
| EricLew | 0:80ee8f3b695e | 143 | ((VALUE) == DAC_LFSRUNMASK_BITS1_0) || \ |
| EricLew | 0:80ee8f3b695e | 144 | ((VALUE) == DAC_LFSRUNMASK_BITS2_0) || \ |
| EricLew | 0:80ee8f3b695e | 145 | ((VALUE) == DAC_LFSRUNMASK_BITS3_0) || \ |
| EricLew | 0:80ee8f3b695e | 146 | ((VALUE) == DAC_LFSRUNMASK_BITS4_0) || \ |
| EricLew | 0:80ee8f3b695e | 147 | ((VALUE) == DAC_LFSRUNMASK_BITS5_0) || \ |
| EricLew | 0:80ee8f3b695e | 148 | ((VALUE) == DAC_LFSRUNMASK_BITS6_0) || \ |
| EricLew | 0:80ee8f3b695e | 149 | ((VALUE) == DAC_LFSRUNMASK_BITS7_0) || \ |
| EricLew | 0:80ee8f3b695e | 150 | ((VALUE) == DAC_LFSRUNMASK_BITS8_0) || \ |
| EricLew | 0:80ee8f3b695e | 151 | ((VALUE) == DAC_LFSRUNMASK_BITS9_0) || \ |
| EricLew | 0:80ee8f3b695e | 152 | ((VALUE) == DAC_LFSRUNMASK_BITS10_0) || \ |
| EricLew | 0:80ee8f3b695e | 153 | ((VALUE) == DAC_LFSRUNMASK_BITS11_0) || \ |
| EricLew | 0:80ee8f3b695e | 154 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_1) || \ |
| EricLew | 0:80ee8f3b695e | 155 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_3) || \ |
| EricLew | 0:80ee8f3b695e | 156 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_7) || \ |
| EricLew | 0:80ee8f3b695e | 157 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_15) || \ |
| EricLew | 0:80ee8f3b695e | 158 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_31) || \ |
| EricLew | 0:80ee8f3b695e | 159 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_63) || \ |
| EricLew | 0:80ee8f3b695e | 160 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_127) || \ |
| EricLew | 0:80ee8f3b695e | 161 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_255) || \ |
| EricLew | 0:80ee8f3b695e | 162 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_511) || \ |
| EricLew | 0:80ee8f3b695e | 163 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_1023) || \ |
| EricLew | 0:80ee8f3b695e | 164 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_2047) || \ |
| EricLew | 0:80ee8f3b695e | 165 | ((VALUE) == DAC_TRIANGLEAMPLITUDE_4095)) |
| EricLew | 0:80ee8f3b695e | 166 | |
| EricLew | 0:80ee8f3b695e | 167 | |
| EricLew | 0:80ee8f3b695e | 168 | |
| EricLew | 0:80ee8f3b695e | 169 | /** |
| EricLew | 0:80ee8f3b695e | 170 | * @} |
| EricLew | 0:80ee8f3b695e | 171 | */ |
| EricLew | 0:80ee8f3b695e | 172 | |
| EricLew | 0:80ee8f3b695e | 173 | /* Exported functions --------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 174 | /* Extended features functions ***********************************************/ |
| EricLew | 0:80ee8f3b695e | 175 | |
| EricLew | 0:80ee8f3b695e | 176 | /** @addtogroup DACEx_Exported_Functions |
| EricLew | 0:80ee8f3b695e | 177 | * @{ |
| EricLew | 0:80ee8f3b695e | 178 | */ |
| EricLew | 0:80ee8f3b695e | 179 | |
| EricLew | 0:80ee8f3b695e | 180 | /** @addtogroup DACEx_Exported_Functions_Group2 |
| EricLew | 0:80ee8f3b695e | 181 | * @{ |
| EricLew | 0:80ee8f3b695e | 182 | */ |
| EricLew | 0:80ee8f3b695e | 183 | /* IO operation functions *****************************************************/ |
| EricLew | 0:80ee8f3b695e | 184 | |
| EricLew | 0:80ee8f3b695e | 185 | HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate(DAC_HandleTypeDef* hdac, uint32_t Channel, uint32_t Amplitude); |
| EricLew | 0:80ee8f3b695e | 186 | HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate(DAC_HandleTypeDef* hdac, uint32_t Channel, uint32_t Amplitude); |
| EricLew | 0:80ee8f3b695e | 187 | HAL_StatusTypeDef HAL_DACEx_DualSetValue(DAC_HandleTypeDef* hdac, uint32_t Alignment, uint32_t Data1, uint32_t Data2); |
| EricLew | 0:80ee8f3b695e | 188 | |
| EricLew | 0:80ee8f3b695e | 189 | void HAL_DACEx_ConvCpltCallbackCh2(DAC_HandleTypeDef* hdac); |
| EricLew | 0:80ee8f3b695e | 190 | void HAL_DACEx_ConvHalfCpltCallbackCh2(DAC_HandleTypeDef* hdac); |
| EricLew | 0:80ee8f3b695e | 191 | void HAL_DACEx_ErrorCallbackCh2(DAC_HandleTypeDef* hdac); |
| EricLew | 0:80ee8f3b695e | 192 | void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef* hdac); |
| EricLew | 0:80ee8f3b695e | 193 | |
| EricLew | 0:80ee8f3b695e | 194 | HAL_StatusTypeDef HAL_DACEx_SelfCalibrate (DAC_HandleTypeDef* hdac, DAC_ChannelConfTypeDef* sConfig, uint32_t Channel); |
| EricLew | 0:80ee8f3b695e | 195 | HAL_StatusTypeDef HAL_DACEx_SetUserTrimming (DAC_HandleTypeDef* hdac, DAC_ChannelConfTypeDef* sConfig, uint32_t Channel, uint32_t NewTrimmingValue); |
| EricLew | 0:80ee8f3b695e | 196 | |
| EricLew | 0:80ee8f3b695e | 197 | /** |
| EricLew | 0:80ee8f3b695e | 198 | * @} |
| EricLew | 0:80ee8f3b695e | 199 | */ |
| EricLew | 0:80ee8f3b695e | 200 | |
| EricLew | 0:80ee8f3b695e | 201 | /** @addtogroup DACEx_Exported_Functions_Group3 |
| EricLew | 0:80ee8f3b695e | 202 | * @{ |
| EricLew | 0:80ee8f3b695e | 203 | */ |
| EricLew | 0:80ee8f3b695e | 204 | /* Peripheral Control functions ***********************************************/ |
| EricLew | 0:80ee8f3b695e | 205 | |
| EricLew | 0:80ee8f3b695e | 206 | uint32_t HAL_DACEx_DualGetValue(DAC_HandleTypeDef* hdac); |
| EricLew | 0:80ee8f3b695e | 207 | uint32_t HAL_DACEx_GetTrimOffset (DAC_HandleTypeDef *hdac, uint32_t Channel); |
| EricLew | 0:80ee8f3b695e | 208 | |
| EricLew | 0:80ee8f3b695e | 209 | /** |
| EricLew | 0:80ee8f3b695e | 210 | * @} |
| EricLew | 0:80ee8f3b695e | 211 | */ |
| EricLew | 0:80ee8f3b695e | 212 | |
| EricLew | 0:80ee8f3b695e | 213 | /** |
| EricLew | 0:80ee8f3b695e | 214 | * @} |
| EricLew | 0:80ee8f3b695e | 215 | */ |
| EricLew | 0:80ee8f3b695e | 216 | |
| EricLew | 0:80ee8f3b695e | 217 | /** @addtogroup DACEx_Private_Functions |
| EricLew | 0:80ee8f3b695e | 218 | * @{ |
| EricLew | 0:80ee8f3b695e | 219 | */ |
| EricLew | 0:80ee8f3b695e | 220 | |
| EricLew | 0:80ee8f3b695e | 221 | /* DAC_DMAConvCpltCh2 / DAC_DMAErrorCh2 / DAC_DMAHalfConvCpltCh2 */ |
| EricLew | 0:80ee8f3b695e | 222 | /* are called by HAL_DAC_Start_DMA */ |
| EricLew | 0:80ee8f3b695e | 223 | void DAC_DMAConvCpltCh2(DMA_HandleTypeDef *hdma); |
| EricLew | 0:80ee8f3b695e | 224 | void DAC_DMAErrorCh2(DMA_HandleTypeDef *hdma); |
| EricLew | 0:80ee8f3b695e | 225 | void DAC_DMAHalfConvCpltCh2(DMA_HandleTypeDef *hdma); |
| EricLew | 0:80ee8f3b695e | 226 | |
| EricLew | 0:80ee8f3b695e | 227 | /** |
| EricLew | 0:80ee8f3b695e | 228 | * @} |
| EricLew | 0:80ee8f3b695e | 229 | */ |
| EricLew | 0:80ee8f3b695e | 230 | |
| EricLew | 0:80ee8f3b695e | 231 | /** |
| EricLew | 0:80ee8f3b695e | 232 | * @} |
| EricLew | 0:80ee8f3b695e | 233 | */ |
| EricLew | 0:80ee8f3b695e | 234 | |
| EricLew | 0:80ee8f3b695e | 235 | /** |
| EricLew | 0:80ee8f3b695e | 236 | * @} |
| EricLew | 0:80ee8f3b695e | 237 | */ |
| EricLew | 0:80ee8f3b695e | 238 | |
| EricLew | 0:80ee8f3b695e | 239 | #ifdef __cplusplus |
| EricLew | 0:80ee8f3b695e | 240 | } |
| EricLew | 0:80ee8f3b695e | 241 | #endif |
| EricLew | 0:80ee8f3b695e | 242 | |
| EricLew | 0:80ee8f3b695e | 243 | #endif /*__STM32L4xx_HAL_DAC_EX_H */ |
| EricLew | 0:80ee8f3b695e | 244 | |
| EricLew | 0:80ee8f3b695e | 245 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
| EricLew | 0:80ee8f3b695e | 246 |
