The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_NUCLEO_F030R8/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_tim_ex.h@143:86740a56073b, 2017-05-26 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri May 26 12:30:20 2017 +0100
- Revision:
- 143:86740a56073b
- Parent:
- 134:ad3be0349dc5
Release 143 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 85:024bf7f99721 | 1 | /** |
bogdanm | 85:024bf7f99721 | 2 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 3 | * @file stm32f0xx_hal_tim_ex.h |
bogdanm | 85:024bf7f99721 | 4 | * @author MCD Application Team |
<> | 134:ad3be0349dc5 | 5 | * @version V1.5.0 |
<> | 134:ad3be0349dc5 | 6 | * @date 04-November-2016 |
bogdanm | 92:4fc01daae5a5 | 7 | * @brief Header file of TIM HAL Extended module. |
bogdanm | 85:024bf7f99721 | 8 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 9 | * @attention |
bogdanm | 85:024bf7f99721 | 10 | * |
Kojto | 122:f9eeca106725 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
bogdanm | 85:024bf7f99721 | 12 | * |
bogdanm | 85:024bf7f99721 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bogdanm | 85:024bf7f99721 | 14 | * are permitted provided that the following conditions are met: |
bogdanm | 85:024bf7f99721 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 85:024bf7f99721 | 16 | * this list of conditions and the following disclaimer. |
bogdanm | 85:024bf7f99721 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 85:024bf7f99721 | 18 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 85:024bf7f99721 | 19 | * and/or other materials provided with the distribution. |
bogdanm | 85:024bf7f99721 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bogdanm | 85:024bf7f99721 | 21 | * may be used to endorse or promote products derived from this software |
bogdanm | 85:024bf7f99721 | 22 | * without specific prior written permission. |
bogdanm | 85:024bf7f99721 | 23 | * |
bogdanm | 85:024bf7f99721 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 85:024bf7f99721 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 85:024bf7f99721 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 85:024bf7f99721 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 85:024bf7f99721 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 85:024bf7f99721 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 85:024bf7f99721 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 85:024bf7f99721 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 85:024bf7f99721 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 85:024bf7f99721 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 85:024bf7f99721 | 34 | * |
bogdanm | 85:024bf7f99721 | 35 | ****************************************************************************** |
Kojto | 108:34e6b704fe68 | 36 | */ |
bogdanm | 85:024bf7f99721 | 37 | |
bogdanm | 85:024bf7f99721 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 39 | #ifndef __STM32F0xx_HAL_TIM_EX_H |
bogdanm | 85:024bf7f99721 | 40 | #define __STM32F0xx_HAL_TIM_EX_H |
bogdanm | 85:024bf7f99721 | 41 | |
bogdanm | 85:024bf7f99721 | 42 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 43 | extern "C" { |
bogdanm | 85:024bf7f99721 | 44 | #endif |
bogdanm | 85:024bf7f99721 | 45 | |
bogdanm | 85:024bf7f99721 | 46 | /* Includes ------------------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 47 | #include "stm32f0xx_hal_def.h" |
bogdanm | 85:024bf7f99721 | 48 | |
bogdanm | 85:024bf7f99721 | 49 | /** @addtogroup STM32F0xx_HAL_Driver |
bogdanm | 85:024bf7f99721 | 50 | * @{ |
bogdanm | 85:024bf7f99721 | 51 | */ |
bogdanm | 85:024bf7f99721 | 52 | |
bogdanm | 85:024bf7f99721 | 53 | /** @addtogroup TIMEx |
bogdanm | 85:024bf7f99721 | 54 | * @{ |
Kojto | 108:34e6b704fe68 | 55 | */ |
bogdanm | 85:024bf7f99721 | 56 | |
Kojto | 108:34e6b704fe68 | 57 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 108:34e6b704fe68 | 58 | /** @defgroup TIMEx_Exported_Types TIMEx Exported Types |
bogdanm | 92:4fc01daae5a5 | 59 | * @{ |
bogdanm | 92:4fc01daae5a5 | 60 | */ |
bogdanm | 85:024bf7f99721 | 61 | |
Kojto | 108:34e6b704fe68 | 62 | |
Kojto | 108:34e6b704fe68 | 63 | /** |
Kojto | 108:34e6b704fe68 | 64 | * @brief TIM Hall sensor Configuration Structure definition |
bogdanm | 85:024bf7f99721 | 65 | */ |
bogdanm | 85:024bf7f99721 | 66 | |
bogdanm | 85:024bf7f99721 | 67 | typedef struct |
bogdanm | 85:024bf7f99721 | 68 | { |
Kojto | 108:34e6b704fe68 | 69 | |
bogdanm | 85:024bf7f99721 | 70 | uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. |
bogdanm | 85:024bf7f99721 | 71 | This parameter can be a value of @ref TIM_Input_Capture_Polarity */ |
Kojto | 108:34e6b704fe68 | 72 | |
bogdanm | 85:024bf7f99721 | 73 | uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. |
bogdanm | 85:024bf7f99721 | 74 | This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ |
Kojto | 108:34e6b704fe68 | 75 | |
bogdanm | 85:024bf7f99721 | 76 | uint32_t IC1Filter; /*!< Specifies the input capture filter. |
Kojto | 108:34e6b704fe68 | 77 | This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ |
Kojto | 108:34e6b704fe68 | 78 | uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. |
Kojto | 108:34e6b704fe68 | 79 | This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ |
bogdanm | 85:024bf7f99721 | 80 | } TIM_HallSensor_InitTypeDef; |
bogdanm | 85:024bf7f99721 | 81 | |
Kojto | 108:34e6b704fe68 | 82 | /** |
Kojto | 108:34e6b704fe68 | 83 | * @brief TIM Master configuration Structure definition |
bogdanm | 85:024bf7f99721 | 84 | */ |
bogdanm | 85:024bf7f99721 | 85 | typedef struct { |
bogdanm | 85:024bf7f99721 | 86 | uint32_t MasterOutputTrigger; /*!< Trigger output (TRGO) selection |
Kojto | 108:34e6b704fe68 | 87 | This parameter can be a value of @ref TIM_Master_Mode_Selection */ |
bogdanm | 85:024bf7f99721 | 88 | uint32_t MasterSlaveMode; /*!< Master/slave mode selection |
bogdanm | 85:024bf7f99721 | 89 | This parameter can be a value of @ref TIM_Master_Slave_Mode */ |
bogdanm | 85:024bf7f99721 | 90 | }TIM_MasterConfigTypeDef; |
bogdanm | 85:024bf7f99721 | 91 | |
Kojto | 108:34e6b704fe68 | 92 | /** |
Kojto | 108:34e6b704fe68 | 93 | * @brief TIM Break and Dead time configuration Structure definition |
bogdanm | 85:024bf7f99721 | 94 | */ |
bogdanm | 85:024bf7f99721 | 95 | typedef struct |
bogdanm | 85:024bf7f99721 | 96 | { |
bogdanm | 92:4fc01daae5a5 | 97 | uint32_t OffStateRunMode; /*!< TIM off state in run mode |
bogdanm | 92:4fc01daae5a5 | 98 | This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ |
bogdanm | 92:4fc01daae5a5 | 99 | uint32_t OffStateIDLEMode; /*!< TIM off state in IDLE mode |
bogdanm | 92:4fc01daae5a5 | 100 | This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ |
bogdanm | 92:4fc01daae5a5 | 101 | uint32_t LockLevel; /*!< TIM Lock level |
Kojto | 108:34e6b704fe68 | 102 | This parameter can be a value of @ref TIM_Lock_level */ |
bogdanm | 92:4fc01daae5a5 | 103 | uint32_t DeadTime; /*!< TIM dead Time |
bogdanm | 92:4fc01daae5a5 | 104 | This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF */ |
bogdanm | 92:4fc01daae5a5 | 105 | uint32_t BreakState; /*!< TIM Break State |
bogdanm | 92:4fc01daae5a5 | 106 | This parameter can be a value of @ref TIM_Break_Input_enable_disable */ |
bogdanm | 92:4fc01daae5a5 | 107 | uint32_t BreakPolarity; /*!< TIM Break input polarity |
bogdanm | 92:4fc01daae5a5 | 108 | This parameter can be a value of @ref TIM_Break_Polarity */ |
bogdanm | 92:4fc01daae5a5 | 109 | uint32_t AutomaticOutput; /*!< TIM Automatic Output Enable state |
Kojto | 108:34e6b704fe68 | 110 | This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ |
bogdanm | 85:024bf7f99721 | 111 | } TIM_BreakDeadTimeConfigTypeDef; |
bogdanm | 85:024bf7f99721 | 112 | |
bogdanm | 85:024bf7f99721 | 113 | /** |
bogdanm | 85:024bf7f99721 | 114 | * @} |
Kojto | 108:34e6b704fe68 | 115 | */ |
bogdanm | 85:024bf7f99721 | 116 | |
bogdanm | 92:4fc01daae5a5 | 117 | /* Exported constants --------------------------------------------------------*/ |
bogdanm | 92:4fc01daae5a5 | 118 | /** @defgroup TIMEx_Exported_Constants TIMEx Exported Constants |
bogdanm | 92:4fc01daae5a5 | 119 | * @{ |
bogdanm | 92:4fc01daae5a5 | 120 | */ |
Kojto | 108:34e6b704fe68 | 121 | |
bogdanm | 92:4fc01daae5a5 | 122 | /** @defgroup TIMEx_Remap TIMEx Remap |
bogdanm | 92:4fc01daae5a5 | 123 | * @{ |
bogdanm | 92:4fc01daae5a5 | 124 | */ |
bogdanm | 92:4fc01daae5a5 | 125 | |
bogdanm | 92:4fc01daae5a5 | 126 | #define TIM_TIM14_GPIO (0x00000000) /*!< TIM14 TI1 is connected to GPIO */ |
bogdanm | 92:4fc01daae5a5 | 127 | #define TIM_TIM14_RTC (0x00000001) /*!< TIM14 TI1 is connected to RTC_clock */ |
bogdanm | 92:4fc01daae5a5 | 128 | #define TIM_TIM14_HSE (0x00000002) /*!< TIM14 TI1 is connected to HSE/32 */ |
bogdanm | 92:4fc01daae5a5 | 129 | #define TIM_TIM14_MCO (0x00000003) /*!< TIM14 TI1 is connected to MCO */ |
Kojto | 122:f9eeca106725 | 130 | /** |
Kojto | 122:f9eeca106725 | 131 | * @} |
Kojto | 122:f9eeca106725 | 132 | */ |
bogdanm | 92:4fc01daae5a5 | 133 | |
Kojto | 122:f9eeca106725 | 134 | /** @defgroup TIMEx_Clock_Clear_Input_Source TIMEx Clear Input Source |
Kojto | 122:f9eeca106725 | 135 | * @{ |
Kojto | 122:f9eeca106725 | 136 | */ |
<> | 134:ad3be0349dc5 | 137 | #define TIM_CLEARINPUTSOURCE_NONE (0x00000000U) |
<> | 134:ad3be0349dc5 | 138 | #define TIM_CLEARINPUTSOURCE_ETR (0x00000001U) |
Kojto | 122:f9eeca106725 | 139 | #if defined(STM32F051x8) || defined(STM32F058xx) || \ |
Kojto | 122:f9eeca106725 | 140 | defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \ |
Kojto | 122:f9eeca106725 | 141 | defined(STM32F091xC) || defined (STM32F098xx) |
<> | 134:ad3be0349dc5 | 142 | #define TIM_CLEARINPUTSOURCE_OCREFCLR (0x00000002U) |
Kojto | 122:f9eeca106725 | 143 | #endif /* STM32F051x8 || STM32F058xx || */ |
Kojto | 122:f9eeca106725 | 144 | /* STM32F071xB || STM32F072xB || STM32F078xx || */ |
Kojto | 122:f9eeca106725 | 145 | /* STM32F091xC || defined (STM32F098xx) */ |
Kojto | 122:f9eeca106725 | 146 | /** |
Kojto | 122:f9eeca106725 | 147 | * @} |
Kojto | 122:f9eeca106725 | 148 | */ |
Kojto | 122:f9eeca106725 | 149 | |
bogdanm | 85:024bf7f99721 | 150 | /** |
bogdanm | 85:024bf7f99721 | 151 | * @} |
bogdanm | 92:4fc01daae5a5 | 152 | */ |
bogdanm | 92:4fc01daae5a5 | 153 | |
Kojto | 122:f9eeca106725 | 154 | /* Private Macros -----------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 155 | /** @defgroup TIM_Private_Macros TIM Private Macros |
bogdanm | 92:4fc01daae5a5 | 156 | * @{ |
bogdanm | 92:4fc01daae5a5 | 157 | */ |
Kojto | 122:f9eeca106725 | 158 | |
Kojto | 122:f9eeca106725 | 159 | #define IS_TIM_REMAP(TIM_REMAP) (((TIM_REMAP) == TIM_TIM14_GPIO) ||\ |
Kojto | 122:f9eeca106725 | 160 | ((TIM_REMAP) == TIM_TIM14_RTC) ||\ |
Kojto | 122:f9eeca106725 | 161 | ((TIM_REMAP) == TIM_TIM14_HSE) ||\ |
Kojto | 122:f9eeca106725 | 162 | ((TIM_REMAP) == TIM_TIM14_MCO)) |
Kojto | 122:f9eeca106725 | 163 | |
<> | 134:ad3be0349dc5 | 164 | #define IS_TIM_DEADTIME(DEADTIME) ((DEADTIME) <= 0xFFU) /*!< BreakDead Time */ |
bogdanm | 92:4fc01daae5a5 | 165 | |
Kojto | 122:f9eeca106725 | 166 | #if defined(STM32F051x8) || defined(STM32F058xx) || \ |
Kojto | 122:f9eeca106725 | 167 | defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \ |
Kojto | 122:f9eeca106725 | 168 | defined(STM32F091xC) || defined (STM32F098xx) |
Kojto | 122:f9eeca106725 | 169 | #define IS_TIM_CLEARINPUT_SOURCE(SOURCE) (((SOURCE) == TIM_CLEARINPUTSOURCE_NONE) || \ |
Kojto | 122:f9eeca106725 | 170 | ((SOURCE) == TIM_CLEARINPUTSOURCE_ETR) || \ |
Kojto | 122:f9eeca106725 | 171 | ((SOURCE) == TIM_CLEARINPUTSOURCE_OCREFCLR)) |
Kojto | 122:f9eeca106725 | 172 | #else |
Kojto | 122:f9eeca106725 | 173 | #define IS_TIM_CLEARINPUT_SOURCE(SOURCE) (((SOURCE) == TIM_CLEARINPUTSOURCE_NONE) || \ |
Kojto | 122:f9eeca106725 | 174 | ((SOURCE) == TIM_CLEARINPUTSOURCE_ETR)) |
Kojto | 122:f9eeca106725 | 175 | #endif /* STM32F051x8 || STM32F058xx || */ |
Kojto | 122:f9eeca106725 | 176 | /* STM32F071xB || STM32F072xB || STM32F078xx || */ |
Kojto | 122:f9eeca106725 | 177 | /* STM32F091xC || defined (STM32F098xx) */ |
bogdanm | 92:4fc01daae5a5 | 178 | /** |
bogdanm | 92:4fc01daae5a5 | 179 | * @} |
bogdanm | 92:4fc01daae5a5 | 180 | */ |
bogdanm | 85:024bf7f99721 | 181 | |
bogdanm | 85:024bf7f99721 | 182 | /* Exported macro ------------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 183 | |
bogdanm | 85:024bf7f99721 | 184 | /* Exported functions --------------------------------------------------------*/ |
bogdanm | 92:4fc01daae5a5 | 185 | /** @addtogroup TIMEx_Exported_Functions |
bogdanm | 92:4fc01daae5a5 | 186 | * @{ |
bogdanm | 92:4fc01daae5a5 | 187 | */ |
bogdanm | 85:024bf7f99721 | 188 | |
Kojto | 108:34e6b704fe68 | 189 | /** @addtogroup TIMEx_Exported_Functions_Group1 |
bogdanm | 92:4fc01daae5a5 | 190 | * @{ |
bogdanm | 92:4fc01daae5a5 | 191 | */ |
bogdanm | 85:024bf7f99721 | 192 | /* Timer Hall Sensor functions **********************************************/ |
bogdanm | 85:024bf7f99721 | 193 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef* sConfig); |
bogdanm | 85:024bf7f99721 | 194 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 195 | |
bogdanm | 85:024bf7f99721 | 196 | void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 197 | void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 198 | |
bogdanm | 85:024bf7f99721 | 199 | /* Blocking mode: Polling */ |
bogdanm | 85:024bf7f99721 | 200 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 201 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 202 | /* Non-Blocking mode: Interrupt */ |
bogdanm | 85:024bf7f99721 | 203 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 204 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 205 | /* Non-Blocking mode: DMA */ |
bogdanm | 85:024bf7f99721 | 206 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length); |
bogdanm | 85:024bf7f99721 | 207 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim); |
bogdanm | 92:4fc01daae5a5 | 208 | /** |
bogdanm | 92:4fc01daae5a5 | 209 | * @} |
bogdanm | 92:4fc01daae5a5 | 210 | */ |
bogdanm | 85:024bf7f99721 | 211 | |
Kojto | 108:34e6b704fe68 | 212 | /** @addtogroup TIMEx_Exported_Functions_Group2 |
bogdanm | 92:4fc01daae5a5 | 213 | * @{ |
bogdanm | 92:4fc01daae5a5 | 214 | */ |
bogdanm | 85:024bf7f99721 | 215 | /* Timer Complementary Output Compare functions *****************************/ |
bogdanm | 85:024bf7f99721 | 216 | /* Blocking mode: Polling */ |
bogdanm | 85:024bf7f99721 | 217 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 218 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 219 | |
bogdanm | 85:024bf7f99721 | 220 | /* Non-Blocking mode: Interrupt */ |
bogdanm | 85:024bf7f99721 | 221 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 222 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 223 | |
bogdanm | 85:024bf7f99721 | 224 | /* Non-Blocking mode: DMA */ |
bogdanm | 85:024bf7f99721 | 225 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); |
bogdanm | 85:024bf7f99721 | 226 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 92:4fc01daae5a5 | 227 | /** |
bogdanm | 92:4fc01daae5a5 | 228 | * @} |
bogdanm | 92:4fc01daae5a5 | 229 | */ |
bogdanm | 85:024bf7f99721 | 230 | |
Kojto | 108:34e6b704fe68 | 231 | /** @addtogroup TIMEx_Exported_Functions_Group3 |
bogdanm | 92:4fc01daae5a5 | 232 | * @{ |
bogdanm | 92:4fc01daae5a5 | 233 | */ |
bogdanm | 85:024bf7f99721 | 234 | /* Timer Complementary PWM functions ****************************************/ |
bogdanm | 85:024bf7f99721 | 235 | /* Blocking mode: Polling */ |
bogdanm | 85:024bf7f99721 | 236 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 237 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 238 | |
bogdanm | 85:024bf7f99721 | 239 | /* Non-Blocking mode: Interrupt */ |
bogdanm | 85:024bf7f99721 | 240 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 241 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 85:024bf7f99721 | 242 | /* Non-Blocking mode: DMA */ |
bogdanm | 85:024bf7f99721 | 243 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); |
bogdanm | 85:024bf7f99721 | 244 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
bogdanm | 92:4fc01daae5a5 | 245 | /** |
bogdanm | 92:4fc01daae5a5 | 246 | * @} |
bogdanm | 92:4fc01daae5a5 | 247 | */ |
bogdanm | 85:024bf7f99721 | 248 | |
Kojto | 108:34e6b704fe68 | 249 | /** @addtogroup TIMEx_Exported_Functions_Group4 |
bogdanm | 92:4fc01daae5a5 | 250 | * @{ |
bogdanm | 92:4fc01daae5a5 | 251 | */ |
bogdanm | 85:024bf7f99721 | 252 | /* Timer Complementary One Pulse functions **********************************/ |
bogdanm | 85:024bf7f99721 | 253 | /* Blocking mode: Polling */ |
bogdanm | 85:024bf7f99721 | 254 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
bogdanm | 85:024bf7f99721 | 255 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
bogdanm | 85:024bf7f99721 | 256 | |
bogdanm | 85:024bf7f99721 | 257 | /* Non-Blocking mode: Interrupt */ |
bogdanm | 85:024bf7f99721 | 258 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
bogdanm | 85:024bf7f99721 | 259 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
bogdanm | 92:4fc01daae5a5 | 260 | /** |
bogdanm | 92:4fc01daae5a5 | 261 | * @} |
bogdanm | 92:4fc01daae5a5 | 262 | */ |
bogdanm | 85:024bf7f99721 | 263 | |
Kojto | 108:34e6b704fe68 | 264 | /** @addtogroup TIMEx_Exported_Functions_Group5 |
bogdanm | 92:4fc01daae5a5 | 265 | * @{ |
bogdanm | 92:4fc01daae5a5 | 266 | */ |
bogdanm | 92:4fc01daae5a5 | 267 | /* Extended Control functions ************************************************/ |
bogdanm | 85:024bf7f99721 | 268 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
bogdanm | 85:024bf7f99721 | 269 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
bogdanm | 85:024bf7f99721 | 270 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
bogdanm | 85:024bf7f99721 | 271 | HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef * sMasterConfig); |
bogdanm | 85:024bf7f99721 | 272 | HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig); |
bogdanm | 85:024bf7f99721 | 273 | HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap); |
bogdanm | 92:4fc01daae5a5 | 274 | /** |
bogdanm | 92:4fc01daae5a5 | 275 | * @} |
bogdanm | 92:4fc01daae5a5 | 276 | */ |
bogdanm | 85:024bf7f99721 | 277 | |
Kojto | 108:34e6b704fe68 | 278 | /** @addtogroup TIMEx_Exported_Functions_Group6 |
bogdanm | 92:4fc01daae5a5 | 279 | * @{ |
bogdanm | 92:4fc01daae5a5 | 280 | */ |
bogdanm | 85:024bf7f99721 | 281 | /* Extension Callback *********************************************************/ |
bogdanm | 85:024bf7f99721 | 282 | void HAL_TIMEx_CommutationCallback(TIM_HandleTypeDef *htim); |
bogdanm | 85:024bf7f99721 | 283 | void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim); |
bogdanm | 92:4fc01daae5a5 | 284 | /** |
bogdanm | 92:4fc01daae5a5 | 285 | * @} |
bogdanm | 92:4fc01daae5a5 | 286 | */ |
bogdanm | 85:024bf7f99721 | 287 | |
Kojto | 108:34e6b704fe68 | 288 | /** @addtogroup TIMEx_Exported_Functions_Group7 |
bogdanm | 92:4fc01daae5a5 | 289 | * @{ |
bogdanm | 92:4fc01daae5a5 | 290 | */ |
bogdanm | 85:024bf7f99721 | 291 | /* Extension Peripheral State functions **************************************/ |
bogdanm | 85:024bf7f99721 | 292 | HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim); |
bogdanm | 92:4fc01daae5a5 | 293 | /** |
bogdanm | 92:4fc01daae5a5 | 294 | * @} |
bogdanm | 92:4fc01daae5a5 | 295 | */ |
bogdanm | 92:4fc01daae5a5 | 296 | |
bogdanm | 92:4fc01daae5a5 | 297 | /** |
bogdanm | 92:4fc01daae5a5 | 298 | * @} |
Kojto | 108:34e6b704fe68 | 299 | */ |
Kojto | 108:34e6b704fe68 | 300 | /* End of exported functions -------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 301 | |
Kojto | 108:34e6b704fe68 | 302 | /* Private functions----------------------------------------------------------*/ |
Kojto | 108:34e6b704fe68 | 303 | /** @defgroup TIMEx_Private_Functions TIMEx Private Functions |
Kojto | 108:34e6b704fe68 | 304 | * @{ |
Kojto | 108:34e6b704fe68 | 305 | */ |
Kojto | 108:34e6b704fe68 | 306 | void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma); |
bogdanm | 85:024bf7f99721 | 307 | /** |
Kojto | 108:34e6b704fe68 | 308 | * @} |
Kojto | 108:34e6b704fe68 | 309 | */ |
Kojto | 108:34e6b704fe68 | 310 | /* End of private functions --------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 311 | |
bogdanm | 85:024bf7f99721 | 312 | /** |
bogdanm | 85:024bf7f99721 | 313 | * @} |
bogdanm | 85:024bf7f99721 | 314 | */ |
Kojto | 108:34e6b704fe68 | 315 | |
Kojto | 108:34e6b704fe68 | 316 | /** |
Kojto | 108:34e6b704fe68 | 317 | * @} |
Kojto | 108:34e6b704fe68 | 318 | */ |
Kojto | 108:34e6b704fe68 | 319 | |
bogdanm | 85:024bf7f99721 | 320 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 321 | } |
bogdanm | 85:024bf7f99721 | 322 | #endif |
bogdanm | 85:024bf7f99721 | 323 | |
bogdanm | 85:024bf7f99721 | 324 | |
bogdanm | 85:024bf7f99721 | 325 | #endif /* __STM32F0xx_HAL_TIM_EX_H */ |
bogdanm | 85:024bf7f99721 | 326 | |
bogdanm | 85:024bf7f99721 | 327 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |