Go to the documentation of this file.
21 #ifndef STM32F7xx_HAL_TIM_EX_H
22 #define STM32F7xx_HAL_TIM_EX_H
53 uint32_t IC1Prescaler;
59 uint32_t Commutation_Delay;
62 #if defined(TIM_BREAK_INPUT_SUPPORT)
77 TIMEx_BreakInputConfigTypeDef;
93 #define TIM_TIM2_TIM8_TRGO (0x00000000U)
94 #define TIM_TIM2_ETH_PTP (0x00000400U)
95 #define TIM_TIM2_USBFS_SOF (0x00000800U)
96 #define TIM_TIM2_USBHS_SOF (0x00000C00U)
97 #define TIM_TIM5_GPIO (0x00000000U)
98 #define TIM_TIM5_LSI (0x00000040U)
99 #define TIM_TIM5_LSE (0x00000080U)
100 #define TIM_TIM5_RTC (0x000000C0U)
101 #define TIM_TIM11_GPIO (0x00000000U)
102 #define TIM_TIM11_SPDIFRX (0x00000001U)
103 #define TIM_TIM11_HSE (0x00000002U)
104 #define TIM_TIM11_MCO1 (0x00000003U)
108 #if defined(TIM_BREAK_INPUT_SUPPORT)
113 #define TIM_BREAKINPUT_BRK 0x00000001U
114 #define TIM_BREAKINPUT_BRK2 0x00000002U
122 #define TIM_BREAKINPUTSOURCE_BKIN ((uint32_t)0x00000001U)
123 #define TIM_BREAKINPUTSOURCE_DFSDM1 ((uint32_t)0x00000008U)
131 #define TIM_BREAKINPUTSOURCE_DISABLE 0x00000000U
132 #define TIM_BREAKINPUTSOURCE_ENABLE 0x00000001U
140 #define TIM_BREAKINPUTSOURCE_POLARITY_LOW 0x00000001U
141 #define TIM_BREAKINPUTSOURCE_POLARITY_HIGH 0x00000000U
166 #define IS_TIM_REMAP(__TIM_REMAP__) (((__TIM_REMAP__) == TIM_TIM2_TIM8_TRGO)||\
167 ((__TIM_REMAP__) == TIM_TIM2_ETH_PTP) ||\
168 ((__TIM_REMAP__) == TIM_TIM2_USBFS_SOF)||\
169 ((__TIM_REMAP__) == TIM_TIM2_USBHS_SOF)||\
170 ((__TIM_REMAP__) == TIM_TIM5_GPIO) ||\
171 ((__TIM_REMAP__) == TIM_TIM5_LSI) ||\
172 ((__TIM_REMAP__) == TIM_TIM5_LSE) ||\
173 ((__TIM_REMAP__) == TIM_TIM5_RTC) ||\
174 ((__TIM_REMAP__) == TIM_TIM11_GPIO) ||\
175 ((__TIM_REMAP__) == TIM_TIM11_SPDIFRX) ||\
176 ((__TIM_REMAP__) == TIM_TIM11_HSE) ||\
177 ((__TIM_REMAP__) == TIM_TIM11_MCO1))
178 #if defined(TIM_BREAK_INPUT_SUPPORT)
180 #define IS_TIM_BREAKINPUT(__BREAKINPUT__) (((__BREAKINPUT__) == TIM_BREAKINPUT_BRK) || \
181 ((__BREAKINPUT__) == TIM_BREAKINPUT_BRK2))
183 #define IS_TIM_BREAKINPUTSOURCE(__SOURCE__) (((__SOURCE__) == TIM_BREAKINPUTSOURCE_BKIN) || \
184 ((__SOURCE__) == TIM_BREAKINPUTSOURCE_DFSDM))
186 #define IS_TIM_BREAKINPUTSOURCE_STATE(__STATE__) (((__STATE__) == TIM_BREAKINPUTSOURCE_DISABLE) || \
187 ((__STATE__) == TIM_BREAKINPUTSOURCE_ENABLE))
189 #define IS_TIM_BREAKINPUTSOURCE_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_BREAKINPUTSOURCE_POLARITY_LOW) || \
190 ((__POLARITY__) == TIM_BREAKINPUTSOURCE_POLARITY_HIGH))
288 uint32_t CommutationSource);
290 uint32_t CommutationSource);
292 uint32_t CommutationSource);
297 #if defined(TIM_BREAK_INPUT_SUPPORT)
299 TIMEx_BreakInputConfigTypeDef *sBreakInputConfig);
HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap)
HAL_StatusTypeDef
HAL Status structures definition
void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim)
HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length)
HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel)
void HAL_TIMEx_CommutHalfCpltCallback(TIM_HandleTypeDef *htim)
DMA handle Structure definition.
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim)
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim)
void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma)
HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
TIM Hall sensor Configuration Structure definition.
HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
TIM Time Base Handle Structure definition.
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim)
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length)
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef *sConfig)
HAL_TIM_StateTypeDef
HAL State structures definition.
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim)
void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel)
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim)
TIM Master configuration Structure definition.
HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig)
HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim)
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
HAL_StatusTypeDef HAL_TIMEx_GroupChannel5(TIM_HandleTypeDef *htim, uint32_t Channels)
void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma)
HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim)
TIM Break input(s) and Dead time configuration Structure definition.
HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length)
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim)