STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_lptim.h File Reference

Header file of LPTIM LL module. More...

Go to the source code of this file.

Data Structures

struct  LL_LPTIM_InitTypeDef
 LPTIM Init structure definition. More...
 

Functions

ErrorStatus LL_LPTIM_DeInit (LPTIM_TypeDef *LPTIMx)
 Set LPTIMx registers to their reset values. More...
 
void LL_LPTIM_StructInit (LL_LPTIM_InitTypeDef *LPTIM_InitStruct)
 Set each fields of the LPTIM_InitStruct structure to its default value. More...
 
ErrorStatus LL_LPTIM_Init (LPTIM_TypeDef *LPTIMx, LL_LPTIM_InitTypeDef *LPTIM_InitStruct)
 Configure the LPTIMx peripheral according to the specified parameters. More...
 
void LL_LPTIM_Disable (LPTIM_TypeDef *LPTIMx)
 Disable the LPTIM instance CR ENABLE LL_LPTIM_Disable. More...
 
__STATIC_INLINE void LL_LPTIM_Enable (LPTIM_TypeDef *LPTIMx)
 Enable the LPTIM instance. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabled (LPTIM_TypeDef *LPTIMx)
 Indicates whether the LPTIM instance is enabled. CR ENABLE LL_LPTIM_IsEnabled. More...
 
__STATIC_INLINE void LL_LPTIM_StartCounter (LPTIM_TypeDef *LPTIMx, uint32_t OperatingMode)
 Starts the LPTIM counter in the desired mode. More...
 
__STATIC_INLINE void LL_LPTIM_EnableResetAfterRead (LPTIM_TypeDef *LPTIMx)
 Enable reset after read. More...
 
__STATIC_INLINE void LL_LPTIM_DisableResetAfterRead (LPTIM_TypeDef *LPTIMx)
 Disable reset after read. CR RSTARE LL_LPTIM_DisableResetAfterRead. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledResetAfterRead (LPTIM_TypeDef *LPTIMx)
 Indicate whether the reset after read feature is enabled. CR RSTARE LL_LPTIM_DisableResetAfterRead. More...
 
__STATIC_INLINE void LL_LPTIM_ResetCounter (LPTIM_TypeDef *LPTIMx)
 Reset of the LPTIM_CNT counter register (synchronous). More...
 
__STATIC_INLINE void LL_LPTIM_SetUpdateMode (LPTIM_TypeDef *LPTIMx, uint32_t UpdateMode)
 Set the LPTIM registers update mode (enable/disable register preload) More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetUpdateMode (LPTIM_TypeDef *LPTIMx)
 Get the LPTIM registers update mode CFGR PRELOAD LL_LPTIM_GetUpdateMode. More...
 
__STATIC_INLINE void LL_LPTIM_SetAutoReload (LPTIM_TypeDef *LPTIMx, uint32_t AutoReload)
 Set the auto reload value. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetAutoReload (LPTIM_TypeDef *LPTIMx)
 Get actual auto reload value ARR ARR LL_LPTIM_GetAutoReload. More...
 
__STATIC_INLINE void LL_LPTIM_SetRepetition (LPTIM_TypeDef *LPTIMx, uint32_t Repetition)
 Set the repetition value. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetRepetition (LPTIM_TypeDef *LPTIMx)
 Get the repetition value RCR REP LL_LPTIM_GetRepetition. More...
 
__STATIC_INLINE void LL_LPTIM_SetCompare (LPTIM_TypeDef *LPTIMx, uint32_t CompareValue)
 Set the compare value. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetCompare (LPTIM_TypeDef *LPTIMx)
 Get actual compare value CMP CMP LL_LPTIM_GetCompare. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetCounter (LPTIM_TypeDef *LPTIMx)
 Get actual counter value. More...
 
__STATIC_INLINE void LL_LPTIM_SetCounterMode (LPTIM_TypeDef *LPTIMx, uint32_t CounterMode)
 Set the counter mode (selection of the LPTIM counter clock source). More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetCounterMode (LPTIM_TypeDef *LPTIMx)
 Get the counter mode CFGR COUNTMODE LL_LPTIM_GetCounterMode. More...
 
__STATIC_INLINE void LL_LPTIM_ConfigOutput (LPTIM_TypeDef *LPTIMx, uint32_t Waveform, uint32_t Polarity)
 Configure the LPTIM instance output (LPTIMx_OUT) More...
 
__STATIC_INLINE void LL_LPTIM_SetWaveform (LPTIM_TypeDef *LPTIMx, uint32_t Waveform)
 Set waveform shape CFGR WAVE LL_LPTIM_SetWaveform. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetWaveform (LPTIM_TypeDef *LPTIMx)
 Get actual waveform shape CFGR WAVE LL_LPTIM_GetWaveform. More...
 
__STATIC_INLINE void LL_LPTIM_SetPolarity (LPTIM_TypeDef *LPTIMx, uint32_t Polarity)
 Set output polarity CFGR WAVPOL LL_LPTIM_SetPolarity. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetPolarity (LPTIM_TypeDef *LPTIMx)
 Get actual output polarity CFGR WAVPOL LL_LPTIM_GetPolarity. More...
 
__STATIC_INLINE void LL_LPTIM_SetPrescaler (LPTIM_TypeDef *LPTIMx, uint32_t Prescaler)
 Set actual prescaler division ratio. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetPrescaler (LPTIM_TypeDef *LPTIMx)
 Get actual prescaler division ratio. CFGR PRESC LL_LPTIM_GetPrescaler. More...
 
__STATIC_INLINE void LL_LPTIM_SetInput1Src (LPTIM_TypeDef *LPTIMx, uint32_t Src)
 Set LPTIM input 1 source (default GPIO). OR OR_0 LL_LPTIM_SetInput1Src OR OR_1 LL_LPTIM_SetInput1Src. More...
 
__STATIC_INLINE void LL_LPTIM_SetInput2Src (LPTIM_TypeDef *LPTIMx, uint32_t Src)
 Set LPTIM input 2 source (default GPIO). OR OR_0 LL_LPTIM_SetInput2Src. More...
 
__STATIC_INLINE void LL_LPTIM_EnableTimeout (LPTIM_TypeDef *LPTIMx)
 Enable the timeout function. More...
 
__STATIC_INLINE void LL_LPTIM_DisableTimeout (LPTIM_TypeDef *LPTIMx)
 Disable the timeout function. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledTimeout (LPTIM_TypeDef *LPTIMx)
 Indicate whether the timeout function is enabled. CFGR TIMOUT LL_LPTIM_IsEnabledTimeout. More...
 
__STATIC_INLINE void LL_LPTIM_TrigSw (LPTIM_TypeDef *LPTIMx)
 Start the LPTIM counter. More...
 
__STATIC_INLINE void LL_LPTIM_ConfigTrigger (LPTIM_TypeDef *LPTIMx, uint32_t Source, uint32_t Filter, uint32_t Polarity)
 Configure the external trigger used as a trigger event for the LPTIM. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerSource (LPTIM_TypeDef *LPTIMx)
 Get actual external trigger source. CFGR TRIGSEL LL_LPTIM_GetTriggerSource. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerFilter (LPTIM_TypeDef *LPTIMx)
 Get actual external trigger filter. CFGR TRGFLT LL_LPTIM_GetTriggerFilter. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerPolarity (LPTIM_TypeDef *LPTIMx)
 Get actual external trigger polarity. CFGR TRIGEN LL_LPTIM_GetTriggerPolarity. More...
 
__STATIC_INLINE void LL_LPTIM_SetClockSource (LPTIM_TypeDef *LPTIMx, uint32_t ClockSource)
 Set the source of the clock used by the LPTIM instance. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetClockSource (LPTIM_TypeDef *LPTIMx)
 Get actual LPTIM instance clock source. CFGR CKSEL LL_LPTIM_GetClockSource. More...
 
__STATIC_INLINE void LL_LPTIM_ConfigClock (LPTIM_TypeDef *LPTIMx, uint32_t ClockFilter, uint32_t ClockPolarity)
 Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetClockPolarity (LPTIM_TypeDef *LPTIMx)
 Get actual clock polarity CFGR CKPOL LL_LPTIM_GetClockPolarity. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetClockFilter (LPTIM_TypeDef *LPTIMx)
 Get actual clock digital filter CFGR CKFLT LL_LPTIM_GetClockFilter. More...
 
__STATIC_INLINE void LL_LPTIM_SetEncoderMode (LPTIM_TypeDef *LPTIMx, uint32_t EncoderMode)
 Configure the encoder mode. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetEncoderMode (LPTIM_TypeDef *LPTIMx)
 Get actual encoder mode. CFGR CKPOL LL_LPTIM_GetEncoderMode. More...
 
__STATIC_INLINE void LL_LPTIM_EnableEncoderMode (LPTIM_TypeDef *LPTIMx)
 Enable the encoder mode. More...
 
__STATIC_INLINE void LL_LPTIM_DisableEncoderMode (LPTIM_TypeDef *LPTIMx)
 Disable the encoder mode. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledEncoderMode (LPTIM_TypeDef *LPTIMx)
 Indicates whether the LPTIM operates in encoder mode. CFGR ENC LL_LPTIM_IsEnabledEncoderMode. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFLAG_CMPM (LPTIM_TypeDef *LPTIMx)
 Clear the compare match flag (CMPMCF) ICR CMPMCF LL_LPTIM_ClearFLAG_CMPM. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_CMPM (LPTIM_TypeDef *LPTIMx)
 Inform application whether a compare match interrupt has occurred. ISR CMPM LL_LPTIM_IsActiveFlag_CMPM. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFLAG_ARRM (LPTIM_TypeDef *LPTIMx)
 Clear the autoreload match flag (ARRMCF) ICR ARRMCF LL_LPTIM_ClearFLAG_ARRM. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_ARRM (LPTIM_TypeDef *LPTIMx)
 Inform application whether a autoreload match interrupt has occured. ISR ARRM LL_LPTIM_IsActiveFlag_ARRM. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_EXTTRIG (LPTIM_TypeDef *LPTIMx)
 Clear the external trigger valid edge flag(EXTTRIGCF). ICR EXTTRIGCF LL_LPTIM_ClearFlag_EXTTRIG. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_EXTTRIG (LPTIM_TypeDef *LPTIMx)
 Inform application whether a valid edge on the selected external trigger input has occurred. ISR EXTTRIG LL_LPTIM_IsActiveFlag_EXTTRIG. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_CMPOK (LPTIM_TypeDef *LPTIMx)
 Clear the compare register update interrupt flag (CMPOKCF). ICR CMPOKCF LL_LPTIM_ClearFlag_CMPOK. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_CMPOK (LPTIM_TypeDef *LPTIMx)
 Informs application whether the APB bus write operation to the LPTIMx_CMP register has been successfully completed. If so, a new one can be initiated. ISR CMPOK LL_LPTIM_IsActiveFlag_CMPOK. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_ARROK (LPTIM_TypeDef *LPTIMx)
 Clear the autoreload register update interrupt flag (ARROKCF). ICR ARROKCF LL_LPTIM_ClearFlag_ARROK. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_ARROK (LPTIM_TypeDef *LPTIMx)
 Informs application whether the APB bus write operation to the LPTIMx_ARR register has been successfully completed. If so, a new one can be initiated. ISR ARROK LL_LPTIM_IsActiveFlag_ARROK. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_UP (LPTIM_TypeDef *LPTIMx)
 Clear the counter direction change to up interrupt flag (UPCF). ICR UPCF LL_LPTIM_ClearFlag_UP. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_UP (LPTIM_TypeDef *LPTIMx)
 Informs the application whether the counter direction has changed from down to up (when the LPTIM instance operates in encoder mode). ISR UP LL_LPTIM_IsActiveFlag_UP. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_DOWN (LPTIM_TypeDef *LPTIMx)
 Clear the counter direction change to down interrupt flag (DOWNCF). ICR DOWNCF LL_LPTIM_ClearFlag_DOWN. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_DOWN (LPTIM_TypeDef *LPTIMx)
 Informs the application whether the counter direction has changed from up to down (when the LPTIM instance operates in encoder mode). ISR DOWN LL_LPTIM_IsActiveFlag_DOWN. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_REPOK (LPTIM_TypeDef *LPTIMx)
 Clear the repetition register update interrupt flag (REPOKCF). ICR REPOKCF LL_LPTIM_ClearFlag_REPOK. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_REPOK (LPTIM_TypeDef *LPTIMx)
 Informs application whether the APB bus write operation to the LPTIMx_RCR register has been successfully completed; If so, a new one can be initiated. ISR REPOK LL_LPTIM_IsActiveFlag_REPOK. More...
 
__STATIC_INLINE void LL_LPTIM_ClearFlag_UE (LPTIM_TypeDef *LPTIMx)
 Clear the update event flag (UECF). ICR UECF LL_LPTIM_ClearFlag_UE. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_UE (LPTIM_TypeDef *LPTIMx)
 Informs application whether the LPTIMx update event has occurred. ISR UE LL_LPTIM_IsActiveFlag_UE. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_CMPM (LPTIM_TypeDef *LPTIMx)
 Enable compare match interrupt (CMPMIE). IER CMPMIE LL_LPTIM_EnableIT_CMPM. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_CMPM (LPTIM_TypeDef *LPTIMx)
 Disable compare match interrupt (CMPMIE). IER CMPMIE LL_LPTIM_DisableIT_CMPM. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_CMPM (LPTIM_TypeDef *LPTIMx)
 Indicates whether the compare match interrupt (CMPMIE) is enabled. IER CMPMIE LL_LPTIM_IsEnabledIT_CMPM. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_ARRM (LPTIM_TypeDef *LPTIMx)
 Enable autoreload match interrupt (ARRMIE). IER ARRMIE LL_LPTIM_EnableIT_ARRM. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_ARRM (LPTIM_TypeDef *LPTIMx)
 Disable autoreload match interrupt (ARRMIE). IER ARRMIE LL_LPTIM_DisableIT_ARRM. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_ARRM (LPTIM_TypeDef *LPTIMx)
 Indicates whether the autoreload match interrupt (ARRMIE) is enabled. IER ARRMIE LL_LPTIM_IsEnabledIT_ARRM. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_EXTTRIG (LPTIM_TypeDef *LPTIMx)
 Enable external trigger valid edge interrupt (EXTTRIGIE). IER EXTTRIGIE LL_LPTIM_EnableIT_EXTTRIG. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_EXTTRIG (LPTIM_TypeDef *LPTIMx)
 Disable external trigger valid edge interrupt (EXTTRIGIE). IER EXTTRIGIE LL_LPTIM_DisableIT_EXTTRIG. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_EXTTRIG (LPTIM_TypeDef *LPTIMx)
 Indicates external trigger valid edge interrupt (EXTTRIGIE) is enabled. IER EXTTRIGIE LL_LPTIM_IsEnabledIT_EXTTRIG. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_CMPOK (LPTIM_TypeDef *LPTIMx)
 Enable compare register write completed interrupt (CMPOKIE). IER CMPOKIE LL_LPTIM_EnableIT_CMPOK. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_CMPOK (LPTIM_TypeDef *LPTIMx)
 Disable compare register write completed interrupt (CMPOKIE). IER CMPOKIE LL_LPTIM_DisableIT_CMPOK. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_CMPOK (LPTIM_TypeDef *LPTIMx)
 Indicates whether the compare register write completed interrupt (CMPOKIE) is enabled. IER CMPOKIE LL_LPTIM_IsEnabledIT_CMPOK. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_ARROK (LPTIM_TypeDef *LPTIMx)
 Enable autoreload register write completed interrupt (ARROKIE). IER ARROKIE LL_LPTIM_EnableIT_ARROK. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_ARROK (LPTIM_TypeDef *LPTIMx)
 Disable autoreload register write completed interrupt (ARROKIE). IER ARROKIE LL_LPTIM_DisableIT_ARROK. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_ARROK (LPTIM_TypeDef *LPTIMx)
 Indicates whether the autoreload register write completed interrupt (ARROKIE) is enabled. IER ARROKIE LL_LPTIM_IsEnabledIT_ARROK. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_UP (LPTIM_TypeDef *LPTIMx)
 Enable direction change to up interrupt (UPIE). IER UPIE LL_LPTIM_EnableIT_UP. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_UP (LPTIM_TypeDef *LPTIMx)
 Disable direction change to up interrupt (UPIE). IER UPIE LL_LPTIM_DisableIT_UP. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_UP (LPTIM_TypeDef *LPTIMx)
 Indicates whether the direction change to up interrupt (UPIE) is enabled. IER UPIE LL_LPTIM_IsEnabledIT_UP. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_DOWN (LPTIM_TypeDef *LPTIMx)
 Enable direction change to down interrupt (DOWNIE). IER DOWNIE LL_LPTIM_EnableIT_DOWN. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_DOWN (LPTIM_TypeDef *LPTIMx)
 Disable direction change to down interrupt (DOWNIE). IER DOWNIE LL_LPTIM_DisableIT_DOWN. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_DOWN (LPTIM_TypeDef *LPTIMx)
 Indicates whether the direction change to down interrupt (DOWNIE) is enabled. IER DOWNIE LL_LPTIM_IsEnabledIT_DOWN. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_REPOK (LPTIM_TypeDef *LPTIMx)
 Enable repetition register update successfully completed interrupt (REPOKIE). IER REPOKIE LL_LPTIM_EnableIT_REPOK. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_REPOK (LPTIM_TypeDef *LPTIMx)
 Disable repetition register update successfully completed interrupt (REPOKIE). IER REPOKIE LL_LPTIM_DisableIT_REPOK. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_REPOK (LPTIM_TypeDef *LPTIMx)
 Indicates whether the repetition register update successfully completed interrupt (REPOKIE) is enabled. IER REPOKIE LL_LPTIM_IsEnabledIT_REPOK. More...
 
__STATIC_INLINE void LL_LPTIM_EnableIT_UE (LPTIM_TypeDef *LPTIMx)
 Enable update event interrupt (UEIE). IER UEIE LL_LPTIM_EnableIT_UE. More...
 
__STATIC_INLINE void LL_LPTIM_DisableIT_UE (LPTIM_TypeDef *LPTIMx)
 Disable update event interrupt (UEIE). IER UEIE LL_LPTIM_DisableIT_UE. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledIT_UE (LPTIM_TypeDef *LPTIMx)
 Indicates whether the update event interrupt (UEIE) is enabled. IER UEIE LL_LPTIM_IsEnabledIT_UE. More...
 

Detailed Description

Header file of LPTIM LL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_ll_lptim.h.