Read operation functions.
More...
Read operation functions.
==============================================================================
##### LPTIM Read operation functions #####
==============================================================================
[..] This section provides LPTIM Reading functions.
(+) Read the counter value.
(+) Read the period (Auto-reload) value.
(+) Read the pulse (Compare)value.
◆ HAL_LPTIM_ReadAutoReload()
Return the current Autoreload (Period) value.
- Parameters
-
- Return values
-
Definition at line 1570 of file stm32l4xx_hal_lptim.c.
1575 return (hlptim->Instance->ARR);
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_LPTIM_ReadCompare()
Return the current Compare (Pulse) value.
- Parameters
-
- Return values
-
Definition at line 1583 of file stm32l4xx_hal_lptim.c.
1588 return (hlptim->Instance->CMP);
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_LPTIM_ReadCounter()
Return the current counter value.
- Parameters
-
- Return values
-
Definition at line 1557 of file stm32l4xx_hal_lptim.c.
1562 return (hlptim->Instance->CNT);
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))