STM32L486xx HAL User Manual
Functions
Initialization and de-initialization functions
Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_TSC_Init (TSC_HandleTypeDef *htsc)
 Initialize the TSC peripheral according to the specified parameters in the TSC_InitTypeDef structure and initialize the associated handle.
HAL_StatusTypeDef HAL_TSC_DeInit (TSC_HandleTypeDef *htsc)
 Deinitialize the TSC peripheral registers to their default reset values.
__weak void HAL_TSC_MspInit (TSC_HandleTypeDef *htsc)
 Initialize the TSC MSP.
__weak void HAL_TSC_MspDeInit (TSC_HandleTypeDef *htsc)
 DeInitialize the TSC MSP.
HAL_StatusTypeDef HAL_TSC_RegisterCallback (TSC_HandleTypeDef *htsc, HAL_TSC_CallbackIDTypeDef CallbackID, pTSC_CallbackTypeDef pCallback)
 Register a User TSC Callback To be used instead of the weak predefined callback.
HAL_StatusTypeDef HAL_TSC_UnRegisterCallback (TSC_HandleTypeDef *htsc, HAL_TSC_CallbackIDTypeDef CallbackID)
 Unregister an TSC Callback TSC callback is redirected to the weak predefined callback.

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
              ##### Initialization and de-initialization functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the TSC.
      (+) De-initialize the TSC.

Function Documentation

HAL_StatusTypeDef HAL_TSC_DeInit ( TSC_HandleTypeDef htsc)

Deinitialize the TSC peripheral registers to their default reset values.

Parameters:
htscTSC handle
Return values:
HALstatus

Definition at line 358 of file stm32l4xx_hal_tsc.c.

References assert_param, HAL_TSC_MspDeInit(), HAL_TSC_STATE_BUSY, HAL_TSC_STATE_RESET, __TSC_HandleTypeDef::Instance, __TSC_HandleTypeDef::MspDeInitCallback, and __TSC_HandleTypeDef::State.

HAL_StatusTypeDef HAL_TSC_Init ( TSC_HandleTypeDef htsc)

DeInitialize the TSC MSP.

Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
Return values:
None

Definition at line 417 of file stm32l4xx_hal_tsc.c.

Referenced by HAL_TSC_DeInit(), and HAL_TSC_UnRegisterCallback().

Initialize the TSC MSP.

Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
Return values:
None

Definition at line 401 of file stm32l4xx_hal_tsc.c.

Referenced by HAL_TSC_Init(), and HAL_TSC_UnRegisterCallback().

HAL_StatusTypeDef HAL_TSC_RegisterCallback ( TSC_HandleTypeDef htsc,
HAL_TSC_CallbackIDTypeDef  CallbackID,
pTSC_CallbackTypeDef  pCallback 
)

Register a User TSC Callback To be used instead of the weak predefined callback.

Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values:
HALstatus

Definition at line 442 of file stm32l4xx_hal_tsc.c.

References __TSC_HandleTypeDef::ConvCpltCallback, __TSC_HandleTypeDef::ErrorCallback, __TSC_HandleTypeDef::ErrorCode, HAL_TSC_CONV_COMPLETE_CB_ID, HAL_TSC_ERROR_CB_ID, HAL_TSC_ERROR_INVALID_CALLBACK, HAL_TSC_MSPDEINIT_CB_ID, HAL_TSC_MSPINIT_CB_ID, HAL_TSC_STATE_READY, HAL_TSC_STATE_RESET, __TSC_HandleTypeDef::MspDeInitCallback, __TSC_HandleTypeDef::MspInitCallback, and __TSC_HandleTypeDef::State.

HAL_StatusTypeDef HAL_TSC_UnRegisterCallback ( TSC_HandleTypeDef htsc,
HAL_TSC_CallbackIDTypeDef  CallbackID 
)

Unregister an TSC Callback TSC callback is redirected to the weak predefined callback.

Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
CallbackIDID of the callback to be unregistered This parameter can be one of the following values: This parameter can be one of the following values:
Return values:
HALstatus

Definition at line 534 of file stm32l4xx_hal_tsc.c.

References __TSC_HandleTypeDef::ConvCpltCallback, __TSC_HandleTypeDef::ErrorCallback, __TSC_HandleTypeDef::ErrorCode, HAL_TSC_CONV_COMPLETE_CB_ID, HAL_TSC_ConvCpltCallback(), HAL_TSC_ERROR_CB_ID, HAL_TSC_ERROR_INVALID_CALLBACK, HAL_TSC_ErrorCallback(), HAL_TSC_MspDeInit(), HAL_TSC_MSPDEINIT_CB_ID, HAL_TSC_MspInit(), HAL_TSC_MSPINIT_CB_ID, HAL_TSC_STATE_READY, HAL_TSC_STATE_RESET, __TSC_HandleTypeDef::MspDeInitCallback, __TSC_HandleTypeDef::MspInitCallback, and __TSC_HandleTypeDef::State.