Time Base functions.
More...
Time Base functions.
==============================================================================
##### Time Base functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Initialize and configure the TIM base.
(+) De-initialize the TIM base.
(+) Start the Time Base.
(+) Stop the Time Base.
(+) Start the Time Base and enable interrupt.
(+) Stop the Time Base and disable interrupt.
(+) Start the Time Base and enable DMA transfer.
(+) Stop the Time Base and disable DMA transfer.
◆ HAL_TIM_Base_DeInit()
DeInitializes the TIM Base peripheral.
- Parameters
-
- Return values
-
Definition at line 326 of file stm32f4xx_hal_tim.c.
◆ HAL_TIM_Base_Init()
Initializes the TIM Time base Unit according to the specified parameters in the TIM_HandleTypeDef and initialize the associated handle.
- Note
- Switching from Center Aligned counter mode to Edge counter mode (or reverse) requires a timer reset to avoid unexpected direction due to DIR bit readonly in center aligned mode. Ex: call HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
- Parameters
-
- Return values
-
Definition at line 266 of file stm32f4xx_hal_tim.c.
◆ HAL_TIM_Base_MspDeInit()
◆ HAL_TIM_Base_MspInit()
◆ HAL_TIM_Base_Start()
◆ HAL_TIM_Base_Start_DMA()
HAL_StatusTypeDef HAL_TIM_Base_Start_DMA |
( |
TIM_HandleTypeDef * |
htim, |
|
|
const uint32_t * |
pData, |
|
|
uint16_t |
Length |
|
) |
| |
Starts the TIM Base generation in DMA mode.
- Parameters
-
htim | TIM Base handle |
pData | The source Buffer address. |
Length | The length of data to be transferred from memory to peripheral. |
- Return values
-
Definition at line 526 of file stm32f4xx_hal_tim.c.
◆ HAL_TIM_Base_Start_IT()
Starts the TIM Base generation in interrupt mode.
- Parameters
-
- Return values
-
Definition at line 459 of file stm32f4xx_hal_tim.c.
◆ HAL_TIM_Base_Stop()
◆ HAL_TIM_Base_Stop_DMA()
Stops the TIM Base generation in DMA mode.
- Parameters
-
- Return values
-
Definition at line 595 of file stm32f4xx_hal_tim.c.
◆ HAL_TIM_Base_Stop_IT()
Stops the TIM Base generation in interrupt mode.
- Parameters
-
- Return values
-
Definition at line 501 of file stm32f4xx_hal_tim.c.