STM32F4xx_HAL_Driver  1.8.3
TIM Time Base functions

Time Base functions. More...

+ Collaboration diagram for TIM Time Base functions:

Functions

HAL_StatusTypeDef HAL_TIM_Base_Init (TIM_HandleTypeDef *htim)
 Initializes the TIM Time base Unit according to the specified parameters in the TIM_HandleTypeDef and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_TIM_Base_DeInit (TIM_HandleTypeDef *htim)
 DeInitializes the TIM Base peripheral. More...
 
void HAL_TIM_Base_MspInit (TIM_HandleTypeDef *htim)
 Initializes the TIM Base MSP. More...
 
void HAL_TIM_Base_MspDeInit (TIM_HandleTypeDef *htim)
 DeInitializes TIM Base MSP. More...
 
HAL_StatusTypeDef HAL_TIM_Base_Start (TIM_HandleTypeDef *htim)
 Starts the TIM Base generation. More...
 
HAL_StatusTypeDef HAL_TIM_Base_Stop (TIM_HandleTypeDef *htim)
 Stops the TIM Base generation. More...
 
HAL_StatusTypeDef HAL_TIM_Base_Start_IT (TIM_HandleTypeDef *htim)
 Starts the TIM Base generation in interrupt mode. More...
 
HAL_StatusTypeDef HAL_TIM_Base_Stop_IT (TIM_HandleTypeDef *htim)
 Stops the TIM Base generation in interrupt mode. More...
 
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. More...
 
HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA (TIM_HandleTypeDef *htim)
 Stops the TIM Base generation in DMA mode. More...
 

Detailed Description

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.

Function Documentation

◆ HAL_TIM_Base_DeInit()

HAL_StatusTypeDef HAL_TIM_Base_DeInit ( TIM_HandleTypeDef htim)

DeInitializes the TIM Base peripheral.

Parameters
htimTIM Base handle
Return values
HALstatus

Definition at line 326 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_Init()

HAL_StatusTypeDef HAL_TIM_Base_Init ( TIM_HandleTypeDef htim)

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
htimTIM Base handle
Return values
HALstatus

Definition at line 266 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_MspDeInit()

__weak void HAL_TIM_Base_MspDeInit ( TIM_HandleTypeDef htim)

DeInitializes TIM Base MSP.

Parameters
htimTIM Base handle
Return values
None

Definition at line 384 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_MspInit()

__weak void HAL_TIM_Base_MspInit ( TIM_HandleTypeDef htim)

Initializes the TIM Base MSP.

Parameters
htimTIM Base handle
Return values
None

Definition at line 369 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_Start()

HAL_StatusTypeDef HAL_TIM_Base_Start ( TIM_HandleTypeDef htim)

Starts the TIM Base generation.

Parameters
htimTIM Base handle
Return values
HALstatus

Definition at line 400 of file stm32f4xx_hal_tim.c.

◆ 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
htimTIM Base handle
pDataThe source Buffer address.
LengthThe length of data to be transferred from memory to peripheral.
Return values
HALstatus

Definition at line 526 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_Start_IT()

HAL_StatusTypeDef HAL_TIM_Base_Start_IT ( TIM_HandleTypeDef htim)

Starts the TIM Base generation in interrupt mode.

Parameters
htimTIM Base handle
Return values
HALstatus

Definition at line 459 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_Stop()

HAL_StatusTypeDef HAL_TIM_Base_Stop ( TIM_HandleTypeDef htim)

Stops the TIM Base generation.

Parameters
htimTIM Base handle
Return values
HALstatus

Definition at line 439 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_Stop_DMA()

HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA ( TIM_HandleTypeDef htim)

Stops the TIM Base generation in DMA mode.

Parameters
htimTIM Base handle
Return values
HALstatus

Definition at line 595 of file stm32f4xx_hal_tim.c.

◆ HAL_TIM_Base_Stop_IT()

HAL_StatusTypeDef HAL_TIM_Base_Stop_IT ( TIM_HandleTypeDef htim)

Stops the TIM Base generation in interrupt mode.

Parameters
htimTIM Base handle
Return values
HALstatus

Definition at line 501 of file stm32f4xx_hal_tim.c.