STM32L443xx HAL User Manual
|
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. |
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TSC. (+) De-initialize the TSC.
HAL_StatusTypeDef HAL_TSC_DeInit | ( | TSC_HandleTypeDef * | htsc | ) |
Deinitialize the TSC peripheral registers to their default reset values.
htsc | TSC handle |
HAL | status |
Definition at line 351 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 | ) |
Initialize the TSC peripheral according to the specified parameters in the TSC_InitTypeDef structure and initialize the associated handle.
htsc | TSC handle |
HAL | status |
Definition at line 245 of file stm32l4xx_hal_tsc.c.
References TSC_InitTypeDef::AcquisitionMode, assert_param, TSC_InitTypeDef::ChannelIOs, __TSC_HandleTypeDef::ConvCpltCallback, TSC_InitTypeDef::CTPulseHighLength, TSC_InitTypeDef::CTPulseLowLength, __TSC_HandleTypeDef::ErrorCallback, HAL_TSC_ConvCpltCallback(), HAL_TSC_ErrorCallback(), HAL_TSC_MspInit(), HAL_TSC_STATE_BUSY, HAL_TSC_STATE_READY, HAL_TSC_STATE_RESET, __TSC_HandleTypeDef::Init, __TSC_HandleTypeDef::Instance, TSC_InitTypeDef::IODefaultMode, IS_TSC_ACQ_MODE, IS_TSC_CTPH, IS_TSC_CTPL, IS_TSC_GROUP, IS_TSC_IODEF, IS_TSC_MCE_IT, IS_TSC_MCV, IS_TSC_PG_PRESC, IS_TSC_PG_PRESC_VS_CTPL, IS_TSC_SS, IS_TSC_SS_PRESC, IS_TSC_SSD, IS_TSC_SYNC_POL, __TSC_HandleTypeDef::Lock, TSC_InitTypeDef::MaxCountInterrupt, TSC_InitTypeDef::MaxCountValue, __TSC_HandleTypeDef::MspInitCallback, TSC_InitTypeDef::PulseGeneratorPrescaler, TSC_InitTypeDef::SamplingIOs, TSC_InitTypeDef::ShieldIOs, TSC_InitTypeDef::SpreadSpectrum, TSC_InitTypeDef::SpreadSpectrumDeviation, TSC_InitTypeDef::SpreadSpectrumPrescaler, __TSC_HandleTypeDef::State, TSC_InitTypeDef::SynchroPinPolarity, TSC_extract_groups(), TSC_FLAG_EOA, TSC_FLAG_MCE, TSC_IT_EOA, and TSC_IT_MCE.
void HAL_TSC_MspDeInit | ( | TSC_HandleTypeDef * | htsc | ) |
DeInitialize the TSC MSP.
htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
None |
Definition at line 410 of file stm32l4xx_hal_tsc.c.
Referenced by HAL_TSC_DeInit(), and HAL_TSC_UnRegisterCallback().
void HAL_TSC_MspInit | ( | TSC_HandleTypeDef * | htsc | ) |
Initialize the TSC MSP.
htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
None |
Definition at line 394 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.
htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
HAL | status |
Definition at line 435 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.
htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values: This parameter can be one of the following values:
|
HAL | status |
Definition at line 528 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.