STM32L486xx HAL User Manual
Functions
Input and Output operation functions
Exported Functions

Input and Output operation functions. More...

Functions

HAL_StatusTypeDef HAL_TSC_Start (TSC_HandleTypeDef *htsc)
 Start the acquisition.
HAL_StatusTypeDef HAL_TSC_Start_IT (TSC_HandleTypeDef *htsc)
 Start the acquisition in interrupt mode.
HAL_StatusTypeDef HAL_TSC_Stop (TSC_HandleTypeDef *htsc)
 Stop the acquisition previously launched in polling mode.
HAL_StatusTypeDef HAL_TSC_Stop_IT (TSC_HandleTypeDef *htsc)
 Stop the acquisition previously launched in interrupt mode.
HAL_StatusTypeDef HAL_TSC_PollForAcquisition (TSC_HandleTypeDef *htsc)
 Start acquisition and wait until completion.
TSC_GroupStatusTypeDef HAL_TSC_GroupGetStatus (TSC_HandleTypeDef *htsc, uint32_t gx_index)
 Get the acquisition status for a group.
uint32_t HAL_TSC_GroupGetValue (TSC_HandleTypeDef *htsc, uint32_t gx_index)
 Get the acquisition measure for a group.

Detailed Description

Input and Output operation functions.

 ===============================================================================
             ##### IO Operation functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Start acquisition in polling mode.
      (+) Start acquisition in interrupt mode.
      (+) Stop conversion in polling mode.
      (+) Stop conversion in interrupt mode.
      (+) Poll for acquisition completed.
      (+) Get group acquisition status.
      (+) Get group acquisition value.

Function Documentation

Get the acquisition status for a group.

Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
gx_indexIndex of the group
Return values:
Groupstatus

Definition at line 831 of file stm32l4xx_hal_tsc.c.

References __HAL_TSC_GET_GROUP_STATUS, assert_param, __TSC_HandleTypeDef::Instance, and IS_TSC_GROUP_INDEX.

uint32_t HAL_TSC_GroupGetValue ( TSC_HandleTypeDef htsc,
uint32_t  gx_index 
)

Get the acquisition measure for a group.

Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
gx_indexIndex of the group
Return values:
Acquisitionmeasure

Definition at line 848 of file stm32l4xx_hal_tsc.c.

References assert_param, __TSC_HandleTypeDef::Instance, and IS_TSC_GROUP_INDEX.

HAL_StatusTypeDef HAL_TSC_PollForAcquisition ( TSC_HandleTypeDef htsc)

Start acquisition and wait until completion.

Note:
There is no need of a timeout parameter as the max count error is already managed by the TSC peripheral.
Parameters:
htscPointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC.
Return values:
HALstate

Definition at line 804 of file stm32l4xx_hal_tsc.c.

References assert_param, HAL_TSC_GetState(), HAL_TSC_STATE_BUSY, and __TSC_HandleTypeDef::Instance.

HAL_StatusTypeDef HAL_TSC_Start ( TSC_HandleTypeDef htsc)

Start the acquisition.

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

Definition at line 636 of file stm32l4xx_hal_tsc.c.

References __HAL_TSC_CLEAR_FLAG, __HAL_TSC_DISABLE_IT, __HAL_TSC_SET_IODEF_INFLOAT, __HAL_TSC_SET_IODEF_OUTPPLOW, __HAL_TSC_START_ACQ, assert_param, HAL_TSC_STATE_BUSY, __TSC_HandleTypeDef::Init, __TSC_HandleTypeDef::Instance, TSC_InitTypeDef::IODefaultMode, __TSC_HandleTypeDef::State, TSC_FLAG_EOA, TSC_FLAG_MCE, TSC_IODEF_OUT_PP_LOW, TSC_IT_EOA, and TSC_IT_MCE.

HAL_StatusTypeDef HAL_TSC_Start_IT ( TSC_HandleTypeDef htsc)

Start the acquisition in interrupt mode.

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

Definition at line 679 of file stm32l4xx_hal_tsc.c.

References __HAL_TSC_CLEAR_FLAG, __HAL_TSC_DISABLE_IT, __HAL_TSC_ENABLE_IT, __HAL_TSC_SET_IODEF_INFLOAT, __HAL_TSC_SET_IODEF_OUTPPLOW, __HAL_TSC_START_ACQ, assert_param, HAL_TSC_STATE_BUSY, __TSC_HandleTypeDef::Init, __TSC_HandleTypeDef::Instance, TSC_InitTypeDef::IODefaultMode, IS_TSC_MCE_IT, TSC_InitTypeDef::MaxCountInterrupt, __TSC_HandleTypeDef::State, TSC_FLAG_EOA, TSC_FLAG_MCE, TSC_IODEF_OUT_PP_LOW, TSC_IT_EOA, and TSC_IT_MCE.

HAL_StatusTypeDef HAL_TSC_Stop ( TSC_HandleTypeDef htsc)

Stop the acquisition previously launched in polling mode.

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

Definition at line 733 of file stm32l4xx_hal_tsc.c.

References __HAL_TSC_CLEAR_FLAG, __HAL_TSC_SET_IODEF_OUTPPLOW, __HAL_TSC_STOP_ACQ, assert_param, HAL_TSC_STATE_READY, __TSC_HandleTypeDef::Instance, __TSC_HandleTypeDef::State, TSC_FLAG_EOA, and TSC_FLAG_MCE.

HAL_StatusTypeDef HAL_TSC_Stop_IT ( TSC_HandleTypeDef htsc)

Stop the acquisition previously launched in interrupt mode.

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

Definition at line 766 of file stm32l4xx_hal_tsc.c.

References __HAL_TSC_CLEAR_FLAG, __HAL_TSC_DISABLE_IT, __HAL_TSC_SET_IODEF_OUTPPLOW, __HAL_TSC_STOP_ACQ, assert_param, HAL_TSC_STATE_READY, __TSC_HandleTypeDef::Instance, __TSC_HandleTypeDef::State, TSC_FLAG_EOA, TSC_FLAG_MCE, TSC_IT_EOA, and TSC_IT_MCE.