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