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_tim_ex.h |
3 | * @file stm32f1xx_hal_tim_ex.h |
4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
5 | * @brief Header file of TIM HAL Extension module. |
5 | * @brief Header file of TIM HAL Extended module. |
6 | ****************************************************************************** |
6 | ****************************************************************************** |
7 | * @attention |
7 | * @attention |
8 | * |
8 | * |
9 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
9 | * <h2><center>© 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_TIM_EX_H |
21 | #ifndef STM32F1xx_HAL_TIM_EX_H |
38 | #define __STM32F1xx_HAL_TIM_EX_H |
22 | #define STM32F1xx_HAL_TIM_EX_H |
39 | 23 | ||
40 | #ifdef __cplusplus |
24 | #ifdef __cplusplus |
41 | extern "C" { |
25 | extern "C" { |
42 | #endif |
26 | #endif |
43 | 27 | ||
44 | /* Includes ------------------------------------------------------------------*/ |
28 | /* Includes ------------------------------------------------------------------*/ |
45 | #include "stm32f1xx_hal_def.h" |
29 | #include "stm32f1xx_hal_def.h" |
46 | 30 | ||
Line 48... | Line 32... | ||
48 | * @{ |
32 | * @{ |
49 | */ |
33 | */ |
50 | 34 | ||
51 | /** @addtogroup TIMEx |
35 | /** @addtogroup TIMEx |
52 | * @{ |
36 | * @{ |
53 | */ |
37 | */ |
54 | 38 | ||
55 | /* Exported types ------------------------------------------------------------*/ |
39 | /* Exported types ------------------------------------------------------------*/ |
56 | /** @defgroup TIMEx_Exported_Types TIMEx Exported Types |
40 | /** @defgroup TIMEx_Exported_Types TIM Extended Exported Types |
57 | * @{ |
41 | * @{ |
58 | */ |
42 | */ |
59 | 43 | ||
60 | - | ||
61 | /** |
44 | /** |
62 | * @brief TIM Hall sensor Configuration Structure definition |
45 | * @brief TIM Hall sensor Configuration Structure definition |
63 | */ |
46 | */ |
64 | 47 | ||
65 | typedef struct |
48 | typedef struct |
66 | { |
49 | { |
67 | - | ||
68 | uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. |
50 | uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. |
69 | This parameter can be a value of @ref TIM_Input_Capture_Polarity */ |
51 | This parameter can be a value of @ref TIM_Input_Capture_Polarity */ |
70 | 52 | ||
71 | uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. |
53 | uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. |
72 | This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ |
54 | This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ |
73 | 55 | ||
74 | uint32_t IC1Filter; /*!< Specifies the input capture filter. |
56 | uint32_t IC1Filter; /*!< Specifies the input capture filter. |
75 | This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ |
57 | This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ |
76 | uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. |
- | |
77 | This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ |
- | |
78 | } TIM_HallSensor_InitTypeDef; |
- | |
79 | - | ||
80 | - | ||
81 | #if defined (STM32F100xB) || defined (STM32F100xE) || \ |
- | |
82 | defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \ |
- | |
83 | defined (STM32F105xC) || defined (STM32F107xC) |
- | |
84 | - | ||
85 | /** |
- | |
86 | * @brief TIM Break and Dead time configuration Structure definition |
- | |
87 | */ |
- | |
88 | typedef struct |
- | |
89 | { |
- | |
90 | uint32_t OffStateRunMode; /*!< TIM off state in run mode |
- | |
91 | This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ |
- | |
92 | uint32_t OffStateIDLEMode; /*!< TIM off state in IDLE mode |
- | |
93 | This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ |
- | |
94 | uint32_t LockLevel; /*!< TIM Lock level |
- | |
95 | This parameter can be a value of @ref TIM_Lock_level */ |
- | |
96 | uint32_t DeadTime; /*!< TIM dead Time |
- | |
97 | This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF */ |
- | |
98 | uint32_t BreakState; /*!< TIM Break State |
- | |
99 | This parameter can be a value of @ref TIM_Break_Input_enable_disable */ |
- | |
100 | uint32_t BreakPolarity; /*!< TIM Break input polarity |
- | |
101 | This parameter can be a value of @ref TIM_Break_Polarity */ |
- | |
102 | uint32_t AutomaticOutput; /*!< TIM Automatic Output Enable state |
- | |
103 | This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ |
- | |
104 | } TIM_BreakDeadTimeConfigTypeDef; |
- | |
105 | - | ||
106 | #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */ |
- | |
107 | /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */ |
- | |
108 | /* defined(STM32F105xC) || defined(STM32F107xC) */ |
- | |
109 | - | ||
110 | /** |
- | |
111 | * @brief TIM Master configuration Structure definition |
- | |
112 | */ |
- | |
113 | typedef struct { |
- | |
114 | uint32_t MasterOutputTrigger; /*!< Trigger output (TRGO) selection |
- | |
115 | This parameter can be a value of @ref TIM_Master_Mode_Selection */ |
- | |
116 | uint32_t MasterSlaveMode; /*!< Master/slave mode selection |
- | |
117 | This parameter can be a value of @ref TIM_Master_Slave_Mode */ |
- | |
118 | }TIM_MasterConfigTypeDef; |
- | |
119 | 58 | ||
- | 59 | uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. |
|
- | 60 | This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ |
|
- | 61 | } TIM_HallSensor_InitTypeDef; |
|
120 | /** |
62 | /** |
121 | * @} |
63 | * @} |
122 | */ |
64 | */ |
- | 65 | /* End of exported types -----------------------------------------------------*/ |
|
123 | 66 | ||
124 | /* Exported constants --------------------------------------------------------*/ |
67 | /* Exported constants --------------------------------------------------------*/ |
125 | #if defined (STM32F100xB) || defined (STM32F100xE) || \ |
- | |
126 | defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \ |
- | |
127 | defined (STM32F105xC) || defined (STM32F107xC) |
- | |
128 | /** @defgroup TIMEx_Exported_Constants TIMEx Exported Constants |
68 | /** @defgroup TIMEx_Exported_Constants TIM Extended Exported Constants |
129 | * @{ |
69 | * @{ |
130 | */ |
70 | */ |
131 | 71 | ||
132 | /** @defgroup TIMEx_Clock_Filter TIMEx Clock Filter |
72 | /** @defgroup TIMEx_Remap TIM Extended Remapping |
133 | * @{ |
73 | * @{ |
134 | */ |
74 | */ |
135 | #define IS_TIM_DEADTIME(DEADTIME) ((DEADTIME) <= 0xFFU) /*!< BreakDead Time */ |
- | |
136 | /** |
75 | /** |
137 | * @} |
76 | * @} |
138 | */ |
77 | */ |
139 | 78 | ||
140 | /** |
79 | /** |
141 | * @} |
80 | * @} |
142 | */ |
81 | */ |
143 | #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */ |
- | |
144 | /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */ |
- | |
145 | /* defined(STM32F105xC) || defined(STM32F107xC) */ |
82 | /* End of exported constants -------------------------------------------------*/ |
146 | 83 | ||
147 | /* Exported macro ------------------------------------------------------------*/ |
84 | /* Exported macro ------------------------------------------------------------*/ |
- | 85 | /** @defgroup TIMEx_Exported_Macros TIM Extended Exported Macros |
|
- | 86 | * @{ |
|
- | 87 | */ |
|
- | 88 | ||
- | 89 | /** |
|
- | 90 | * @} |
|
- | 91 | */ |
|
- | 92 | /* End of exported macro -----------------------------------------------------*/ |
|
- | 93 | ||
- | 94 | /* Private macro -------------------------------------------------------------*/ |
|
- | 95 | /** @defgroup TIMEx_Private_Macros TIM Extended Private Macros |
|
- | 96 | * @{ |
|
- | 97 | */ |
|
- | 98 | ||
148 | /** |
99 | /** |
149 | * @brief Sets the TIM Output compare preload. |
- | |
150 | * @param __HANDLE__: TIM handle. |
- | |
151 | * @param __CHANNEL__: TIM Channels to be configured. |
- | |
152 | * This parameter can be one of the following values: |
- | |
153 | * @arg TIM_CHANNEL_1: TIM Channel 1 selected |
- | |
154 | * @arg TIM_CHANNEL_2: TIM Channel 2 selected |
- | |
155 | * @arg TIM_CHANNEL_3: TIM Channel 3 selected |
- | |
156 | * @arg TIM_CHANNEL_4: TIM Channel 4 selected |
- | |
157 | * @retval None |
- | |
158 | */ |
100 | * @} |
159 | #define __HAL_TIM_ENABLE_OCxPRELOAD(__HANDLE__, __CHANNEL__) \ |
- | |
160 | (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC1PE) :\ |
- | |
161 | ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC2PE) :\ |
- | |
162 | ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC3PE) :\ |
- | |
163 | ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC4PE)) |
- | |
164 | - | ||
165 | /** |
- | |
166 | * @brief Resets the TIM Output compare preload. |
- | |
167 | * @param __HANDLE__: TIM handle. |
- | |
168 | * @param __CHANNEL__: TIM Channels to be configured. |
- | |
169 | * This parameter can be one of the following values: |
- | |
170 | * @arg TIM_CHANNEL_1: TIM Channel 1 selected |
- | |
171 | * @arg TIM_CHANNEL_2: TIM Channel 2 selected |
- | |
172 | * @arg TIM_CHANNEL_3: TIM Channel 3 selected |
- | |
173 | * @arg TIM_CHANNEL_4: TIM Channel 4 selected |
- | |
174 | * @retval None |
- | |
175 | */ |
101 | */ |
176 | #define __HAL_TIM_DISABLE_OCxPRELOAD(__HANDLE__, __CHANNEL__) \ |
- | |
177 | (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= (uint16_t)~TIM_CCMR1_OC1PE) :\ |
- | |
178 | ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= (uint16_t)~TIM_CCMR1_OC2PE) :\ |
- | |
179 | ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= (uint16_t)~TIM_CCMR2_OC3PE) :\ |
- | |
180 | ((__HANDLE__)->Instance->CCMR2 &= (uint16_t)~TIM_CCMR2_OC4PE)) |
102 | /* End of private macro ------------------------------------------------------*/ |
181 | 103 | ||
182 | /* Exported functions --------------------------------------------------------*/ |
104 | /* Exported functions --------------------------------------------------------*/ |
183 | /** @addtogroup TIMEx_Exported_Functions |
105 | /** @addtogroup TIMEx_Exported_Functions TIM Extended Exported Functions |
184 | * @{ |
106 | * @{ |
185 | */ |
107 | */ |
186 | 108 | ||
187 | /** @addtogroup TIMEx_Exported_Functions_Group1 |
109 | /** @addtogroup TIMEx_Exported_Functions_Group1 Extended Timer Hall Sensor functions |
- | 110 | * @brief Timer Hall Sensor functions |
|
188 | * @{ |
111 | * @{ |
189 | */ |
112 | */ |
190 | /* Timer Hall Sensor functions **********************************************/ |
113 | /* Timer Hall Sensor functions **********************************************/ |
191 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef* sConfig); |
114 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef *sConfig); |
192 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim); |
115 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim); |
193 | 116 | ||
194 | void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim); |
117 | void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim); |
195 | void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim); |
118 | void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim); |
196 | 119 | ||
197 | /* Blocking mode: Polling */ |
120 | /* Blocking mode: Polling */ |
198 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim); |
121 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim); |
199 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim); |
122 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim); |
200 | /* Non-Blocking mode: Interrupt */ |
123 | /* Non-Blocking mode: Interrupt */ |
201 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim); |
124 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim); |
202 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim); |
125 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim); |
Line 205... | Line 128... | ||
205 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim); |
128 | HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim); |
206 | /** |
129 | /** |
207 | * @} |
130 | * @} |
208 | */ |
131 | */ |
209 | 132 | ||
210 | #if defined (STM32F100xB) || defined (STM32F100xE) || \ |
133 | /** @addtogroup TIMEx_Exported_Functions_Group2 Extended Timer Complementary Output Compare functions |
211 | defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \ |
- | |
212 | defined (STM32F105xC) || defined (STM32F107xC) |
134 | * @brief Timer Complementary Output Compare functions |
213 | - | ||
214 | /** @addtogroup TIMEx_Exported_Functions_Group2 |
- | |
215 | * @{ |
135 | * @{ |
216 | */ |
136 | */ |
217 | /* Timer Complementary Output Compare functions *****************************/ |
137 | /* Timer Complementary Output Compare functions *****************************/ |
218 | /* Blocking mode: Polling */ |
138 | /* Blocking mode: Polling */ |
219 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
139 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
220 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
140 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
221 | 141 | ||
222 | /* Non-Blocking mode: Interrupt */ |
142 | /* Non-Blocking mode: Interrupt */ |
Line 228... | Line 148... | ||
228 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
148 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
229 | /** |
149 | /** |
230 | * @} |
150 | * @} |
231 | */ |
151 | */ |
232 | 152 | ||
233 | /** @addtogroup TIMEx_Exported_Functions_Group3 |
153 | /** @addtogroup TIMEx_Exported_Functions_Group3 Extended Timer Complementary PWM functions |
- | 154 | * @brief Timer Complementary PWM functions |
|
234 | * @{ |
155 | * @{ |
235 | */ |
156 | */ |
236 | /* Timer Complementary PWM functions ****************************************/ |
157 | /* Timer Complementary PWM functions ****************************************/ |
237 | /* Blocking mode: Polling */ |
158 | /* Blocking mode: Polling */ |
238 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
159 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
239 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
160 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
240 | 161 | ||
241 | /* Non-Blocking mode: Interrupt */ |
162 | /* Non-Blocking mode: Interrupt */ |
Line 246... | Line 167... | ||
246 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
167 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
247 | /** |
168 | /** |
248 | * @} |
169 | * @} |
249 | */ |
170 | */ |
250 | 171 | ||
251 | /** @addtogroup TIMEx_Exported_Functions_Group4 |
172 | /** @addtogroup TIMEx_Exported_Functions_Group4 Extended Timer Complementary One Pulse functions |
- | 173 | * @brief Timer Complementary One Pulse functions |
|
252 | * @{ |
174 | * @{ |
253 | */ |
175 | */ |
254 | /* Timer Complementary One Pulse functions **********************************/ |
176 | /* Timer Complementary One Pulse functions **********************************/ |
255 | /* Blocking mode: Polling */ |
177 | /* Blocking mode: Polling */ |
256 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
178 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
257 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
179 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
258 | 180 | ||
259 | /* Non-Blocking mode: Interrupt */ |
181 | /* Non-Blocking mode: Interrupt */ |
260 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
182 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
261 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
183 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
262 | /** |
184 | /** |
263 | * @} |
185 | * @} |
264 | */ |
186 | */ |
265 | #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */ |
- | |
266 | /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */ |
- | |
267 | /* defined(STM32F105xC) || defined(STM32F107xC) */ |
- | |
268 | 187 | ||
269 | /** @addtogroup TIMEx_Exported_Functions_Group5 |
188 | /** @addtogroup TIMEx_Exported_Functions_Group5 Extended Peripheral Control functions |
- | 189 | * @brief Peripheral Control functions |
|
270 | * @{ |
190 | * @{ |
271 | */ |
191 | */ |
272 | /* Extended Control functions ************************************************/ |
192 | /* Extended Control functions ************************************************/ |
273 | #if defined (STM32F100xB) || defined (STM32F100xE) || \ |
193 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, |
274 | defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \ |
194 | uint32_t CommutationSource); |
275 | defined (STM32F105xC) || defined (STM32F107xC) |
- | |
276 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
195 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, |
277 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
196 | uint32_t CommutationSource); |
278 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
197 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, |
- | 198 | uint32_t CommutationSource); |
|
279 | HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig); |
199 | HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, |
280 | #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */ |
200 | TIM_MasterConfigTypeDef *sMasterConfig); |
281 | /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */ |
201 | HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, |
282 | /* defined(STM32F105xC) || defined(STM32F107xC) */ |
202 | TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig); |
283 | HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef * sMasterConfig); |
203 | HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap); |
284 | /** |
204 | /** |
285 | * @} |
205 | * @} |
286 | */ |
206 | */ |
287 | 207 | ||
288 | /** @addtogroup TIMEx_Exported_Functions_Group6 |
208 | /** @addtogroup TIMEx_Exported_Functions_Group6 Extended Callbacks functions |
- | 209 | * @brief Extended Callbacks functions |
|
289 | * @{ |
210 | * @{ |
290 | */ |
211 | */ |
291 | /* Extension Callback *********************************************************/ |
212 | /* Extended Callback **********************************************************/ |
292 | void HAL_TIMEx_CommutationCallback(TIM_HandleTypeDef *htim); |
213 | void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim); |
- | 214 | void HAL_TIMEx_CommutHalfCpltCallback(TIM_HandleTypeDef *htim); |
|
293 | void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim); |
215 | void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim); |
294 | /** |
216 | /** |
295 | * @} |
217 | * @} |
296 | */ |
218 | */ |
297 | 219 | ||
298 | #if defined (STM32F100xB) || defined (STM32F100xE) || \ |
- | |
299 | defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \ |
220 | /** @addtogroup TIMEx_Exported_Functions_Group7 Extended Peripheral State functions |
300 | defined (STM32F105xC) || defined (STM32F107xC) |
221 | * @brief Extended Peripheral State functions |
301 | /** @addtogroup TIMEx_Exported_Functions_Group7 |
- | |
302 | * @{ |
222 | * @{ |
303 | */ |
223 | */ |
304 | /* Extension Peripheral State functions **************************************/ |
224 | /* Extended Peripheral State functions ***************************************/ |
305 | HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim); |
225 | HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim); |
- | 226 | HAL_TIM_ChannelStateTypeDef HAL_TIMEx_GetChannelNState(TIM_HandleTypeDef *htim, uint32_t ChannelN); |
|
306 | /** |
227 | /** |
307 | * @} |
228 | * @} |
308 | */ |
229 | */ |
309 | #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */ |
- | |
310 | /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */ |
- | |
311 | /* defined(STM32F105xC) || defined(STM32F107xC) */ |
- | |
312 | 230 | ||
313 | /** |
231 | /** |
314 | * @} |
232 | * @} |
315 | */ |
233 | */ |
316 | /* End of exported functions -------------------------------------------------*/ |
234 | /* End of exported functions -------------------------------------------------*/ |
317 | 235 | ||
318 | /* Private functions----------------------------------------------------------*/ |
236 | /* Private functions----------------------------------------------------------*/ |
319 | /** @defgroup TIMEx_Private_Functions TIMEx Private Functions |
237 | /** @addtogroup TIMEx_Private_Functions TIMEx Private Functions |
320 | * @{ |
238 | * @{ |
321 | */ |
239 | */ |
322 | void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma); |
240 | void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma); |
- | 241 | void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma); |
|
323 | /** |
242 | /** |
324 | * @} |
243 | * @} |
325 | */ |
244 | */ |
326 | /* End of private functions --------------------------------------------------*/ |
245 | /* End of private functions --------------------------------------------------*/ |
327 | 246 | ||
328 | /** |
247 | /** |
329 | * @} |
248 | * @} |
330 | */ |
249 | */ |
331 | 250 | ||
332 | /** |
251 | /** |
333 | * @} |
252 | * @} |
334 | */ |
253 | */ |
335 | 254 | ||
336 | #ifdef __cplusplus |
255 | #ifdef __cplusplus |
337 | } |
256 | } |
338 | #endif |
257 | #endif |
339 | 258 | ||
340 | 259 | ||
341 | #endif /* __STM32F1xx_HAL_TIM_EX_H */ |
260 | #endif /* STM32F1xx_HAL_TIM_EX_H */ |
342 | 261 | ||
343 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
262 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |