Modified version of the mbed library for use with the Nucleo boards.
Dependents: EEPROMWrite Full-Project
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.h@630:825f75ca301e, 2015-09-28 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Sep 28 10:45:10 2015 +0100
- Revision:
- 630:825f75ca301e
- Parent:
- 441:d2c15dda23c1
Synchronized with git revision 54fbe4144faf309c37205a5d39fa665daa919f10
Full URL: https://github.com/mbedmicro/mbed/commit/54fbe4144faf309c37205a5d39fa665daa919f10/
NUCLEO_F031K6 : Add new target
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 | 630:825f75ca301e | 5 | * @version V1.3.0 |
mbed_official | 630:825f75ca301e | 6 | * @date 26-June-2015 |
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 | 630:825f75ca301e | 11 | * <h2><center>© COPYRIGHT(c) 2015 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 | 630:825f75ca301e | 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 | 630:825f75ca301e | 55 | */ |
mbed_official | 340:28d1f895c6fe | 56 | |
mbed_official | 630:825f75ca301e | 57 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 630:825f75ca301e | 58 | /** @defgroup TIMEx_Exported_Types TIMEx Exported Types |
mbed_official | 340:28d1f895c6fe | 59 | * @{ |
mbed_official | 340:28d1f895c6fe | 60 | */ |
mbed_official | 340:28d1f895c6fe | 61 | |
mbed_official | 630:825f75ca301e | 62 | |
mbed_official | 630:825f75ca301e | 63 | /** |
mbed_official | 630:825f75ca301e | 64 | * @brief TIM Hall sensor Configuration Structure definition |
mbed_official | 340:28d1f895c6fe | 65 | */ |
mbed_official | 340:28d1f895c6fe | 66 | |
mbed_official | 340:28d1f895c6fe | 67 | typedef struct |
mbed_official | 340:28d1f895c6fe | 68 | { |
mbed_official | 630:825f75ca301e | 69 | |
mbed_official | 340:28d1f895c6fe | 70 | uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. |
mbed_official | 340:28d1f895c6fe | 71 | This parameter can be a value of @ref TIM_Input_Capture_Polarity */ |
mbed_official | 630:825f75ca301e | 72 | |
mbed_official | 340:28d1f895c6fe | 73 | uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. |
mbed_official | 340:28d1f895c6fe | 74 | This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ |
mbed_official | 630:825f75ca301e | 75 | |
mbed_official | 340:28d1f895c6fe | 76 | uint32_t IC1Filter; /*!< Specifies the input capture filter. |
mbed_official | 630:825f75ca301e | 77 | This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ |
mbed_official | 630:825f75ca301e | 78 | uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. |
mbed_official | 630:825f75ca301e | 79 | This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ |
mbed_official | 340:28d1f895c6fe | 80 | } TIM_HallSensor_InitTypeDef; |
mbed_official | 340:28d1f895c6fe | 81 | |
mbed_official | 630:825f75ca301e | 82 | /** |
mbed_official | 630:825f75ca301e | 83 | * @brief TIM Master configuration Structure definition |
mbed_official | 340:28d1f895c6fe | 84 | */ |
mbed_official | 340:28d1f895c6fe | 85 | typedef struct { |
mbed_official | 340:28d1f895c6fe | 86 | uint32_t MasterOutputTrigger; /*!< Trigger output (TRGO) selection |
mbed_official | 630:825f75ca301e | 87 | This parameter can be a value of @ref TIM_Master_Mode_Selection */ |
mbed_official | 340:28d1f895c6fe | 88 | uint32_t MasterSlaveMode; /*!< Master/slave mode selection |
mbed_official | 340:28d1f895c6fe | 89 | This parameter can be a value of @ref TIM_Master_Slave_Mode */ |
mbed_official | 340:28d1f895c6fe | 90 | }TIM_MasterConfigTypeDef; |
mbed_official | 340:28d1f895c6fe | 91 | |
mbed_official | 630:825f75ca301e | 92 | /** |
mbed_official | 630:825f75ca301e | 93 | * @brief TIM Break and Dead time configuration Structure definition |
mbed_official | 340:28d1f895c6fe | 94 | */ |
mbed_official | 340:28d1f895c6fe | 95 | typedef struct |
mbed_official | 340:28d1f895c6fe | 96 | { |
mbed_official | 340:28d1f895c6fe | 97 | uint32_t OffStateRunMode; /*!< TIM off state in run mode |
mbed_official | 340:28d1f895c6fe | 98 | This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ |
mbed_official | 340:28d1f895c6fe | 99 | uint32_t OffStateIDLEMode; /*!< TIM off state in IDLE mode |
mbed_official | 340:28d1f895c6fe | 100 | This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ |
mbed_official | 340:28d1f895c6fe | 101 | uint32_t LockLevel; /*!< TIM Lock level |
mbed_official | 630:825f75ca301e | 102 | This parameter can be a value of @ref TIM_Lock_level */ |
mbed_official | 340:28d1f895c6fe | 103 | uint32_t DeadTime; /*!< TIM dead Time |
mbed_official | 340:28d1f895c6fe | 104 | This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF */ |
mbed_official | 340:28d1f895c6fe | 105 | uint32_t BreakState; /*!< TIM Break State |
mbed_official | 340:28d1f895c6fe | 106 | This parameter can be a value of @ref TIM_Break_Input_enable_disable */ |
mbed_official | 340:28d1f895c6fe | 107 | uint32_t BreakPolarity; /*!< TIM Break input polarity |
mbed_official | 340:28d1f895c6fe | 108 | This parameter can be a value of @ref TIM_Break_Polarity */ |
mbed_official | 340:28d1f895c6fe | 109 | uint32_t AutomaticOutput; /*!< TIM Automatic Output Enable state |
mbed_official | 630:825f75ca301e | 110 | This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ |
mbed_official | 340:28d1f895c6fe | 111 | } TIM_BreakDeadTimeConfigTypeDef; |
mbed_official | 340:28d1f895c6fe | 112 | |
mbed_official | 340:28d1f895c6fe | 113 | /** |
mbed_official | 340:28d1f895c6fe | 114 | * @} |
mbed_official | 630:825f75ca301e | 115 | */ |
mbed_official | 340:28d1f895c6fe | 116 | |
mbed_official | 340:28d1f895c6fe | 117 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 340:28d1f895c6fe | 118 | /** @defgroup TIMEx_Exported_Constants TIMEx Exported Constants |
mbed_official | 340:28d1f895c6fe | 119 | * @{ |
mbed_official | 340:28d1f895c6fe | 120 | */ |
mbed_official | 630:825f75ca301e | 121 | |
mbed_official | 340:28d1f895c6fe | 122 | /** @defgroup TIMEx_Remap TIMEx Remap |
mbed_official | 340:28d1f895c6fe | 123 | * @{ |
mbed_official | 340:28d1f895c6fe | 124 | */ |
mbed_official | 340:28d1f895c6fe | 125 | |
mbed_official | 340:28d1f895c6fe | 126 | #define TIM_TIM14_GPIO (0x00000000) /*!< TIM14 TI1 is connected to GPIO */ |
mbed_official | 340:28d1f895c6fe | 127 | #define TIM_TIM14_RTC (0x00000001) /*!< TIM14 TI1 is connected to RTC_clock */ |
mbed_official | 340:28d1f895c6fe | 128 | #define TIM_TIM14_HSE (0x00000002) /*!< TIM14 TI1 is connected to HSE/32 */ |
mbed_official | 340:28d1f895c6fe | 129 | #define TIM_TIM14_MCO (0x00000003) /*!< TIM14 TI1 is connected to MCO */ |
mbed_official | 340:28d1f895c6fe | 130 | |
mbed_official | 340:28d1f895c6fe | 131 | #define IS_TIM_REMAP(TIM_REMAP) (((TIM_REMAP) == TIM_TIM14_GPIO) ||\ |
mbed_official | 340:28d1f895c6fe | 132 | ((TIM_REMAP) == TIM_TIM14_RTC) ||\ |
mbed_official | 340:28d1f895c6fe | 133 | ((TIM_REMAP) == TIM_TIM14_HSE) ||\ |
mbed_official | 340:28d1f895c6fe | 134 | ((TIM_REMAP) == TIM_TIM14_MCO)) |
mbed_official | 340:28d1f895c6fe | 135 | /** |
mbed_official | 340:28d1f895c6fe | 136 | * @} |
mbed_official | 340:28d1f895c6fe | 137 | */ |
mbed_official | 340:28d1f895c6fe | 138 | |
mbed_official | 630:825f75ca301e | 139 | /** @defgroup TIMEx_Clock_Filter TIMEx Clock Filter |
mbed_official | 340:28d1f895c6fe | 140 | * @{ |
mbed_official | 340:28d1f895c6fe | 141 | */ |
mbed_official | 630:825f75ca301e | 142 | #define IS_TIM_DEADTIME(DEADTIME) ((DEADTIME) <= 0xFF) /*!< BreakDead Time */ |
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 | |
mbed_official | 340:28d1f895c6fe | 151 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 340:28d1f895c6fe | 152 | |
mbed_official | 340:28d1f895c6fe | 153 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 340:28d1f895c6fe | 154 | /** @addtogroup TIMEx_Exported_Functions |
mbed_official | 340:28d1f895c6fe | 155 | * @{ |
mbed_official | 340:28d1f895c6fe | 156 | */ |
mbed_official | 340:28d1f895c6fe | 157 | |
mbed_official | 630:825f75ca301e | 158 | /** @addtogroup TIMEx_Exported_Functions_Group1 |
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 | 630:825f75ca301e | 181 | /** @addtogroup TIMEx_Exported_Functions_Group2 |
mbed_official | 340:28d1f895c6fe | 182 | * @{ |
mbed_official | 340:28d1f895c6fe | 183 | */ |
mbed_official | 340:28d1f895c6fe | 184 | /* Timer Complementary Output Compare functions *****************************/ |
mbed_official | 340:28d1f895c6fe | 185 | /* Blocking mode: Polling */ |
mbed_official | 340:28d1f895c6fe | 186 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 187 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 188 | |
mbed_official | 340:28d1f895c6fe | 189 | /* Non-Blocking mode: Interrupt */ |
mbed_official | 340:28d1f895c6fe | 190 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 191 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 192 | |
mbed_official | 340:28d1f895c6fe | 193 | /* Non-Blocking mode: DMA */ |
mbed_official | 340:28d1f895c6fe | 194 | HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); |
mbed_official | 340:28d1f895c6fe | 195 | HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 196 | /** |
mbed_official | 340:28d1f895c6fe | 197 | * @} |
mbed_official | 340:28d1f895c6fe | 198 | */ |
mbed_official | 340:28d1f895c6fe | 199 | |
mbed_official | 630:825f75ca301e | 200 | /** @addtogroup TIMEx_Exported_Functions_Group3 |
mbed_official | 340:28d1f895c6fe | 201 | * @{ |
mbed_official | 340:28d1f895c6fe | 202 | */ |
mbed_official | 340:28d1f895c6fe | 203 | /* Timer Complementary PWM functions ****************************************/ |
mbed_official | 340:28d1f895c6fe | 204 | /* Blocking mode: Polling */ |
mbed_official | 340:28d1f895c6fe | 205 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 206 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 207 | |
mbed_official | 340:28d1f895c6fe | 208 | /* Non-Blocking mode: Interrupt */ |
mbed_official | 340:28d1f895c6fe | 209 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 210 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 211 | /* Non-Blocking mode: DMA */ |
mbed_official | 340:28d1f895c6fe | 212 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); |
mbed_official | 340:28d1f895c6fe | 213 | HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); |
mbed_official | 340:28d1f895c6fe | 214 | /** |
mbed_official | 340:28d1f895c6fe | 215 | * @} |
mbed_official | 340:28d1f895c6fe | 216 | */ |
mbed_official | 340:28d1f895c6fe | 217 | |
mbed_official | 630:825f75ca301e | 218 | /** @addtogroup TIMEx_Exported_Functions_Group4 |
mbed_official | 340:28d1f895c6fe | 219 | * @{ |
mbed_official | 340:28d1f895c6fe | 220 | */ |
mbed_official | 340:28d1f895c6fe | 221 | /* Timer Complementary One Pulse functions **********************************/ |
mbed_official | 340:28d1f895c6fe | 222 | /* Blocking mode: Polling */ |
mbed_official | 340:28d1f895c6fe | 223 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
mbed_official | 340:28d1f895c6fe | 224 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
mbed_official | 340:28d1f895c6fe | 225 | |
mbed_official | 340:28d1f895c6fe | 226 | /* Non-Blocking mode: Interrupt */ |
mbed_official | 340:28d1f895c6fe | 227 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
mbed_official | 340:28d1f895c6fe | 228 | HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); |
mbed_official | 340:28d1f895c6fe | 229 | /** |
mbed_official | 340:28d1f895c6fe | 230 | * @} |
mbed_official | 340:28d1f895c6fe | 231 | */ |
mbed_official | 340:28d1f895c6fe | 232 | |
mbed_official | 630:825f75ca301e | 233 | /** @addtogroup TIMEx_Exported_Functions_Group5 |
mbed_official | 340:28d1f895c6fe | 234 | * @{ |
mbed_official | 340:28d1f895c6fe | 235 | */ |
mbed_official | 340:28d1f895c6fe | 236 | /* Extended Control functions ************************************************/ |
mbed_official | 340:28d1f895c6fe | 237 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
mbed_official | 340:28d1f895c6fe | 238 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
mbed_official | 340:28d1f895c6fe | 239 | HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); |
mbed_official | 340:28d1f895c6fe | 240 | HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef * sMasterConfig); |
mbed_official | 340:28d1f895c6fe | 241 | HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig); |
mbed_official | 340:28d1f895c6fe | 242 | HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap); |
mbed_official | 340:28d1f895c6fe | 243 | /** |
mbed_official | 340:28d1f895c6fe | 244 | * @} |
mbed_official | 340:28d1f895c6fe | 245 | */ |
mbed_official | 340:28d1f895c6fe | 246 | |
mbed_official | 630:825f75ca301e | 247 | /** @addtogroup TIMEx_Exported_Functions_Group6 |
mbed_official | 340:28d1f895c6fe | 248 | * @{ |
mbed_official | 340:28d1f895c6fe | 249 | */ |
mbed_official | 340:28d1f895c6fe | 250 | /* Extension Callback *********************************************************/ |
mbed_official | 340:28d1f895c6fe | 251 | void HAL_TIMEx_CommutationCallback(TIM_HandleTypeDef *htim); |
mbed_official | 340:28d1f895c6fe | 252 | void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim); |
mbed_official | 340:28d1f895c6fe | 253 | /** |
mbed_official | 340:28d1f895c6fe | 254 | * @} |
mbed_official | 340:28d1f895c6fe | 255 | */ |
mbed_official | 340:28d1f895c6fe | 256 | |
mbed_official | 630:825f75ca301e | 257 | /** @addtogroup TIMEx_Exported_Functions_Group7 |
mbed_official | 340:28d1f895c6fe | 258 | * @{ |
mbed_official | 340:28d1f895c6fe | 259 | */ |
mbed_official | 340:28d1f895c6fe | 260 | /* Extension Peripheral State functions **************************************/ |
mbed_official | 340:28d1f895c6fe | 261 | HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim); |
mbed_official | 340:28d1f895c6fe | 262 | /** |
mbed_official | 340:28d1f895c6fe | 263 | * @} |
mbed_official | 340:28d1f895c6fe | 264 | */ |
mbed_official | 340:28d1f895c6fe | 265 | |
mbed_official | 340:28d1f895c6fe | 266 | /** |
mbed_official | 340:28d1f895c6fe | 267 | * @} |
mbed_official | 630:825f75ca301e | 268 | */ |
mbed_official | 630:825f75ca301e | 269 | /* End of exported functions -------------------------------------------------*/ |
mbed_official | 340:28d1f895c6fe | 270 | |
mbed_official | 630:825f75ca301e | 271 | /* Private functions----------------------------------------------------------*/ |
mbed_official | 630:825f75ca301e | 272 | /** @defgroup TIMEx_Private_Functions TIMEx Private Functions |
mbed_official | 630:825f75ca301e | 273 | * @{ |
mbed_official | 630:825f75ca301e | 274 | */ |
mbed_official | 630:825f75ca301e | 275 | void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma); |
mbed_official | 340:28d1f895c6fe | 276 | /** |
mbed_official | 630:825f75ca301e | 277 | * @} |
mbed_official | 630:825f75ca301e | 278 | */ |
mbed_official | 630:825f75ca301e | 279 | /* End of private functions --------------------------------------------------*/ |
mbed_official | 340:28d1f895c6fe | 280 | |
mbed_official | 340:28d1f895c6fe | 281 | /** |
mbed_official | 340:28d1f895c6fe | 282 | * @} |
mbed_official | 340:28d1f895c6fe | 283 | */ |
mbed_official | 630:825f75ca301e | 284 | |
mbed_official | 630:825f75ca301e | 285 | /** |
mbed_official | 630:825f75ca301e | 286 | * @} |
mbed_official | 630:825f75ca301e | 287 | */ |
mbed_official | 630:825f75ca301e | 288 | |
mbed_official | 340:28d1f895c6fe | 289 | #ifdef __cplusplus |
mbed_official | 340:28d1f895c6fe | 290 | } |
mbed_official | 340:28d1f895c6fe | 291 | #endif |
mbed_official | 340:28d1f895c6fe | 292 | |
mbed_official | 340:28d1f895c6fe | 293 | |
mbed_official | 340:28d1f895c6fe | 294 | #endif /* __STM32F0xx_HAL_TIM_EX_H */ |
mbed_official | 340:28d1f895c6fe | 295 | |
mbed_official | 340:28d1f895c6fe | 296 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |