annotate f103c8/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @ 5:0d3eea2dd7ea

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