Input and Output operation functions.
More...
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.
◆ HAL_TSC_GroupGetStatus()
Get the acquisition status for a group.
- Parameters
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
| gx_index | Index of the group |
- Return values
-
Definition at line 823 of file stm32l4xx_hal_tsc.c.
830 return (__HAL_TSC_GET_GROUP_STATUS(htsc, gx_index));
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TSC_GroupGetValue()
Get the acquisition measure for a group.
- Parameters
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
| gx_index | Index of the group |
- Return values
-
Definition at line 840 of file stm32l4xx_hal_tsc.c.
847 return htsc->
Instance->IOGXCR[gx_index];
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TSC_PollForAcquisition()
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
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
- Return values
-
Definition at line 796 of file stm32l4xx_hal_tsc.c.
HAL_TSC_StateTypeDef HAL_TSC_GetState(TSC_HandleTypeDef *htsc)
Return the TSC handle state.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TSC_Start()
Start the acquisition.
- Parameters
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
- Return values
-
Definition at line 628 of file stm32l4xx_hal_tsc.c.
640 __HAL_TSC_DISABLE_IT(htsc, (TSC_IT_EOA | TSC_IT_MCE));
643 __HAL_TSC_CLEAR_FLAG(htsc, (TSC_FLAG_EOA | TSC_FLAG_MCE));
648 __HAL_TSC_SET_IODEF_OUTPPLOW(htsc);
652 __HAL_TSC_SET_IODEF_INFLOAT(htsc);
656 __HAL_TSC_START_ACQ(htsc);
__IO HAL_TSC_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TSC_Start_IT()
Start the acquisition in interrupt mode.
- Parameters
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
- Return values
-
Definition at line 671 of file stm32l4xx_hal_tsc.c.
684 __HAL_TSC_ENABLE_IT(htsc, TSC_IT_EOA);
689 __HAL_TSC_ENABLE_IT(htsc, TSC_IT_MCE);
693 __HAL_TSC_DISABLE_IT(htsc, TSC_IT_MCE);
697 __HAL_TSC_CLEAR_FLAG(htsc, (TSC_FLAG_EOA | TSC_FLAG_MCE));
702 __HAL_TSC_SET_IODEF_OUTPPLOW(htsc);
706 __HAL_TSC_SET_IODEF_INFLOAT(htsc);
710 __HAL_TSC_START_ACQ(htsc);
__IO HAL_TSC_StateTypeDef State
FunctionalState MaxCountInterrupt
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TSC_Stop()
Stop the acquisition previously launched in polling mode.
- Parameters
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
- Return values
-
Definition at line 725 of file stm32l4xx_hal_tsc.c.
734 __HAL_TSC_STOP_ACQ(htsc);
737 __HAL_TSC_SET_IODEF_OUTPPLOW(htsc);
740 __HAL_TSC_CLEAR_FLAG(htsc, (TSC_FLAG_EOA | TSC_FLAG_MCE));
__IO HAL_TSC_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TSC_Stop_IT()
Stop the acquisition previously launched in interrupt mode.
- Parameters
-
| htsc | Pointer to a TSC_HandleTypeDef structure that contains the configuration information for the specified TSC. |
- Return values
-
Definition at line 758 of file stm32l4xx_hal_tsc.c.
767 __HAL_TSC_STOP_ACQ(htsc);
770 __HAL_TSC_SET_IODEF_OUTPPLOW(htsc);
773 __HAL_TSC_DISABLE_IT(htsc, (TSC_IT_EOA | TSC_IT_MCE));
776 __HAL_TSC_CLEAR_FLAG(htsc, (TSC_FLAG_EOA | TSC_FLAG_MCE));
__IO HAL_TSC_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))