LL LPTIM Functions ¶
LPTIM Configuration ¶
- group LPTIM_LL_EF_LPTIM_Configuration
-
Functions
-
void
LL_LPTIM_Enable
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_Enable
Note
After setting the ENABLE bit, a delay of two counter clock is needed before the LPTIM instance is actually enabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_Disable
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_Disable
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabled
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the LPTIM instance is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_IsEnabled
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_StartCounter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
operating_mode
)
-
Starts the LPTIM counter in the desired mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR CNTSTRT LL_LPTIM_StartCounter
CR SNGSTRT LL_LPTIM_StartCounter
Note
LPTIM instance must be enabled before starting the counter.
Note
It is possible to change on the fly from One Shot mode to Continuous mode.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
operating_mode – This parameter can be one of the following values:
-
-
void
LL_LPTIM_EnableResetAfterRead
(
LPTIM_TypeDef
*
lptimx
)
-
Enable reset after read.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_EnableResetAfterRead
Note
After calling this function any read access to LPTIM_CNT register will asynchronously reset the LPTIM_CNT register content.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableResetAfterRead
(
LPTIM_TypeDef
*
lptimx
)
-
Disable reset after read.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_DisableResetAfterRead
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledResetAfterRead
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicate whether the reset after read feature is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_IsEnabledResetAfterRead
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ResetCounter
(
LPTIM_TypeDef
*
lptimx
)
-
Reset of the LPTIM_CNT counter register (synchronous).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR COUNTRST LL_LPTIM_ResetCounter
Note
Due to the synchronous nature of this reset, it only takes place after a synchronization delay of 3 LPTIM core clock cycles (LPTIM core clock can be different from APB clock).
Note
COUNTRST is automatically cleared by hardware
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_SetUpdateMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
update_mode
)
-
Set the LPTIM registers update mode (enable/disable register preload)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRELOAD LL_LPTIM_SetUpdateMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
update_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetUpdateMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the LPTIM registers update mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRELOAD LL_LPTIM_GetUpdateMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetAutoReload
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
auto_reload
)
-
Set the auto reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ARR ARR LL_LPTIM_SetAutoReload
Note
The LPTIMx_ARR register content must only be modified when the LPTIM is enabled
Note
After a write to the LPTIMx_ARR register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the ARROK flag is set, will lead to unpredictable results.
Note
autoreload value be strictly greater than the compare value.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
auto_reload – Value between Min_Data=0x0001 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_GetAutoReload
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual auto reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ARR ARR LL_LPTIM_GetAutoReload
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
AutoReload – Value between Min_Data=0x0001 and Max_Data=0xFFFF
-
void
LL_LPTIM_SetRepetition
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
repetition
)
-
Set the repetition value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RCR REP LL_LPTIM_SetRepetition
Note
The LPTIMx_RCR register content must only be modified when the LPTIM is enabled
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
repetition – Value between Min_Data=0x00 and Max_Data=0xFF
-
-
uint32_t
LL_LPTIM_GetRepetition
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the repetition value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RCR REP LL_LPTIM_GetRepetition
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Repetition – Value between Min_Data=0x00 and Max_Data=0xFF
-
void
LL_LPTIM_CC_EnableChannel
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Enable capture/compare channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_EnableChannel
CCMR1 CC2E LL_LPTIM_CC_EnableChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
-
void
LL_LPTIM_CC_DisableChannel
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Disable capture/compare channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_DisableChannel
CCMR1 CC2E LL_LPTIM_CC_DisableChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_CC_IsEnabledChannel
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Indicate whether channel is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_IsEnabledChannel
CCMR1 CC2E LL_LPTIM_CC_IsEnabledChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_OC_SetCompareCH1
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
compare_value
)
-
Set the compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_OC_SetCompareCH1
Note
After a write to the LPTIMx_CCR1 register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the CMP1OK flag is set, will lead to unpredictable results.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
compare_value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_OC_GetCompareCH1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_OC_GetCompareCH1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CompareValue – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_LPTIM_OC_SetCompareCH2
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
compare_value
)
-
Set the compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_OC_SetCompareCH2
Note
After a write to the LPTIMx_CCR2 register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the CMP2OK flag is set, will lead to unpredictable results.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
compare_value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_OC_GetCompareCH2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_OC_GetCompareCH2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CompareValue – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_LPTIM_GetCounter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual counter value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CNT CNT LL_LPTIM_GetCounter
Note
When the LPTIM instance is running with an asynchronous clock, reading the LPTIMx_CNT register can be return unreliable values. So in this case it is necessary to perform two consecutive read accesses and verify that the two returned values are identical.
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Counter – value
-
void
LL_LPTIM_SetCounterMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
counter_mode
)
-
Set the counter mode (selection of the LPTIM counter clock source).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR COUNTMODE LL_LPTIM_SetCounterMode
Note
The counter mode can be set only when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
counter_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetCounterMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the counter mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR COUNTMODE LL_LPTIM_GetCounterMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetWaveform
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
waveform
)
-
Set waveform shape.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR WAVE LL_LPTIM_SetWaveform
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
waveform – This parameter can be one of the following values:
-
LL_LPTIM_OUTPUT_WAVEFORM_PWM
-
LL_LPTIM_OUTPUT_WAVEFORM_SETONCE
-
-
-
uint32_t
LL_LPTIM_GetWaveform
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual waveform shape.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR WAVE LL_LPTIM_GetWaveform
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
LL_LPTIM_OUTPUT_WAVEFORM_PWM
-
LL_LPTIM_OUTPUT_WAVEFORM_SETONCE
-
-
void
LL_LPTIM_OC_SetPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
polarity
)
-
Set the polarity of an output channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_OC_SetPolarity
CCMR1 CC2P LL_LPTIM_OC_SetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_OC_GetPolarity
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the polarity of an output channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_OC_GetPolarity
CCMR1 CC2P LL_LPTIM_OC_GetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetPrescaler
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
prescaler
)
-
Set actual prescaler division ratio.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRESC LL_LPTIM_SetPrescaler
Note
This function must be called when the LPTIM instance is disabled.
Note
When the LPTIM is configured to be clocked by an internal clock source and the LPTIM counter is configured to be updated by active edges detected on the LPTIM external Input1, the internal clock provided to the LPTIM must be not be prescaled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
prescaler – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetPrescaler
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual prescaler division ratio.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRESC LL_LPTIM_GetPrescaler
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetInput1Source
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input 1 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN1SEL LL_LPTIM_SetInput1Source
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetInput1Source
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input 1 source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN1SEL LL_LPTIM_GetInput1Source
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
uint32_t – Input1 source
-
void
LL_LPTIM_SetInput2Source
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input 2 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN2SEL LL_LPTIM_SetInput2Source
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetInput2Source
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input 2 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN2SEL LL_LPTIM_GetInput2Source
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetRemap
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IC1SEL LL_LPTIM_SetRemap
CFGR2 IC2SEL LL_LPTIM_SetRemap
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetRemap
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IC1SEL LL_LPTIM_GetRemap
CFGR2 IC2SEL LL_LPTIM_GetRemap
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_SetPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
polarity
)
-
Set the polarity of IC channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_SetPolarity
CCMR1 CC2P LL_LPTIM_IC_SetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetPolarity
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the polarity of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_GetPolarity
CCMR1 CC2P LL_LPTIM_IC_GetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_Config
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
configuration
)
-
Configure input channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_Config
CCMR1 CC2P LL_LPTIM_IC_Config
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
configuration – This parameter must be a combination of all the following values:
-
LL_LPTIM_OCPOLARITY_HIGH or LL_LPTIM_OCPOLARITY_LOW
-
-
void
LL_LPTIM_IC_SetFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
filter
)
-
Set the filter of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1F LL_LPTIM_IC_SetFilter
CCMR1 IC2F LL_LPTIM_IC_SetFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
filter – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetFilter
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the filter of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1F LL_LPTIM_IC_GetFilter
CCMR1 IC2F LL_LPTIM_IC_GetFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_SetPrescaler
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
prescaler
)
-
Set the prescaler of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1PSC LL_LPTIM_IC_SetPrescaler
CCMR1 IC2PSC LL_LPTIM_IC_SetPrescaler
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
prescaler – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetPrescaler
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the prescaler of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1PSC LL_LPTIM_IC_GetPrescaler
CCMR1 IC2PSC LL_LPTIM_IC_GetPrescaler
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_CC_SetChannelMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
cc_mode
)
-
Set the channel Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1SEL LL_LPTIM_CC_SetChannelMode
CCMR1 CC2SEL LL_LPTIM_CC_SetChannelMode
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
cc_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_CC_GetChannelMode
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the channel Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1SEL LL_LPTIM_CC_GetChannelMode
CCMR1 CC2SEL LL_LPTIM_CC_GetChannelMode
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_LPTIM_IC_GetCaptureCH1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get captured value for input channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_IC_GetCaptureCH1
Note
The real capture value corresponding to the input capture trigger can be calculated using the formula hereafter : Real capture value = captured(LPTIM_CCRx) - offset where offset can be retrieved by calling LL_LPTIM_IC_GET_OFFSET
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CapturedValue – (between Min_Data=0 and Max_Data=65535)
-
uint32_t
LL_LPTIM_IC_GetCaptureCH2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get captured value for input channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_IC_GetCaptureCH2
Note
The real capture value corresponding to the input capture trigger can be calculated using the formula hereafter : Real capture value = captured(LPTIM_CCRx) - offset where offset can be retrieved by calling LL_LPTIM_IC_GET_OFFSET
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CapturedValue – (between Min_Data=0 and Max_Data=65535)
-
void
LL_LPTIM_Enable
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_LPTIM_Configuration
-
Functions
-
void
LL_LPTIM_Enable
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_Enable
Note
After setting the ENABLE bit, a delay of two counter clock is needed before the LPTIM instance is actually enabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_Disable
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_Disable
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabled
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the LPTIM instance is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_IsEnabled
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_StartCounter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
operating_mode
)
-
Starts the LPTIM counter in the desired mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR CNTSTRT LL_LPTIM_StartCounter
CR SNGSTRT LL_LPTIM_StartCounter
Note
LPTIM instance must be enabled before starting the counter.
Note
It is possible to change on the fly from One Shot mode to Continuous mode.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
operating_mode – This parameter can be one of the following values:
-
-
void
LL_LPTIM_EnableResetAfterRead
(
LPTIM_TypeDef
*
lptimx
)
-
Enable reset after read.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_EnableResetAfterRead
Note
After calling this function any read access to LPTIM_CNT register will asynchronously reset the LPTIM_CNT register content.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableResetAfterRead
(
LPTIM_TypeDef
*
lptimx
)
-
Disable reset after read.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_DisableResetAfterRead
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledResetAfterRead
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicate whether the reset after read feature is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_IsEnabledResetAfterRead
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ResetCounter
(
LPTIM_TypeDef
*
lptimx
)
-
Reset of the LPTIM_CNT counter register (synchronous).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR COUNTRST LL_LPTIM_ResetCounter
Note
Due to the synchronous nature of this reset, it only takes place after a synchronization delay of 3 LPTIM core clock cycles (LPTIM core clock can be different from APB clock).
Note
COUNTRST is automatically cleared by hardware
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_SetUpdateMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
update_mode
)
-
Set the LPTIM registers update mode (enable/disable register preload)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRELOAD LL_LPTIM_SetUpdateMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
update_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetUpdateMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the LPTIM registers update mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRELOAD LL_LPTIM_GetUpdateMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetAutoReload
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
auto_reload
)
-
Set the auto reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ARR ARR LL_LPTIM_SetAutoReload
Note
The LPTIMx_ARR register content must only be modified when the LPTIM is enabled
Note
After a write to the LPTIMx_ARR register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the ARROK flag is set, will lead to unpredictable results.
Note
autoreload value be strictly greater than the compare value.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
auto_reload – Value between Min_Data=0x0001 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_GetAutoReload
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual auto reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ARR ARR LL_LPTIM_GetAutoReload
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
AutoReload – Value between Min_Data=0x0001 and Max_Data=0xFFFF
-
void
LL_LPTIM_SetRepetition
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
repetition
)
-
Set the repetition value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RCR REP LL_LPTIM_SetRepetition
Note
The LPTIMx_RCR register content must only be modified when the LPTIM is enabled
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
repetition – Value between Min_Data=0x00 and Max_Data=0xFF
-
-
uint32_t
LL_LPTIM_GetRepetition
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the repetition value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RCR REP LL_LPTIM_GetRepetition
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Repetition – Value between Min_Data=0x00 and Max_Data=0xFF
-
void
LL_LPTIM_CC_EnableChannel
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Enable capture/compare channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_EnableChannel
CCMR1 CC2E LL_LPTIM_CC_EnableChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
-
void
LL_LPTIM_CC_DisableChannel
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Disable capture/compare channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_DisableChannel
CCMR1 CC2E LL_LPTIM_CC_DisableChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_CC_IsEnabledChannel
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Indicate whether channel is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_IsEnabledChannel
CCMR1 CC2E LL_LPTIM_CC_IsEnabledChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_OC_SetCompareCH1
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
compare_value
)
-
Set the compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_OC_SetCompareCH1
Note
After a write to the LPTIMx_CCR1 register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the CMP1OK flag is set, will lead to unpredictable results.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
compare_value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_OC_GetCompareCH1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_OC_GetCompareCH1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CompareValue – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_LPTIM_OC_SetCompareCH2
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
compare_value
)
-
Set the compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_OC_SetCompareCH2
Note
After a write to the LPTIMx_CCR2 register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the CMP2OK flag is set, will lead to unpredictable results.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
compare_value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_OC_GetCompareCH2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_OC_GetCompareCH2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CompareValue – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_LPTIM_GetCounter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual counter value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CNT CNT LL_LPTIM_GetCounter
Note
When the LPTIM instance is running with an asynchronous clock, reading the LPTIMx_CNT register can be return unreliable values. So in this case it is necessary to perform two consecutive read accesses and verify that the two returned values are identical.
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Counter – value
-
void
LL_LPTIM_SetCounterMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
counter_mode
)
-
Set the counter mode (selection of the LPTIM counter clock source).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR COUNTMODE LL_LPTIM_SetCounterMode
Note
The counter mode can be set only when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
counter_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetCounterMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the counter mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR COUNTMODE LL_LPTIM_GetCounterMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetWaveform
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
waveform
)
-
Set waveform shape.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR WAVE LL_LPTIM_SetWaveform
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
waveform – This parameter can be one of the following values:
-
LL_LPTIM_OUTPUT_WAVEFORM_PWM
-
LL_LPTIM_OUTPUT_WAVEFORM_SETONCE
-
-
-
uint32_t
LL_LPTIM_GetWaveform
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual waveform shape.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR WAVE LL_LPTIM_GetWaveform
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
LL_LPTIM_OUTPUT_WAVEFORM_PWM
-
LL_LPTIM_OUTPUT_WAVEFORM_SETONCE
-
-
void
LL_LPTIM_OC_SetPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
polarity
)
-
Set the polarity of an output channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_OC_SetPolarity
CCMR1 CC2P LL_LPTIM_OC_SetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_OC_GetPolarity
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the polarity of an output channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_OC_GetPolarity
CCMR1 CC2P LL_LPTIM_OC_GetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetPrescaler
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
prescaler
)
-
Set actual prescaler division ratio.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRESC LL_LPTIM_SetPrescaler
Note
This function must be called when the LPTIM instance is disabled.
Note
When the LPTIM is configured to be clocked by an internal clock source and the LPTIM counter is configured to be updated by active edges detected on the LPTIM external Input1, the internal clock provided to the LPTIM must be not be prescaled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
prescaler – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetPrescaler
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual prescaler division ratio.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRESC LL_LPTIM_GetPrescaler
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetInput1Source
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input 1 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN1SEL LL_LPTIM_SetInput1Source
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetInput1Source
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input 1 source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN1SEL LL_LPTIM_GetInput1Source
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
uint32_t – Input1 source
-
void
LL_LPTIM_SetInput2Source
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input 2 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN2SEL LL_LPTIM_SetInput2Source
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetInput2Source
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input 2 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN2SEL LL_LPTIM_GetInput2Source
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetRemap
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IC1SEL LL_LPTIM_SetRemap
CFGR2 IC2SEL LL_LPTIM_SetRemap
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetRemap
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IC1SEL LL_LPTIM_GetRemap
CFGR2 IC2SEL LL_LPTIM_GetRemap
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_SetPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
polarity
)
-
Set the polarity of IC channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_SetPolarity
CCMR1 CC2P LL_LPTIM_IC_SetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetPolarity
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the polarity of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_GetPolarity
CCMR1 CC2P LL_LPTIM_IC_GetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_Config
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
configuration
)
-
Configure input channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_Config
CCMR1 CC2P LL_LPTIM_IC_Config
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
configuration – This parameter must be a combination of all the following values:
-
LL_LPTIM_OCPOLARITY_HIGH or LL_LPTIM_OCPOLARITY_LOW
-
-
void
LL_LPTIM_IC_SetFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
filter
)
-
Set the filter of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1F LL_LPTIM_IC_SetFilter
CCMR1 IC2F LL_LPTIM_IC_SetFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
filter – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetFilter
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the filter of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1F LL_LPTIM_IC_GetFilter
CCMR1 IC2F LL_LPTIM_IC_GetFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_SetPrescaler
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
prescaler
)
-
Set the prescaler of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1PSC LL_LPTIM_IC_SetPrescaler
CCMR1 IC2PSC LL_LPTIM_IC_SetPrescaler
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
prescaler – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetPrescaler
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the prescaler of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1PSC LL_LPTIM_IC_GetPrescaler
CCMR1 IC2PSC LL_LPTIM_IC_GetPrescaler
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_CC_SetChannelMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
cc_mode
)
-
Set the channel Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1SEL LL_LPTIM_CC_SetChannelMode
CCMR1 CC2SEL LL_LPTIM_CC_SetChannelMode
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
cc_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_CC_GetChannelMode
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the channel Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1SEL LL_LPTIM_CC_GetChannelMode
CCMR1 CC2SEL LL_LPTIM_CC_GetChannelMode
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_LPTIM_IC_GetCaptureCH1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get captured value for input channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_IC_GetCaptureCH1
Note
The real capture value corresponding to the input capture trigger can be calculated using the formula hereafter : Real capture value = captured(LPTIM_CCRx) - offset where offset can be retrieved by calling LL_LPTIM_IC_GET_OFFSET
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CapturedValue – (between Min_Data=0 and Max_Data=65535)
-
uint32_t
LL_LPTIM_IC_GetCaptureCH2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get captured value for input channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_IC_GetCaptureCH2
Note
The real capture value corresponding to the input capture trigger can be calculated using the formula hereafter : Real capture value = captured(LPTIM_CCRx) - offset where offset can be retrieved by calling LL_LPTIM_IC_GET_OFFSET
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CapturedValue – (between Min_Data=0 and Max_Data=65535)
-
void
LL_LPTIM_Enable
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_LPTIM_Configuration
-
Functions
-
void
LL_LPTIM_Enable
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_Enable
Note
After setting the ENABLE bit, a delay of two counter clock is needed before the LPTIM instance is actually enabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_Disable
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_Disable
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabled
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the LPTIM instance is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR ENABLE LL_LPTIM_IsEnabled
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_StartCounter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
operating_mode
)
-
Starts the LPTIM counter in the desired mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR CNTSTRT LL_LPTIM_StartCounter
CR SNGSTRT LL_LPTIM_StartCounter
Note
LPTIM instance must be enabled before starting the counter.
Note
It is possible to change on the fly from One Shot mode to Continuous mode.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
operating_mode – This parameter can be one of the following values:
-
-
void
LL_LPTIM_EnableResetAfterRead
(
LPTIM_TypeDef
*
lptimx
)
-
Enable reset after read.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_EnableResetAfterRead
Note
After calling this function any read access to LPTIM_CNT register will asynchronously reset the LPTIM_CNT register content.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableResetAfterRead
(
LPTIM_TypeDef
*
lptimx
)
-
Disable reset after read.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_DisableResetAfterRead
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledResetAfterRead
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicate whether the reset after read feature is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR RSTARE LL_LPTIM_IsEnabledResetAfterRead
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ResetCounter
(
LPTIM_TypeDef
*
lptimx
)
-
Reset of the LPTIM_CNT counter register (synchronous).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR COUNTRST LL_LPTIM_ResetCounter
Note
Due to the synchronous nature of this reset, it only takes place after a synchronization delay of 3 LPTIM core clock cycles (LPTIM core clock can be different from APB clock).
Note
COUNTRST is automatically cleared by hardware
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_SetUpdateMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
update_mode
)
-
Set the LPTIM registers update mode (enable/disable register preload)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRELOAD LL_LPTIM_SetUpdateMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
update_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetUpdateMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the LPTIM registers update mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRELOAD LL_LPTIM_GetUpdateMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetAutoReload
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
auto_reload
)
-
Set the auto reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ARR ARR LL_LPTIM_SetAutoReload
Note
The LPTIMx_ARR register content must only be modified when the LPTIM is enabled
Note
After a write to the LPTIMx_ARR register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the ARROK flag is set, will lead to unpredictable results.
Note
autoreload value be strictly greater than the compare value.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
auto_reload – Value between Min_Data=0x0001 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_GetAutoReload
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual auto reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ARR ARR LL_LPTIM_GetAutoReload
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
AutoReload – Value between Min_Data=0x0001 and Max_Data=0xFFFF
-
void
LL_LPTIM_SetRepetition
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
repetition
)
-
Set the repetition value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RCR REP LL_LPTIM_SetRepetition
Note
The LPTIMx_RCR register content must only be modified when the LPTIM is enabled
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
repetition – Value between Min_Data=0x00 and Max_Data=0xFF
-
-
uint32_t
LL_LPTIM_GetRepetition
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the repetition value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RCR REP LL_LPTIM_GetRepetition
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Repetition – Value between Min_Data=0x00 and Max_Data=0xFF
-
void
LL_LPTIM_CC_EnableChannel
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Enable capture/compare channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_EnableChannel
CCMR1 CC2E LL_LPTIM_CC_EnableChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
-
void
LL_LPTIM_CC_DisableChannel
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Disable capture/compare channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_DisableChannel
CCMR1 CC2E LL_LPTIM_CC_DisableChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_CC_IsEnabledChannel
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Indicate whether channel is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1E LL_LPTIM_CC_IsEnabledChannel
CCMR1 CC2E LL_LPTIM_CC_IsEnabledChannel
- Parameters :
-
-
lptimx – LPTimer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_OC_SetCompareCH1
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
compare_value
)
-
Set the compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_OC_SetCompareCH1
Note
After a write to the LPTIMx_CCR1 register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the CMP1OK flag is set, will lead to unpredictable results.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
compare_value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_OC_GetCompareCH1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_OC_GetCompareCH1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CompareValue – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_LPTIM_OC_SetCompareCH2
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
compare_value
)
-
Set the compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_OC_SetCompareCH2
Note
After a write to the LPTIMx_CCR2 register a new write operation to the same register can only be performed when the previous write operation is completed. Any successive write before the CMP2OK flag is set, will lead to unpredictable results.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
compare_value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
uint32_t
LL_LPTIM_OC_GetCompareCH2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual compare value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_OC_GetCompareCH2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CompareValue – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_LPTIM_GetCounter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual counter value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CNT CNT LL_LPTIM_GetCounter
Note
When the LPTIM instance is running with an asynchronous clock, reading the LPTIMx_CNT register can be return unreliable values. So in this case it is necessary to perform two consecutive read accesses and verify that the two returned values are identical.
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Counter – value
-
void
LL_LPTIM_SetCounterMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
counter_mode
)
-
Set the counter mode (selection of the LPTIM counter clock source).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR COUNTMODE LL_LPTIM_SetCounterMode
Note
The counter mode can be set only when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
counter_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetCounterMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get the counter mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR COUNTMODE LL_LPTIM_GetCounterMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetWaveform
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
waveform
)
-
Set waveform shape.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR WAVE LL_LPTIM_SetWaveform
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
waveform – This parameter can be one of the following values:
-
LL_LPTIM_OUTPUT_WAVEFORM_PWM
-
LL_LPTIM_OUTPUT_WAVEFORM_SETONCE
-
-
-
uint32_t
LL_LPTIM_GetWaveform
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual waveform shape.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR WAVE LL_LPTIM_GetWaveform
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
LL_LPTIM_OUTPUT_WAVEFORM_PWM
-
LL_LPTIM_OUTPUT_WAVEFORM_SETONCE
-
-
void
LL_LPTIM_OC_SetPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
polarity
)
-
Set the polarity of an output channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_OC_SetPolarity
CCMR1 CC2P LL_LPTIM_OC_SetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_OC_GetPolarity
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the polarity of an output channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_OC_GetPolarity
CCMR1 CC2P LL_LPTIM_OC_GetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetPrescaler
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
prescaler
)
-
Set actual prescaler division ratio.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRESC LL_LPTIM_SetPrescaler
Note
This function must be called when the LPTIM instance is disabled.
Note
When the LPTIM is configured to be clocked by an internal clock source and the LPTIM counter is configured to be updated by active edges detected on the LPTIM external Input1, the internal clock provided to the LPTIM must be not be prescaled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
prescaler – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetPrescaler
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual prescaler division ratio.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR PRESC LL_LPTIM_GetPrescaler
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetInput1Source
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input 1 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN1SEL LL_LPTIM_SetInput1Source
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetInput1Source
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input 1 source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN1SEL LL_LPTIM_GetInput1Source
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
uint32_t – Input1 source
-
void
LL_LPTIM_SetInput2Source
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input 2 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN2SEL LL_LPTIM_SetInput2Source
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetInput2Source
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input 2 source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IN2SEL LL_LPTIM_GetInput2Source
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetRemap
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
src
)
-
Set LPTIM input source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IC1SEL LL_LPTIM_SetRemap
CFGR2 IC2SEL LL_LPTIM_SetRemap
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
src – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetRemap
(
LPTIM_TypeDef
*
lptimx
)
-
Get LPTIM input source (default GPIO).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR2 IC1SEL LL_LPTIM_GetRemap
CFGR2 IC2SEL LL_LPTIM_GetRemap
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_SetPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
polarity
)
-
Set the polarity of IC channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_SetPolarity
CCMR1 CC2P LL_LPTIM_IC_SetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetPolarity
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the polarity of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_GetPolarity
CCMR1 CC2P LL_LPTIM_IC_GetPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_Config
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
configuration
)
-
Configure input channel.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1P LL_LPTIM_IC_Config
CCMR1 CC2P LL_LPTIM_IC_Config
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
configuration – This parameter must be a combination of all the following values:
-
LL_LPTIM_OCPOLARITY_HIGH or LL_LPTIM_OCPOLARITY_LOW
-
-
void
LL_LPTIM_IC_SetFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
filter
)
-
Set the filter of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1F LL_LPTIM_IC_SetFilter
CCMR1 IC2F LL_LPTIM_IC_SetFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
filter – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetFilter
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the filter of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1F LL_LPTIM_IC_GetFilter
CCMR1 IC2F LL_LPTIM_IC_GetFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_IC_SetPrescaler
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
prescaler
)
-
Set the prescaler of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1PSC LL_LPTIM_IC_SetPrescaler
CCMR1 IC2PSC LL_LPTIM_IC_SetPrescaler
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
prescaler – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_IC_GetPrescaler
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the prescaler of IC channels.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 IC1PSC LL_LPTIM_IC_GetPrescaler
CCMR1 IC2PSC LL_LPTIM_IC_GetPrescaler
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_CC_SetChannelMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
,
uint32_t
cc_mode
)
-
Set the channel Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1SEL LL_LPTIM_CC_SetChannelMode
CCMR1 CC2SEL LL_LPTIM_CC_SetChannelMode
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
cc_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_CC_GetChannelMode
(
const
LPTIM_TypeDef
*
lptimx
,
uint32_t
channel
)
-
Get the channel Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCMR1 CC1SEL LL_LPTIM_CC_GetChannelMode
CCMR1 CC2SEL LL_LPTIM_CC_GetChannelMode
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
channel – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_LPTIM_IC_GetCaptureCH1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get captured value for input channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR1 CCR1 LL_LPTIM_IC_GetCaptureCH1
Note
The real capture value corresponding to the input capture trigger can be calculated using the formula hereafter : Real capture value = captured(LPTIM_CCRx) - offset where offset can be retrieved by calling LL_LPTIM_IC_GET_OFFSET
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CapturedValue – (between Min_Data=0 and Max_Data=65535)
-
uint32_t
LL_LPTIM_IC_GetCaptureCH2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get captured value for input channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CCR2 CCR2 LL_LPTIM_IC_GetCaptureCH2
Note
The real capture value corresponding to the input capture trigger can be calculated using the formula hereafter : Real capture value = captured(LPTIM_CCRx) - offset where offset can be retrieved by calling LL_LPTIM_IC_GET_OFFSET
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
CapturedValue – (between Min_Data=0 and Max_Data=65535)
-
void
LL_LPTIM_Enable
(
LPTIM_TypeDef
*
lptimx
)
Trigger Configuration ¶
- group LPTIM_LL_EF_Trigger_Configuration
-
Functions
-
void
LL_LPTIM_EnableTimeout
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the timeout function.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_EnableTimeout
Note
This function must be called when the LPTIM instance is disabled.
Note
The first trigger event will start the timer, any successive trigger event will reset the counter and the timer will restart.
Note
The timeout value corresponds to the compare value; if no trigger occurs within the expected time frame, the MCU is waked-up by the compare match event.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableTimeout
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the timeout function.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_DisableTimeout
Note
This function must be called when the LPTIM instance is disabled.
Note
A trigger event arriving when the timer is already started will be ignored.
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledTimeout
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicate whether the timeout function is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_IsEnabledTimeout
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_TrigSw
(
LPTIM_TypeDef
*
lptimx
)
-
Start the LPTIM counter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_TrigSw
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_ConfigTrigger
CFGR TRGFLT LL_LPTIM_ConfigTrigger
CFGR TRIGEN LL_LPTIM_ConfigTrigger
Note
This function must be called when the LPTIM instance is disabled.
Note
An internal clock source must be present when a digital filter is required for the trigger.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
source – This parameter can be one of the following values:
-
filter – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
void
LL_LPTIM_SetTriggerSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
source
)
-
Set external trigger source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_SetTriggerSource
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
source – Trigger’s source. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerSource
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_GetTriggerSource
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetTriggerFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
filter
)
-
Set external trigger filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
filter – ETR filter. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerFilter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetTriggerPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
polarity
)
-
Set external trigger polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
polarity – Trigger’s polarity. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerPolarity
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_EnableTimeout
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_Trigger_Configuration
-
Functions
-
void
LL_LPTIM_EnableTimeout
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the timeout function.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_EnableTimeout
Note
This function must be called when the LPTIM instance is disabled.
Note
The first trigger event will start the timer, any successive trigger event will reset the counter and the timer will restart.
Note
The timeout value corresponds to the compare value; if no trigger occurs within the expected time frame, the MCU is waked-up by the compare match event.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableTimeout
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the timeout function.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_DisableTimeout
Note
This function must be called when the LPTIM instance is disabled.
Note
A trigger event arriving when the timer is already started will be ignored.
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledTimeout
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicate whether the timeout function is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_IsEnabledTimeout
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_TrigSw
(
LPTIM_TypeDef
*
lptimx
)
-
Start the LPTIM counter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_TrigSw
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_ConfigTrigger
CFGR TRGFLT LL_LPTIM_ConfigTrigger
CFGR TRIGEN LL_LPTIM_ConfigTrigger
Note
This function must be called when the LPTIM instance is disabled.
Note
An internal clock source must be present when a digital filter is required for the trigger.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
source – This parameter can be one of the following values:
-
filter – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
void
LL_LPTIM_SetTriggerSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
source
)
-
Set external trigger source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_SetTriggerSource
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
source – Trigger’s source. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerSource
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_GetTriggerSource
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetTriggerFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
filter
)
-
Set external trigger filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
filter – ETR filter. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerFilter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetTriggerPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
polarity
)
-
Set external trigger polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
polarity – Trigger’s polarity. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerPolarity
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_EnableTimeout
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_Trigger_Configuration
-
Functions
-
void
LL_LPTIM_EnableTimeout
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the timeout function.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_EnableTimeout
Note
This function must be called when the LPTIM instance is disabled.
Note
The first trigger event will start the timer, any successive trigger event will reset the counter and the timer will restart.
Note
The timeout value corresponds to the compare value; if no trigger occurs within the expected time frame, the MCU is waked-up by the compare match event.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableTimeout
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the timeout function.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_DisableTimeout
Note
This function must be called when the LPTIM instance is disabled.
Note
A trigger event arriving when the timer is already started will be ignored.
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledTimeout
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicate whether the timeout function is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TIMOUT LL_LPTIM_IsEnabledTimeout
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_TrigSw
(
LPTIM_TypeDef
*
lptimx
)
-
Start the LPTIM counter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_TrigSw
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_ConfigTrigger
CFGR TRGFLT LL_LPTIM_ConfigTrigger
CFGR TRIGEN LL_LPTIM_ConfigTrigger
Note
This function must be called when the LPTIM instance is disabled.
Note
An internal clock source must be present when a digital filter is required for the trigger.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
source – This parameter can be one of the following values:
-
filter – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
-
void
LL_LPTIM_SetTriggerSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
source
)
-
Set external trigger source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_SetTriggerSource
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
source – Trigger’s source. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerSource
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGSEL LL_LPTIM_GetTriggerSource
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetTriggerFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
filter
)
-
Set external trigger filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
filter – ETR filter. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerFilter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetTriggerPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
polarity
)
-
Set external trigger polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
polarity – Trigger’s polarity. Can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetTriggerPolarity
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual external trigger polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_EnableTimeout
(
LPTIM_TypeDef
*
lptimx
)
Clock Configuration ¶
- group LPTIM_LL_EF_Clock_Configuration
-
Functions
-
void
LL_LPTIM_SetClockSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_source
)
-
Set the source of the clock used by the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKSEL LL_LPTIM_SetClockSource
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_source – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockSource
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual LPTIM instance clock source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKSEL LL_LPTIM_GetClockSource
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_ConfigClock
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_filter
,
uint32_t
clock_polarity
)
-
Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_ConfigClock
CFGR CKPOL LL_LPTIM_ConfigClock
Note
This function must be called when the LPTIM instance is disabled.
Note
When both external clock signal edges are considered active ones, the LPTIM must also be clocked by an internal clock source with a frequency equal to at least four times the external clock frequency.
Note
An internal clock source must be present when a digital filter is required for external clock.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_filter – This parameter can be one of the following values:
-
clock_polarity – This parameter can be one of the following values:
-
-
void
LL_LPTIM_SetClockPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_polarity
)
-
Set clock polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_SetClockPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockPolarity
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual clock polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_GetClockPolarity
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetClockFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_filter
)
-
Set clock filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_SetClockFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_filter – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockFilter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual clock digital filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_GetClockFilter
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetClockSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_source
)
- group LPTIM_LL_EF_Clock_Configuration
-
Functions
-
void
LL_LPTIM_SetClockSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_source
)
-
Set the source of the clock used by the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKSEL LL_LPTIM_SetClockSource
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_source – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockSource
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual LPTIM instance clock source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKSEL LL_LPTIM_GetClockSource
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_ConfigClock
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_filter
,
uint32_t
clock_polarity
)
-
Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_ConfigClock
CFGR CKPOL LL_LPTIM_ConfigClock
Note
This function must be called when the LPTIM instance is disabled.
Note
When both external clock signal edges are considered active ones, the LPTIM must also be clocked by an internal clock source with a frequency equal to at least four times the external clock frequency.
Note
An internal clock source must be present when a digital filter is required for external clock.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_filter – This parameter can be one of the following values:
-
clock_polarity – This parameter can be one of the following values:
-
-
void
LL_LPTIM_SetClockPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_polarity
)
-
Set clock polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_SetClockPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockPolarity
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual clock polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_GetClockPolarity
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetClockFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_filter
)
-
Set clock filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_SetClockFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_filter – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockFilter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual clock digital filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_GetClockFilter
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetClockSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_source
)
- group LPTIM_LL_EF_Clock_Configuration
-
Functions
-
void
LL_LPTIM_SetClockSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_source
)
-
Set the source of the clock used by the LPTIM instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKSEL LL_LPTIM_SetClockSource
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_source – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockSource
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual LPTIM instance clock source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKSEL LL_LPTIM_GetClockSource
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_ConfigClock
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_filter
,
uint32_t
clock_polarity
)
-
Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_ConfigClock
CFGR CKPOL LL_LPTIM_ConfigClock
Note
This function must be called when the LPTIM instance is disabled.
Note
When both external clock signal edges are considered active ones, the LPTIM must also be clocked by an internal clock source with a frequency equal to at least four times the external clock frequency.
Note
An internal clock source must be present when a digital filter is required for external clock.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_filter – This parameter can be one of the following values:
-
clock_polarity – This parameter can be one of the following values:
-
-
void
LL_LPTIM_SetClockPolarity
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_polarity
)
-
Set clock polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_SetClockPolarity
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockPolarity
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual clock polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_GetClockPolarity
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetClockFilter
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_filter
)
-
Set clock filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_SetClockFilter
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
clock_filter – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetClockFilter
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual clock digital filter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKFLT LL_LPTIM_GetClockFilter
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_SetClockSource
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
clock_source
)
Encoder Mode ¶
- group LPTIM_LL_EF_Encoder_Mode
-
Functions
-
void
LL_LPTIM_SetEncoderMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
encoder_mode
)
-
Configure the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_SetEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
encoder_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetEncoderMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_GetEncoderMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_EnableEncoderMode
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_EnableEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
Note
In this mode the LPTIM instance must be clocked by an internal clock source. Also, the prescaler division ratio must be equal to 1.
Note
LPTIM instance must be configured in continuous mode prior enabling the encoder mode.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableEncoderMode
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_DisableEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledEncoderMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the LPTIM operates in encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_IsEnabledEncoderMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_SetEncoderMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
encoder_mode
)
- group LPTIM_LL_EF_Encoder_Mode
-
Functions
-
void
LL_LPTIM_SetEncoderMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
encoder_mode
)
-
Configure the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_SetEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
encoder_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetEncoderMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_GetEncoderMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_EnableEncoderMode
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_EnableEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
Note
In this mode the LPTIM instance must be clocked by an internal clock source. Also, the prescaler division ratio must be equal to 1.
Note
LPTIM instance must be configured in continuous mode prior enabling the encoder mode.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableEncoderMode
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_DisableEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledEncoderMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the LPTIM operates in encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_IsEnabledEncoderMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_SetEncoderMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
encoder_mode
)
- group LPTIM_LL_EF_Encoder_Mode
-
Functions
-
void
LL_LPTIM_SetEncoderMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
encoder_mode
)
-
Configure the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_SetEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
-
lptimx – Low-Power Timer instance
-
encoder_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_LPTIM_GetEncoderMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Get actual encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR CKPOL LL_LPTIM_GetEncoderMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPTIM_EnableEncoderMode
(
LPTIM_TypeDef
*
lptimx
)
-
Enable the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_EnableEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
Note
In this mode the LPTIM instance must be clocked by an internal clock source. Also, the prescaler division ratio must be equal to 1.
Note
LPTIM instance must be configured in continuous mode prior enabling the encoder mode.
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableEncoderMode
(
LPTIM_TypeDef
*
lptimx
)
-
Disable the encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_DisableEncoderMode
Note
This function must be called when the LPTIM instance is disabled.
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledEncoderMode
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the LPTIM operates in encoder mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CFGR ENC LL_LPTIM_IsEnabledEncoderMode
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_SetEncoderMode
(
LPTIM_TypeDef
*
lptimx
,
uint32_t
encoder_mode
)
FLAG Management ¶
- group LPTIM_LL_EF_FLAG_Management
-
Functions
-
void
LL_LPTIM_ClearFlag_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare match flag for channel 1 (CC1CF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC1CF LL_LPTIM_ClearFlag_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a capture/compare interrupt has occurred for channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC1IF LL_LPTIM_IsActiveFlag_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare match flag for channel 2 (CC2CF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC2CF LL_LPTIM_ClearFlag_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a capture/compare interrupt has occurred for channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC2IF LL_LPTIM_IsActiveFlag_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the Capture/Compare 1 over-capture flag for channel 1 (CC1OCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC1OCF LL_LPTIM_ClearFlag_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC1O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a Capture/Compare 1 over-capture has occurred for channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC1OF LL_LPTIM_IsActiveFlag_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the Capture/Compare 2 over-capture flag for channel 2 (CC2OCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC2OCF LL_LPTIM_ClearFlag_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC2O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a Capture/Compare 2 over-capture has occurred for channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC2OF LL_LPTIM_IsActiveFlag_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the autoreload match flag (ARRMCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ARRMCF LL_LPTIM_ClearFlag_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_ARRM
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a autoreload match interrupt has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ARRM LL_LPTIM_IsActiveFlag_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the external trigger valid edge flag(EXTTRIGCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR EXTTRIGCF LL_LPTIM_ClearFlag_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_EXTTRIG
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a valid edge on the selected external trigger input has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR EXTTRIG LL_LPTIM_IsActiveFlag_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare register update interrupt flag (CMP1OKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMP1OKCF LL_LPTIM_ClearFlag_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CMP1OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_CCR1 register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMP1OK LL_LPTIM_IsActiveFlag_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare register update interrupt flag (CMP2OKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMP2OKCF LL_LPTIM_ClearFlag_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CMP2OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_CCR2 register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMP2OK LL_LPTIM_IsActiveFlag_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_DIEROK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the interrupt register update interrupt flag (DIEROKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR DIEROKCF LL_LPTIM_ClearFlag_DIEROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_DIEROK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_DIER register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR DIEROK LL_LPTIM_IsActiveFlag_DIEROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the autoreload register update interrupt flag (ARROKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ARROKCF LL_LPTIM_ClearFlag_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ARROK LL_LPTIM_IsActiveFlag_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the counter direction change to up interrupt flag (UPCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UPCF LL_LPTIM_ClearFlag_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
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).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UP LL_LPTIM_IsActiveFlag_UP
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the counter direction change to down interrupt flag (DOWNCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR DOWNCF LL_LPTIM_ClearFlag_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
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).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR DOWN LL_LPTIM_IsActiveFlag_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the repetition register update interrupt flag (REPOKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR REPOKCF LL_LPTIM_ClearFlag_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_REPOK
(
const
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR REPOK LL_LPTIM_IsActiveFlag_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the update event flag (UECF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UECF LL_LPTIM_ClearFlag_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_UE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the lptimx update event has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UE LL_LPTIM_IsActiveFlag_UE
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC1
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_FLAG_Management
-
Functions
-
void
LL_LPTIM_ClearFlag_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare match flag for channel 1 (CC1CF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC1CF LL_LPTIM_ClearFlag_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a capture/compare interrupt has occurred for channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC1IF LL_LPTIM_IsActiveFlag_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare match flag for channel 2 (CC2CF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC2CF LL_LPTIM_ClearFlag_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a capture/compare interrupt has occurred for channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC2IF LL_LPTIM_IsActiveFlag_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the Capture/Compare 1 over-capture flag for channel 1 (CC1OCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC1OCF LL_LPTIM_ClearFlag_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC1O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a Capture/Compare 1 over-capture has occurred for channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC1OF LL_LPTIM_IsActiveFlag_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the Capture/Compare 2 over-capture flag for channel 2 (CC2OCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC2OCF LL_LPTIM_ClearFlag_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC2O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a Capture/Compare 2 over-capture has occurred for channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC2OF LL_LPTIM_IsActiveFlag_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the autoreload match flag (ARRMCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ARRMCF LL_LPTIM_ClearFlag_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_ARRM
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a autoreload match interrupt has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ARRM LL_LPTIM_IsActiveFlag_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the external trigger valid edge flag(EXTTRIGCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR EXTTRIGCF LL_LPTIM_ClearFlag_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_EXTTRIG
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a valid edge on the selected external trigger input has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR EXTTRIG LL_LPTIM_IsActiveFlag_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare register update interrupt flag (CMP1OKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMP1OKCF LL_LPTIM_ClearFlag_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CMP1OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_CCR1 register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMP1OK LL_LPTIM_IsActiveFlag_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare register update interrupt flag (CMP2OKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMP2OKCF LL_LPTIM_ClearFlag_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CMP2OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_CCR2 register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMP2OK LL_LPTIM_IsActiveFlag_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_DIEROK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the interrupt register update interrupt flag (DIEROKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR DIEROKCF LL_LPTIM_ClearFlag_DIEROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_DIEROK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_DIER register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR DIEROK LL_LPTIM_IsActiveFlag_DIEROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the autoreload register update interrupt flag (ARROKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ARROKCF LL_LPTIM_ClearFlag_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ARROK LL_LPTIM_IsActiveFlag_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the counter direction change to up interrupt flag (UPCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UPCF LL_LPTIM_ClearFlag_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
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).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UP LL_LPTIM_IsActiveFlag_UP
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the counter direction change to down interrupt flag (DOWNCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR DOWNCF LL_LPTIM_ClearFlag_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
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).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR DOWN LL_LPTIM_IsActiveFlag_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the repetition register update interrupt flag (REPOKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR REPOKCF LL_LPTIM_ClearFlag_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_REPOK
(
const
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR REPOK LL_LPTIM_IsActiveFlag_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the update event flag (UECF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UECF LL_LPTIM_ClearFlag_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_UE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the lptimx update event has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UE LL_LPTIM_IsActiveFlag_UE
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC1
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_FLAG_Management
-
Functions
-
void
LL_LPTIM_ClearFlag_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare match flag for channel 1 (CC1CF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC1CF LL_LPTIM_ClearFlag_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a capture/compare interrupt has occurred for channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC1IF LL_LPTIM_IsActiveFlag_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare match flag for channel 2 (CC2CF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC2CF LL_LPTIM_ClearFlag_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a capture/compare interrupt has occurred for channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC2IF LL_LPTIM_IsActiveFlag_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the Capture/Compare 1 over-capture flag for channel 1 (CC1OCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC1OCF LL_LPTIM_ClearFlag_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC1O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a Capture/Compare 1 over-capture has occurred for channel 1.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC1OF LL_LPTIM_IsActiveFlag_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the Capture/Compare 2 over-capture flag for channel 2 (CC2OCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CC2OCF LL_LPTIM_ClearFlag_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CC2O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a Capture/Compare 2 over-capture has occurred for channel 2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CC2OF LL_LPTIM_IsActiveFlag_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the autoreload match flag (ARRMCF)
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ARRMCF LL_LPTIM_ClearFlag_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_ARRM
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a autoreload match interrupt has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ARRM LL_LPTIM_IsActiveFlag_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the external trigger valid edge flag(EXTTRIGCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR EXTTRIGCF LL_LPTIM_ClearFlag_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_EXTTRIG
(
const
LPTIM_TypeDef
*
lptimx
)
-
Inform application whether a valid edge on the selected external trigger input has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR EXTTRIG LL_LPTIM_IsActiveFlag_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare register update interrupt flag (CMP1OKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMP1OKCF LL_LPTIM_ClearFlag_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CMP1OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_CCR1 register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMP1OK LL_LPTIM_IsActiveFlag_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the compare register update interrupt flag (CMP2OKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMP2OKCF LL_LPTIM_ClearFlag_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_CMP2OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_CCR2 register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMP2OK LL_LPTIM_IsActiveFlag_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_DIEROK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the interrupt register update interrupt flag (DIEROKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR DIEROKCF LL_LPTIM_ClearFlag_DIEROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_DIEROK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the APB bus write operation to the LPTIMx_DIER register has been successfully completed. If so, a new one can be initiated.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR DIEROK LL_LPTIM_IsActiveFlag_DIEROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the autoreload register update interrupt flag (ARROKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ARROKCF LL_LPTIM_ClearFlag_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ARROK LL_LPTIM_IsActiveFlag_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the counter direction change to up interrupt flag (UPCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UPCF LL_LPTIM_ClearFlag_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
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).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UP LL_LPTIM_IsActiveFlag_UP
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the counter direction change to down interrupt flag (DOWNCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR DOWNCF LL_LPTIM_ClearFlag_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
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).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR DOWN LL_LPTIM_IsActiveFlag_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the repetition register update interrupt flag (REPOKCF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR REPOKCF LL_LPTIM_ClearFlag_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_REPOK
(
const
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.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR REPOK LL_LPTIM_IsActiveFlag_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Clear the update event flag (UECF).
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UECF LL_LPTIM_ClearFlag_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsActiveFlag_UE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Informs application whether the lptimx update event has occurred.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UE LL_LPTIM_IsActiveFlag_UE
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_ClearFlag_CC1
(
LPTIM_TypeDef
*
lptimx
)
Interrupt Management ¶
- group LPTIM_LL_EF_IT_Management
-
Functions
-
void
LL_LPTIM_EnableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 interrupt (CC1IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_EnableIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 interrupt (CC1IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_DisableIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 interrupt (CC1IE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_IsEnabledIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 interrupt (CC2IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_EnableIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 2 interrupt (CC2IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_DisableIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 interrupt (CC2IE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_IsEnabledIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 over-capture interrupt (CC1OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_EnableIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 over-capture interrupt (CC1OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_DisableIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC1O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 over-capture interrupt (CC1OIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_IsEnabledIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 over-capture interrupt (CC2OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_EnableIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 over-capture interrupt (CC2OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_DisableIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC2O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 over-capture interrupt (CC2OIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_IsEnabledIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Enable autoreload match interrupt (ARRMIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_EnableIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Disable autoreload match interrupt (ARRMIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_DisableIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_ARRM
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the autoreload match interrupt (ARRMIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_IsEnabledIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Enable external trigger valid edge interrupt (EXTTRIGIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_EnableIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Disable external trigger valid edge interrupt (EXTTRIGIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_DisableIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_EXTTRIG
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates external trigger valid edge interrupt (EXTTRIGIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_IsEnabledIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable compare register write completed interrupt (CMP1OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP1OKIE LL_LPTIM_EnableIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable compare register write completed interrupt (CMP1OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMPO1KIE LL_LPTIM_DisableIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CMP1OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the compare register write completed interrupt (CMP1OKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP1OKIE LL_LPTIM_IsEnabledIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable compare register write completed interrupt (CMP2OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_EnableIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable compare register write completed interrupt (CMP2OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_DisableIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CMP2OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the compare register write completed interrupt (CMP2OKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_IsEnabledIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable autoreload register write completed interrupt (ARROKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_EnableIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable autoreload register write completed interrupt (ARROKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_DisableIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_ARROK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the autoreload register write completed interrupt (ARROKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_IsEnabledIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Enable direction change to up interrupt (UPIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_EnableIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Disable direction change to up interrupt (UPIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_DisableIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_UP
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the direction change to up interrupt (UPIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_IsEnabledIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Enable direction change to down interrupt (DOWNIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_EnableIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Disable direction change to down interrupt (DOWNIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_DisableIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_DOWN
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the direction change to down interrupt (DOWNIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_IsEnabledIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable repetition register update successfully completed interrupt (REPOKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_EnableIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable repetition register update successfully completed interrupt (REPOKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_DisableIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_REPOK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the repetition register update successfully completed interrupt (REPOKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_IsEnabledIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Enable update event interrupt (UEIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_EnableIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Disable update event interrupt (UEIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_DisableIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_UE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the update event interrupt (UEIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_IsEnabledIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance @ retval State of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_IT_Management
-
Functions
-
void
LL_LPTIM_EnableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 interrupt (CC1IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_EnableIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 interrupt (CC1IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_DisableIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 interrupt (CC1IE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_IsEnabledIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 interrupt (CC2IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_EnableIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 2 interrupt (CC2IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_DisableIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 interrupt (CC2IE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_IsEnabledIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 over-capture interrupt (CC1OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_EnableIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 over-capture interrupt (CC1OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_DisableIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC1O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 over-capture interrupt (CC1OIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_IsEnabledIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 over-capture interrupt (CC2OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_EnableIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 over-capture interrupt (CC2OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_DisableIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC2O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 over-capture interrupt (CC2OIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_IsEnabledIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Enable autoreload match interrupt (ARRMIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_EnableIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Disable autoreload match interrupt (ARRMIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_DisableIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_ARRM
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the autoreload match interrupt (ARRMIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_IsEnabledIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Enable external trigger valid edge interrupt (EXTTRIGIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_EnableIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Disable external trigger valid edge interrupt (EXTTRIGIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_DisableIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_EXTTRIG
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates external trigger valid edge interrupt (EXTTRIGIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_IsEnabledIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable compare register write completed interrupt (CMP1OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP1OKIE LL_LPTIM_EnableIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable compare register write completed interrupt (CMP1OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMPO1KIE LL_LPTIM_DisableIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CMP1OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the compare register write completed interrupt (CMP1OKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP1OKIE LL_LPTIM_IsEnabledIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable compare register write completed interrupt (CMP2OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_EnableIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable compare register write completed interrupt (CMP2OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_DisableIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CMP2OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the compare register write completed interrupt (CMP2OKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_IsEnabledIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable autoreload register write completed interrupt (ARROKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_EnableIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable autoreload register write completed interrupt (ARROKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_DisableIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_ARROK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the autoreload register write completed interrupt (ARROKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_IsEnabledIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Enable direction change to up interrupt (UPIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_EnableIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Disable direction change to up interrupt (UPIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_DisableIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_UP
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the direction change to up interrupt (UPIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_IsEnabledIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Enable direction change to down interrupt (DOWNIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_EnableIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Disable direction change to down interrupt (DOWNIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_DisableIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_DOWN
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the direction change to down interrupt (DOWNIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_IsEnabledIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable repetition register update successfully completed interrupt (REPOKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_EnableIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable repetition register update successfully completed interrupt (REPOKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_DisableIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_REPOK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the repetition register update successfully completed interrupt (REPOKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_IsEnabledIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Enable update event interrupt (UEIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_EnableIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Disable update event interrupt (UEIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_DisableIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_UE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the update event interrupt (UEIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_IsEnabledIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance @ retval State of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_EF_IT_Management
-
Functions
-
void
LL_LPTIM_EnableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 interrupt (CC1IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_EnableIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 interrupt (CC1IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_DisableIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 interrupt (CC1IE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1IE LL_LPTIM_IsEnabledIT_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 interrupt (CC2IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_EnableIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 2 interrupt (CC2IE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_DisableIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 interrupt (CC2IE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2IE LL_LPTIM_IsEnabledIT_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 over-capture interrupt (CC1OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_EnableIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC1O
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 over-capture interrupt (CC1OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_DisableIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC1O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 over-capture interrupt (CC1OIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1OIE LL_LPTIM_IsEnabledIT_CC1O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 over-capture interrupt (CC2OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_EnableIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CC2O
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 over-capture interrupt (CC2OIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_DisableIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CC2O
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 over-capture interrupt (CC2OIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2OIE LL_LPTIM_IsEnabledIT_CC2O
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Enable autoreload match interrupt (ARRMIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_EnableIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_ARRM
(
LPTIM_TypeDef
*
lptimx
)
-
Disable autoreload match interrupt (ARRMIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_DisableIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_ARRM
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the autoreload match interrupt (ARRMIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARRMIE LL_LPTIM_IsEnabledIT_ARRM
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Enable external trigger valid edge interrupt (EXTTRIGIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_EnableIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_EXTTRIG
(
LPTIM_TypeDef
*
lptimx
)
-
Disable external trigger valid edge interrupt (EXTTRIGIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_DisableIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_EXTTRIG
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates external trigger valid edge interrupt (EXTTRIGIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER EXTTRIGIE LL_LPTIM_IsEnabledIT_EXTTRIG
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable compare register write completed interrupt (CMP1OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP1OKIE LL_LPTIM_EnableIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CMP1OK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable compare register write completed interrupt (CMP1OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMPO1KIE LL_LPTIM_DisableIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CMP1OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the compare register write completed interrupt (CMP1OKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP1OKIE LL_LPTIM_IsEnabledIT_CMP1OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable compare register write completed interrupt (CMP2OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_EnableIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_CMP2OK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable compare register write completed interrupt (CMP2OKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_DisableIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_CMP2OK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the compare register write completed interrupt (CMP2OKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
IER CMP2OKIE LL_LPTIM_IsEnabledIT_CMP2OK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableIT_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable autoreload register write completed interrupt (ARROKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_EnableIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_ARROK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable autoreload register write completed interrupt (ARROKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_DisableIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_ARROK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the autoreload register write completed interrupt (ARROKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER ARROKIE LL_LPTIM_IsEnabledIT_ARROK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Enable direction change to up interrupt (UPIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_EnableIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_UP
(
LPTIM_TypeDef
*
lptimx
)
-
Disable direction change to up interrupt (UPIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_DisableIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_UP
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the direction change to up interrupt (UPIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UPIE LL_LPTIM_IsEnabledIT_UP
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Enable direction change to down interrupt (DOWNIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_EnableIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_DOWN
(
LPTIM_TypeDef
*
lptimx
)
-
Disable direction change to down interrupt (DOWNIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_DisableIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_DOWN
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the direction change to down interrupt (DOWNIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER DOWNIE LL_LPTIM_IsEnabledIT_DOWN
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Enable repetition register update successfully completed interrupt (REPOKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_EnableIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_REPOK
(
LPTIM_TypeDef
*
lptimx
)
-
Disable repetition register update successfully completed interrupt (REPOKIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_DisableIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_REPOK
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the repetition register update successfully completed interrupt (REPOKIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER REPOKIE LL_LPTIM_IsEnabledIT_REPOK
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Enable update event interrupt (UEIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_EnableIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableIT_UE
(
LPTIM_TypeDef
*
lptimx
)
-
Disable update event interrupt (UEIE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_DisableIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledIT_UE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the update event interrupt (UEIE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEIE LL_LPTIM_IsEnabledIT_UE
- Parameters :
-
lptimx – Low-Power Timer instance @ retval State of bit(1 or 0).
-
void
LL_LPTIM_EnableIT_CC1
(
LPTIM_TypeDef
*
lptimx
)
DMA Management ¶
- group TIM_LL_EF_DMA_Management
-
Functions
-
void
LL_LPTIM_EnableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
-
Enable update DMA request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_EnableDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
-
Disable update DMA request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_DisableDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_UPDATE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the update DMA request is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_IsEnabledDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableDMAReq_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_EnableDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_DisableDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_IsEnabledDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableDMAReq_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_EnableDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_DisableDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_IsEnabledDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_UPDATE
(
TIM_TypeDef
*
timx
)
-
Enable update DMA request (UDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_EnableDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_UPDATE
(
TIM_TypeDef
*
timx
)
-
Disable update DMA request (UDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_DisableDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_UPDATE
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the update DMA request (UDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_IsEnabledDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC1
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_EnableDMAReq_CC1
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC1
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_DisableDMAReq_CC1
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC1
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_IsEnabledDMAReq_CC1
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC2
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_EnableDMAReq_CC2
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC2
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_DisableDMAReq_CC2
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC2
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_IsEnabledDMAReq_CC2
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC3
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 3 DMA request (CC3DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_EnableDMAReq_CC3
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC3
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 3 DMA request (CC3DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_DisableDMAReq_CC3
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC3
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 3 DMA request (CC3DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_IsEnabledDMAReq_CC3
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC4
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 4 DMA request (CC4DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_EnableDMAReq_CC4
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC4
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 4 DMA request (CC4DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_DisableDMAReq_CC4
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC4
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 4 DMA request (CC4DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_IsEnabledDMAReq_CC4
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_COM
(
TIM_TypeDef
*
timx
)
-
Enable commutation DMA request (COMDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_EnableDMAReq_COM
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_COM
(
TIM_TypeDef
*
timx
)
-
Disable commutation DMA request (COMDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_DisableDMAReq_COM
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_COM
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the commutation DMA request (COMDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_IsEnabledDMAReq_COM
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_TRIG
(
TIM_TypeDef
*
timx
)
-
Enable trigger interrupt (TDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_EnableDMAReq_TRIG
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_TRIG
(
TIM_TypeDef
*
timx
)
-
Disable trigger interrupt (TDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_DisableDMAReq_TRIG
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_TRIG
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the trigger interrupt (TDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_IsEnabledDMAReq_TRIG
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq
(
TIM_TypeDef
*
timx
,
uint32_t
dma_mask
)
-
Enable the selected dma request(s).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_EnableDMAReq
DIER CC1DE LL_TIM_EnableDMAReq
DIER CC2DE LL_TIM_EnableDMAReq
DIER CC3DE LL_TIM_EnableDMAReq
DIER CC4DE LL_TIM_EnableDMAReq
DIER COMDE LL_TIM_EnableDMAReq
DIER TDE LL_TIM_EnableDMAReq
- Parameters :
-
-
timx – Timer instance
-
dma_mask – specifies the DMA request source(s) to enable. This parameter can be any combination of the following values:
-
-
void
LL_TIM_DisableDMAReq
(
TIM_TypeDef
*
timx
,
uint32_t
dma_mask
)
-
Disable the selected dma request(s).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_DisableDMAReq
DIER CC1DE LL_TIM_DisableDMAReq
DIER CC2DE LL_TIM_DisableDMAReq
DIER CC3DE LL_TIM_DisableDMAReq
DIER CC4DE LL_TIM_DisableDMAReq
DIER COMDE LL_TIM_DisableDMAReq
DIER TDE LL_TIM_DisableDMAReq
- Parameters :
-
-
timx – Timer instance
-
dma_mask – specifies the DMA request source(s) to disable. This parameter can be any combination of the following values:
-
-
void
LL_LPTIM_EnableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
- group TIM_LL_EF_DMA_Management
-
Functions
-
void
LL_LPTIM_EnableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
-
Enable update DMA request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_EnableDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
-
Disable update DMA request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_DisableDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_UPDATE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the update DMA request is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_IsEnabledDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableDMAReq_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_EnableDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_DisableDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_IsEnabledDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableDMAReq_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_EnableDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_DisableDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_IsEnabledDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_UPDATE
(
TIM_TypeDef
*
timx
)
-
Enable update DMA request (UDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_EnableDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_UPDATE
(
TIM_TypeDef
*
timx
)
-
Disable update DMA request (UDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_DisableDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_UPDATE
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the update DMA request (UDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_IsEnabledDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC1
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_EnableDMAReq_CC1
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC1
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_DisableDMAReq_CC1
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC1
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_IsEnabledDMAReq_CC1
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC2
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_EnableDMAReq_CC2
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC2
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_DisableDMAReq_CC2
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC2
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_IsEnabledDMAReq_CC2
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC3
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 3 DMA request (CC3DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_EnableDMAReq_CC3
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC3
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 3 DMA request (CC3DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_DisableDMAReq_CC3
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC3
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 3 DMA request (CC3DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_IsEnabledDMAReq_CC3
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC4
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 4 DMA request (CC4DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_EnableDMAReq_CC4
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC4
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 4 DMA request (CC4DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_DisableDMAReq_CC4
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC4
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 4 DMA request (CC4DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_IsEnabledDMAReq_CC4
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_COM
(
TIM_TypeDef
*
timx
)
-
Enable commutation DMA request (COMDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_EnableDMAReq_COM
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_COM
(
TIM_TypeDef
*
timx
)
-
Disable commutation DMA request (COMDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_DisableDMAReq_COM
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_COM
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the commutation DMA request (COMDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_IsEnabledDMAReq_COM
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_TRIG
(
TIM_TypeDef
*
timx
)
-
Enable trigger interrupt (TDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_EnableDMAReq_TRIG
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_TRIG
(
TIM_TypeDef
*
timx
)
-
Disable trigger interrupt (TDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_DisableDMAReq_TRIG
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_TRIG
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the trigger interrupt (TDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_IsEnabledDMAReq_TRIG
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq
(
TIM_TypeDef
*
timx
,
uint32_t
dma_mask
)
-
Enable the selected dma request(s).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_EnableDMAReq
DIER CC1DE LL_TIM_EnableDMAReq
DIER CC2DE LL_TIM_EnableDMAReq
DIER CC3DE LL_TIM_EnableDMAReq
DIER CC4DE LL_TIM_EnableDMAReq
DIER COMDE LL_TIM_EnableDMAReq
DIER TDE LL_TIM_EnableDMAReq
- Parameters :
-
-
timx – Timer instance
-
dma_mask – specifies the DMA request source(s) to enable. This parameter can be any combination of the following values:
-
-
void
LL_TIM_DisableDMAReq
(
TIM_TypeDef
*
timx
,
uint32_t
dma_mask
)
-
Disable the selected dma request(s).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_DisableDMAReq
DIER CC1DE LL_TIM_DisableDMAReq
DIER CC2DE LL_TIM_DisableDMAReq
DIER CC3DE LL_TIM_DisableDMAReq
DIER CC4DE LL_TIM_DisableDMAReq
DIER COMDE LL_TIM_DisableDMAReq
DIER TDE LL_TIM_DisableDMAReq
- Parameters :
-
-
timx – Timer instance
-
dma_mask – specifies the DMA request source(s) to disable. This parameter can be any combination of the following values:
-
-
void
LL_LPTIM_EnableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
- group TIM_LL_EF_DMA_Management
-
Functions
-
void
LL_LPTIM_EnableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
-
Enable update DMA request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_EnableDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)
-
Disable update DMA request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_DisableDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_UPDATE
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the update DMA request is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UEDE LL_LPTIM_IsEnabledDMAReq_UPDATE
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableDMAReq_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_EnableDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_CC1
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_DisableDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_CC1
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_LPTIM_IsEnabledDMAReq_CC1
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_LPTIM_EnableDMAReq_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Enable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_EnableDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
void
LL_LPTIM_DisableDMAReq_CC2
(
LPTIM_TypeDef
*
lptimx
)
-
Disable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_DisableDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
-
uint32_t
LL_LPTIM_IsEnabledDMAReq_CC2
(
const
LPTIM_TypeDef
*
lptimx
)
-
Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_LPTIM_IsEnabledDMAReq_CC2
- Parameters :
-
lptimx – Low-Power Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_UPDATE
(
TIM_TypeDef
*
timx
)
-
Enable update DMA request (UDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_EnableDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_UPDATE
(
TIM_TypeDef
*
timx
)
-
Disable update DMA request (UDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_DisableDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_UPDATE
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the update DMA request (UDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_IsEnabledDMAReq_UPDATE
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC1
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_EnableDMAReq_CC1
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC1
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 1 DMA request (CC1DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_DisableDMAReq_CC1
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC1
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC1DE LL_TIM_IsEnabledDMAReq_CC1
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC2
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_EnableDMAReq_CC2
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC2
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 2 DMA request (CC2DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_DisableDMAReq_CC2
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC2
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC2DE LL_TIM_IsEnabledDMAReq_CC2
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC3
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 3 DMA request (CC3DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_EnableDMAReq_CC3
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC3
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 3 DMA request (CC3DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_DisableDMAReq_CC3
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC3
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 3 DMA request (CC3DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC3DE LL_TIM_IsEnabledDMAReq_CC3
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_CC4
(
TIM_TypeDef
*
timx
)
-
Enable capture/compare 4 DMA request (CC4DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_EnableDMAReq_CC4
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_CC4
(
TIM_TypeDef
*
timx
)
-
Disable capture/compare 4 DMA request (CC4DE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_DisableDMAReq_CC4
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_CC4
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the capture/compare 4 DMA request (CC4DE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER CC4DE LL_TIM_IsEnabledDMAReq_CC4
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_COM
(
TIM_TypeDef
*
timx
)
-
Enable commutation DMA request (COMDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_EnableDMAReq_COM
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_COM
(
TIM_TypeDef
*
timx
)
-
Disable commutation DMA request (COMDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_DisableDMAReq_COM
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_COM
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the commutation DMA request (COMDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER COMDE LL_TIM_IsEnabledDMAReq_COM
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq_TRIG
(
TIM_TypeDef
*
timx
)
-
Enable trigger interrupt (TDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_EnableDMAReq_TRIG
- Parameters :
-
timx – Timer instance
-
void
LL_TIM_DisableDMAReq_TRIG
(
TIM_TypeDef
*
timx
)
-
Disable trigger interrupt (TDE).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_DisableDMAReq_TRIG
- Parameters :
-
timx – Timer instance
-
uint32_t
LL_TIM_IsEnabledDMAReq_TRIG
(
const
TIM_TypeDef
*
timx
)
-
Indicates whether the trigger interrupt (TDE) is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER TDE LL_TIM_IsEnabledDMAReq_TRIG
- Parameters :
-
timx – Timer instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_TIM_EnableDMAReq
(
TIM_TypeDef
*
timx
,
uint32_t
dma_mask
)
-
Enable the selected dma request(s).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_EnableDMAReq
DIER CC1DE LL_TIM_EnableDMAReq
DIER CC2DE LL_TIM_EnableDMAReq
DIER CC3DE LL_TIM_EnableDMAReq
DIER CC4DE LL_TIM_EnableDMAReq
DIER COMDE LL_TIM_EnableDMAReq
DIER TDE LL_TIM_EnableDMAReq
- Parameters :
-
-
timx – Timer instance
-
dma_mask – specifies the DMA request source(s) to enable. This parameter can be any combination of the following values:
-
-
void
LL_TIM_DisableDMAReq
(
TIM_TypeDef
*
timx
,
uint32_t
dma_mask
)
-
Disable the selected dma request(s).
- Reference Manual to LL API cross reference (Register Field Functions)
-
DIER UDE LL_TIM_DisableDMAReq
DIER CC1DE LL_TIM_DisableDMAReq
DIER CC2DE LL_TIM_DisableDMAReq
DIER CC3DE LL_TIM_DisableDMAReq
DIER CC4DE LL_TIM_DisableDMAReq
DIER COMDE LL_TIM_DisableDMAReq
DIER TDE LL_TIM_DisableDMAReq
- Parameters :
-
-
timx – Timer instance
-
dma_mask – specifies the DMA request source(s) to disable. This parameter can be any combination of the following values:
-
-
void
LL_LPTIM_EnableDMAReq_UPDATE
(
LPTIM_TypeDef
*
lptimx
)