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