STM32F4xx_HAL_Driver
1.8.3
|
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 (const 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, const 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 @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the LPTIM instance is enabled. @rmtoll 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_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 (const LPTIM_TypeDef *LPTIMx) |
Get the LPTIM registers update mode @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual auto reload value @rmtoll ARR ARR LL_LPTIM_GetAutoReload. 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual compare value @rmtoll CMP CMP LL_LPTIM_GetCompare. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetCounter (const 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 (const LPTIM_TypeDef *LPTIMx) |
Get the counter mode @rmtoll 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 @rmtoll CFGR WAVE LL_LPTIM_SetWaveform. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetWaveform (const LPTIM_TypeDef *LPTIMx) |
Get actual waveform shape @rmtoll CFGR WAVE LL_LPTIM_GetWaveform. More... | |
__STATIC_INLINE void | LL_LPTIM_SetPolarity (LPTIM_TypeDef *LPTIMx, uint32_t Polarity) |
Set output polarity @rmtoll CFGR WAVPOL LL_LPTIM_SetPolarity. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetPolarity (const LPTIM_TypeDef *LPTIMx) |
Get actual output polarity @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual prescaler division ratio. @rmtoll 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). @rmtoll OR OR LL_LPTIM_SetInput1Src. 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 (const LPTIM_TypeDef *LPTIMx) |
Indicate whether the timeout function is enabled. @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual external trigger source. @rmtoll CFGR TRIGSEL LL_LPTIM_GetTriggerSource. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetTriggerFilter (const LPTIM_TypeDef *LPTIMx) |
Get actual external trigger filter. @rmtoll CFGR TRGFLT LL_LPTIM_GetTriggerFilter. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetTriggerPolarity (const LPTIM_TypeDef *LPTIMx) |
Get actual external trigger polarity. @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual LPTIM instance clock source. @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual clock polarity @rmtoll CFGR CKPOL LL_LPTIM_GetClockPolarity. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetClockFilter (const LPTIM_TypeDef *LPTIMx) |
Get actual clock digital filter @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Get actual encoder mode. @rmtoll 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 (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the LPTIM operates in encoder mode. @rmtoll CFGR ENC LL_LPTIM_IsEnabledEncoderMode. More... | |
__STATIC_INLINE void | LL_LPTIM_ClearFlag_CMPM (LPTIM_TypeDef *LPTIMx) |
Clear the compare match flag (CMPMCF) @rmtoll ICR CMPMCF LL_LPTIM_ClearFlag_CMPM. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_CMPM (const LPTIM_TypeDef *LPTIMx) |
Inform application whether a compare match interrupt has occurred. @rmtoll ISR CMPM LL_LPTIM_IsActiveFlag_CMPM. More... | |
__STATIC_INLINE void | LL_LPTIM_ClearFlag_ARRM (LPTIM_TypeDef *LPTIMx) |
Clear the autoreload match flag (ARRMCF) @rmtoll ICR ARRMCF LL_LPTIM_ClearFlag_ARRM. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_ARRM (const LPTIM_TypeDef *LPTIMx) |
Inform application whether a autoreload match interrupt has occurred. @rmtoll 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). @rmtoll ICR EXTTRIGCF LL_LPTIM_ClearFlag_EXTTRIG. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_EXTTRIG (const LPTIM_TypeDef *LPTIMx) |
Inform application whether a valid edge on the selected external trigger input has occurred. @rmtoll 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). @rmtoll ICR CMPOKCF LL_LPTIM_ClearFlag_CMPOK. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_CMPOK (const 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. @rmtoll 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). @rmtoll ICR ARROKCF LL_LPTIM_ClearFlag_ARROK. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_ARROK (const 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. @rmtoll 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). @rmtoll ICR UPCF LL_LPTIM_ClearFlag_UP. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_UP (const LPTIM_TypeDef *LPTIMx) |
Informs the application whether the counter direction has changed from down to up (when the LPTIM instance operates in encoder mode). @rmtoll 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). @rmtoll ICR DOWNCF LL_LPTIM_ClearFlag_DOWN. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsActiveFlag_DOWN (const LPTIM_TypeDef *LPTIMx) |
Informs the application whether the counter direction has changed from up to down (when the LPTIM instance operates in encoder mode). @rmtoll ISR DOWN LL_LPTIM_IsActiveFlag_DOWN. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_CMPM (LPTIM_TypeDef *LPTIMx) |
Enable compare match interrupt (CMPMIE). @rmtoll IER CMPMIE LL_LPTIM_EnableIT_CMPM. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_CMPM (LPTIM_TypeDef *LPTIMx) |
Disable compare match interrupt (CMPMIE). @rmtoll IER CMPMIE LL_LPTIM_DisableIT_CMPM. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_CMPM (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the compare match interrupt (CMPMIE) is enabled. @rmtoll IER CMPMIE LL_LPTIM_IsEnabledIT_CMPM. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_ARRM (LPTIM_TypeDef *LPTIMx) |
Enable autoreload match interrupt (ARRMIE). @rmtoll IER ARRMIE LL_LPTIM_EnableIT_ARRM. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_ARRM (LPTIM_TypeDef *LPTIMx) |
Disable autoreload match interrupt (ARRMIE). @rmtoll IER ARRMIE LL_LPTIM_DisableIT_ARRM. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_ARRM (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the autoreload match interrupt (ARRMIE) is enabled. @rmtoll IER ARRMIE LL_LPTIM_IsEnabledIT_ARRM. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_EXTTRIG (LPTIM_TypeDef *LPTIMx) |
Enable external trigger valid edge interrupt (EXTTRIGIE). @rmtoll IER EXTTRIGIE LL_LPTIM_EnableIT_EXTTRIG. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_EXTTRIG (LPTIM_TypeDef *LPTIMx) |
Disable external trigger valid edge interrupt (EXTTRIGIE). @rmtoll IER EXTTRIGIE LL_LPTIM_DisableIT_EXTTRIG. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_EXTTRIG (const LPTIM_TypeDef *LPTIMx) |
Indicates external trigger valid edge interrupt (EXTTRIGIE) is enabled. @rmtoll IER EXTTRIGIE LL_LPTIM_IsEnabledIT_EXTTRIG. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_CMPOK (LPTIM_TypeDef *LPTIMx) |
Enable compare register write completed interrupt (CMPOKIE). @rmtoll IER CMPOKIE LL_LPTIM_EnableIT_CMPOK. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_CMPOK (LPTIM_TypeDef *LPTIMx) |
Disable compare register write completed interrupt (CMPOKIE). @rmtoll IER CMPOKIE LL_LPTIM_DisableIT_CMPOK. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_CMPOK (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the compare register write completed interrupt (CMPOKIE) is enabled. @rmtoll IER CMPOKIE LL_LPTIM_IsEnabledIT_CMPOK. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_ARROK (LPTIM_TypeDef *LPTIMx) |
Enable autoreload register write completed interrupt (ARROKIE). @rmtoll IER ARROKIE LL_LPTIM_EnableIT_ARROK. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_ARROK (LPTIM_TypeDef *LPTIMx) |
Disable autoreload register write completed interrupt (ARROKIE). @rmtoll IER ARROKIE LL_LPTIM_DisableIT_ARROK. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_ARROK (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the autoreload register write completed interrupt (ARROKIE) is enabled. @rmtoll IER ARROKIE LL_LPTIM_IsEnabledIT_ARROK. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_UP (LPTIM_TypeDef *LPTIMx) |
Enable direction change to up interrupt (UPIE). @rmtoll IER UPIE LL_LPTIM_EnableIT_UP. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_UP (LPTIM_TypeDef *LPTIMx) |
Disable direction change to up interrupt (UPIE). @rmtoll IER UPIE LL_LPTIM_DisableIT_UP. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_UP (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the direction change to up interrupt (UPIE) is enabled. @rmtoll IER UPIE LL_LPTIM_IsEnabledIT_UP. More... | |
__STATIC_INLINE void | LL_LPTIM_EnableIT_DOWN (LPTIM_TypeDef *LPTIMx) |
Enable direction change to down interrupt (DOWNIE). @rmtoll IER DOWNIE LL_LPTIM_EnableIT_DOWN. More... | |
__STATIC_INLINE void | LL_LPTIM_DisableIT_DOWN (LPTIM_TypeDef *LPTIMx) |
Disable direction change to down interrupt (DOWNIE). @rmtoll IER DOWNIE LL_LPTIM_DisableIT_DOWN. More... | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledIT_DOWN (const LPTIM_TypeDef *LPTIMx) |
Indicates whether the direction change to down interrupt (DOWNIE) is enabled. @rmtoll IER DOWNIE LL_LPTIM_IsEnabledIT_DOWN. More... | |
Header file of LPTIM LL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_ll_lptim.h.