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