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