STM32F4xx_HAL_Driver  1.8.3
Extended Timer Hall Sensor functions

Timer Hall Sensor functions. More...

+ Collaboration diagram for Extended Timer Hall Sensor functions:

Functions

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init (TIM_HandleTypeDef *htim, const TIM_HallSensor_InitTypeDef *sConfig)
 Initializes the TIM Hall Sensor Interface and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit (TIM_HandleTypeDef *htim)
 DeInitializes the TIM Hall Sensor interface. More...
 
void HAL_TIMEx_HallSensor_MspInit (TIM_HandleTypeDef *htim)
 Initializes the TIM Hall Sensor MSP. More...
 
void HAL_TIMEx_HallSensor_MspDeInit (TIM_HandleTypeDef *htim)
 DeInitializes TIM Hall Sensor MSP. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start (TIM_HandleTypeDef *htim)
 Starts the TIM Hall Sensor Interface. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop (TIM_HandleTypeDef *htim)
 Stops the TIM Hall sensor Interface. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT (TIM_HandleTypeDef *htim)
 Starts the TIM Hall Sensor Interface in interrupt mode. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT (TIM_HandleTypeDef *htim)
 Stops the TIM Hall Sensor Interface in interrupt mode. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA (TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length)
 Starts the TIM Hall Sensor Interface in DMA mode. More...
 
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA (TIM_HandleTypeDef *htim)
 Stops the TIM Hall Sensor Interface in DMA mode. More...
 

Detailed Description

Timer Hall Sensor functions.

  ==============================================================================
                      ##### Timer Hall Sensor functions #####
  ==============================================================================
  [..]
    This section provides functions allowing to:
    (+) Initialize and configure TIM HAL Sensor.
    (+) De-initialize TIM HAL Sensor.
    (+) Start the Hall Sensor Interface.
    (+) Stop the Hall Sensor Interface.
    (+) Start the Hall Sensor Interface and enable interrupts.
    (+) Stop the Hall Sensor Interface and disable interrupts.
    (+) Start the Hall Sensor Interface and enable DMA transfers.
    (+) Stop the Hall Sensor Interface and disable DMA transfers.

Function Documentation

◆ HAL_TIMEx_HallSensor_DeInit()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit ( TIM_HandleTypeDef htim)

DeInitializes the TIM Hall Sensor interface.

Parameters
htimTIM Hall Sensor Interface handle
Return values
HALstatus

Definition at line 240 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Init()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init ( TIM_HandleTypeDef htim,
const TIM_HallSensor_InitTypeDef sConfig 
)

Initializes the TIM Hall Sensor Interface and initialize the associated handle.

Note
When the timer instance is initialized in Hall Sensor Interface mode, timer channels 1 and channel 2 are reserved and cannot be used for other purpose.
Parameters
htimTIM Hall Sensor Interface handle
sConfigTIM Hall Sensor configuration structure
Return values
HALstatus

Definition at line 138 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_MspDeInit()

__weak void HAL_TIMEx_HallSensor_MspDeInit ( TIM_HandleTypeDef htim)

DeInitializes TIM Hall Sensor MSP.

Parameters
htimTIM Hall Sensor Interface handle
Return values
None

Definition at line 300 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_MspInit()

__weak void HAL_TIMEx_HallSensor_MspInit ( TIM_HandleTypeDef htim)

Initializes the TIM Hall Sensor MSP.

Parameters
htimTIM Hall Sensor Interface handle
Return values
None

Definition at line 285 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Start()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start ( TIM_HandleTypeDef htim)

Starts the TIM Hall Sensor Interface.

Parameters
htimTIM Hall Sensor Interface handle
Return values
HALstatus

Definition at line 315 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Start_DMA()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA ( TIM_HandleTypeDef htim,
uint32_t *  pData,
uint16_t  Length 
)

Starts the TIM Hall Sensor Interface in DMA mode.

Parameters
htimTIM Hall Sensor Interface handle
pDataThe destination Buffer address.
LengthThe length of data to be transferred from TIM peripheral to memory.
Return values
HALstatus

Definition at line 487 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Start_IT()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT ( TIM_HandleTypeDef htim)

Starts the TIM Hall Sensor Interface in interrupt mode.

Parameters
htimTIM Hall Sensor Interface handle
Return values
HALstatus

Definition at line 397 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Stop()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop ( TIM_HandleTypeDef htim)

Stops the TIM Hall sensor Interface.

Parameters
htimTIM Hall Sensor Interface handle
Return values
HALstatus

Definition at line 369 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Stop_DMA()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA ( TIM_HandleTypeDef htim)

Stops the TIM Hall Sensor Interface in DMA mode.

Parameters
htimTIM Hall Sensor Interface handle
Return values
HALstatus

Definition at line 563 of file stm32f4xx_hal_tim_ex.c.

◆ HAL_TIMEx_HallSensor_Stop_IT()

HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT ( TIM_HandleTypeDef htim)

Stops the TIM Hall Sensor Interface in interrupt mode.

Parameters
htimTIM Hall Sensor Interface handle
Return values
HALstatus

Definition at line 454 of file stm32f4xx_hal_tim_ex.c.