LL LPTIM Constants ¶
Timeout Enable ¶
- group LPTIM_LL_EC_TIMEOUT_ENABLE
-
Alias for the TIMOUT bit in CFGR.
Defines
-
LL_LPTIM_TIMEOUT_ENABLE
LPTIM_CFGR_TIMOUT
¶
-
LL_LPTIM_TIMEOUT_ENABLE
LPTIM_CFGR_TIMOUT
¶
- group LPTIM_LL_EC_TIMEOUT_ENABLE
-
Alias for the TIMOUT bit in CFGR.
Defines
-
LL_LPTIM_TIMEOUT_ENABLE
LPTIM_CFGR_TIMOUT
-
LL_LPTIM_TIMEOUT_ENABLE
LPTIM_CFGR_TIMOUT
- group LPTIM_LL_EC_TIMEOUT_ENABLE
-
Alias for the TIMOUT bit in CFGR.
Defines
-
LL_LPTIM_TIMEOUT_ENABLE
LPTIM_CFGR_TIMOUT
-
LL_LPTIM_TIMEOUT_ENABLE
LPTIM_CFGR_TIMOUT
Get Flags Defines ¶
- group LPTIM_LL_EC_GET_FLAG
-
Flags defines which can be used with LL_LPTIM_READREG function.
Defines
-
LL_LPTIM_ISR_CMP1OK
LPTIM_ISR_CMP1OK
¶
-
Compare register 1 update OK
-
LL_LPTIM_ISR_CMP2OK
LPTIM_ISR_CMP2OK
¶
-
Compare register 2 update OK
-
LL_LPTIM_ISR_CC1IF
LPTIM_ISR_CC1IF
¶
-
Capture/Compare 1 interrupt flag
-
LL_LPTIM_ISR_CC2IF
LPTIM_ISR_CC2IF
¶
-
Capture/Compare 2 interrupt flag
-
LL_LPTIM_ISR_CC1OF
LPTIM_ISR_CC1OF
¶
-
Capture/Compare 1 over-capture flag
-
LL_LPTIM_ISR_CC2OF
LPTIM_ISR_CC2OF
¶
-
Capture/Compare 2 over-capture flag
-
LL_LPTIM_ISR_DIEROK
LPTIM_ISR_DIEROK
¶
-
Interrupt enable register update OK
-
LL_LPTIM_ISR_ARRM
LPTIM_ISR_ARRM
¶
-
Autoreload match
-
LL_LPTIM_ISR_EXTTRIG
LPTIM_ISR_EXTTRIG
¶
-
External trigger edge event
-
LL_LPTIM_ISR_ARROK
LPTIM_ISR_ARROK
¶
-
Autoreload register update OK
-
LL_LPTIM_ISR_UP
LPTIM_ISR_UP
¶
-
Counter direction change down to up
-
LL_LPTIM_ISR_DOWN
LPTIM_ISR_DOWN
¶
-
Counter direction change up to down
-
LL_LPTIM_ISR_UE
LPTIM_ISR_UE
¶
-
Update event
-
LL_LPTIM_ISR_REPOK
LPTIM_ISR_REPOK
¶
-
Repetition register update OK
-
LL_LPTIM_ISR_CMP1OK
LPTIM_ISR_CMP1OK
¶
- group LPTIM_LL_EC_GET_FLAG
-
Flags defines which can be used with LL_LPTIM_READREG function.
Defines
-
LL_LPTIM_ISR_CMP1OK
LPTIM_ISR_CMP1OK
-
Compare register 1 update OK
-
LL_LPTIM_ISR_CMP2OK
LPTIM_ISR_CMP2OK
-
Compare register 2 update OK
-
LL_LPTIM_ISR_CC1IF
LPTIM_ISR_CC1IF
-
Capture/Compare 1 interrupt flag
-
LL_LPTIM_ISR_CC2IF
LPTIM_ISR_CC2IF
-
Capture/Compare 2 interrupt flag
-
LL_LPTIM_ISR_CC1OF
LPTIM_ISR_CC1OF
-
Capture/Compare 1 over-capture flag
-
LL_LPTIM_ISR_CC2OF
LPTIM_ISR_CC2OF
-
Capture/Compare 2 over-capture flag
-
LL_LPTIM_ISR_DIEROK
LPTIM_ISR_DIEROK
-
Interrupt enable register update OK
-
LL_LPTIM_ISR_ARRM
LPTIM_ISR_ARRM
-
Autoreload match
-
LL_LPTIM_ISR_EXTTRIG
LPTIM_ISR_EXTTRIG
-
External trigger edge event
-
LL_LPTIM_ISR_ARROK
LPTIM_ISR_ARROK
-
Autoreload register update OK
-
LL_LPTIM_ISR_UP
LPTIM_ISR_UP
-
Counter direction change down to up
-
LL_LPTIM_ISR_DOWN
LPTIM_ISR_DOWN
-
Counter direction change up to down
-
LL_LPTIM_ISR_UE
LPTIM_ISR_UE
-
Update event
-
LL_LPTIM_ISR_REPOK
LPTIM_ISR_REPOK
-
Repetition register update OK
-
LL_LPTIM_ISR_CMP1OK
LPTIM_ISR_CMP1OK
- group LPTIM_LL_EC_GET_FLAG
-
Flags defines which can be used with LL_LPTIM_READREG function.
Defines
-
LL_LPTIM_ISR_CMP1OK
LPTIM_ISR_CMP1OK
-
Compare register 1 update OK
-
LL_LPTIM_ISR_CMP2OK
LPTIM_ISR_CMP2OK
-
Compare register 2 update OK
-
LL_LPTIM_ISR_CC1IF
LPTIM_ISR_CC1IF
-
Capture/Compare 1 interrupt flag
-
LL_LPTIM_ISR_CC2IF
LPTIM_ISR_CC2IF
-
Capture/Compare 2 interrupt flag
-
LL_LPTIM_ISR_CC1OF
LPTIM_ISR_CC1OF
-
Capture/Compare 1 over-capture flag
-
LL_LPTIM_ISR_CC2OF
LPTIM_ISR_CC2OF
-
Capture/Compare 2 over-capture flag
-
LL_LPTIM_ISR_DIEROK
LPTIM_ISR_DIEROK
-
Interrupt enable register update OK
-
LL_LPTIM_ISR_ARRM
LPTIM_ISR_ARRM
-
Autoreload match
-
LL_LPTIM_ISR_EXTTRIG
LPTIM_ISR_EXTTRIG
-
External trigger edge event
-
LL_LPTIM_ISR_ARROK
LPTIM_ISR_ARROK
-
Autoreload register update OK
-
LL_LPTIM_ISR_UP
LPTIM_ISR_UP
-
Counter direction change down to up
-
LL_LPTIM_ISR_DOWN
LPTIM_ISR_DOWN
-
Counter direction change up to down
-
LL_LPTIM_ISR_UE
LPTIM_ISR_UE
-
Update event
-
LL_LPTIM_ISR_REPOK
LPTIM_ISR_REPOK
-
Repetition register update OK
-
LL_LPTIM_ISR_CMP1OK
LPTIM_ISR_CMP1OK
IT Defines ¶
- group LPTIM_LL_EC_IT
-
IT defines which can be used with LL_LPTIM_READREG and LL_LPTIM_WRITE_REG functions.
Defines
-
LL_LPTIM_DIER_CMP1OKIE
LPTIM_DIER_CMP1OKIE
¶
-
Compare register 1 update OK
-
LL_LPTIM_DIER_CMP2OKIE
LPTIM_DIER_CMP2OKIE
¶
-
Compare register 2 update OK
-
LL_LPTIM_DIER_CC1IE
LPTIM_DIER_CC1IE
¶
-
Capture/Compare 1 interrupt flag
-
LL_LPTIM_DIER_CC2IE
LPTIM_DIER_CC2IE
¶
-
Capture/Compare 2 interrupt flag
-
LL_LPTIM_DIER_CC1OFIE
LPTIM_DIER_CC1OIE
¶
-
Capture/Compare 1 over-capture flag
-
LL_LPTIM_DIER_CC2OFIE
LPTIM_DIER_CC2OIE
¶
-
Capture/Compare 2 over-capture flag
-
LL_LPTIM_DIER_ARRMIE
LPTIM_DIER_ARRMIE
¶
-
Autoreload match
-
LL_LPTIM_DIER_EXTTRIGIE
LPTIM_DIER_EXTTRIGIE
¶
-
External trigger edge event
-
LL_LPTIM_DIER_ARROKIE
LPTIM_DIER_ARROKIE
¶
-
Autoreload register update OK
-
LL_LPTIM_DIER_UPIE
LPTIM_DIER_UPIE
¶
-
Counter direction change down to up
-
LL_LPTIM_DIER_DOWNIE
LPTIM_DIER_DOWNIE
¶
-
Counter direction change up to down
-
LL_LPTIM_DIER_UEIE
LPTIM_DIER_UEIE
¶
-
Update event
-
LL_LPTIM_DIER_REPOKIE
LPTIM_DIER_REPOKIE
¶
-
Repetition register update OK
-
LL_LPTIM_DIER_CMP1OKIE
LPTIM_DIER_CMP1OKIE
¶
- group LPTIM_LL_EC_IT
-
IT defines which can be used with LL_LPTIM_READREG and LL_LPTIM_WRITE_REG functions.
Defines
-
LL_LPTIM_DIER_CMP1OKIE
LPTIM_DIER_CMP1OKIE
-
Compare register 1 update OK
-
LL_LPTIM_DIER_CMP2OKIE
LPTIM_DIER_CMP2OKIE
-
Compare register 2 update OK
-
LL_LPTIM_DIER_CC1IE
LPTIM_DIER_CC1IE
-
Capture/Compare 1 interrupt flag
-
LL_LPTIM_DIER_CC2IE
LPTIM_DIER_CC2IE
-
Capture/Compare 2 interrupt flag
-
LL_LPTIM_DIER_CC1OFIE
LPTIM_DIER_CC1OIE
-
Capture/Compare 1 over-capture flag
-
LL_LPTIM_DIER_CC2OFIE
LPTIM_DIER_CC2OIE
-
Capture/Compare 2 over-capture flag
-
LL_LPTIM_DIER_ARRMIE
LPTIM_DIER_ARRMIE
-
Autoreload match
-
LL_LPTIM_DIER_EXTTRIGIE
LPTIM_DIER_EXTTRIGIE
-
External trigger edge event
-
LL_LPTIM_DIER_ARROKIE
LPTIM_DIER_ARROKIE
-
Autoreload register update OK
-
LL_LPTIM_DIER_UPIE
LPTIM_DIER_UPIE
-
Counter direction change down to up
-
LL_LPTIM_DIER_DOWNIE
LPTIM_DIER_DOWNIE
-
Counter direction change up to down
-
LL_LPTIM_DIER_UEIE
LPTIM_DIER_UEIE
-
Update event
-
LL_LPTIM_DIER_REPOKIE
LPTIM_DIER_REPOKIE
-
Repetition register update OK
-
LL_LPTIM_DIER_CMP1OKIE
LPTIM_DIER_CMP1OKIE
- group LPTIM_LL_EC_IT
-
IT defines which can be used with LL_LPTIM_READREG and LL_LPTIM_WRITE_REG functions.
Defines
-
LL_LPTIM_DIER_CMP1OKIE
LPTIM_DIER_CMP1OKIE
-
Compare register 1 update OK
-
LL_LPTIM_DIER_CMP2OKIE
LPTIM_DIER_CMP2OKIE
-
Compare register 2 update OK
-
LL_LPTIM_DIER_CC1IE
LPTIM_DIER_CC1IE
-
Capture/Compare 1 interrupt flag
-
LL_LPTIM_DIER_CC2IE
LPTIM_DIER_CC2IE
-
Capture/Compare 2 interrupt flag
-
LL_LPTIM_DIER_CC1OFIE
LPTIM_DIER_CC1OIE
-
Capture/Compare 1 over-capture flag
-
LL_LPTIM_DIER_CC2OFIE
LPTIM_DIER_CC2OIE
-
Capture/Compare 2 over-capture flag
-
LL_LPTIM_DIER_ARRMIE
LPTIM_DIER_ARRMIE
-
Autoreload match
-
LL_LPTIM_DIER_EXTTRIGIE
LPTIM_DIER_EXTTRIGIE
-
External trigger edge event
-
LL_LPTIM_DIER_ARROKIE
LPTIM_DIER_ARROKIE
-
Autoreload register update OK
-
LL_LPTIM_DIER_UPIE
LPTIM_DIER_UPIE
-
Counter direction change down to up
-
LL_LPTIM_DIER_DOWNIE
LPTIM_DIER_DOWNIE
-
Counter direction change up to down
-
LL_LPTIM_DIER_UEIE
LPTIM_DIER_UEIE
-
Update event
-
LL_LPTIM_DIER_REPOKIE
LPTIM_DIER_REPOKIE
-
Repetition register update OK
-
LL_LPTIM_DIER_CMP1OKIE
LPTIM_DIER_CMP1OKIE
DMA Defines ¶
- group LPTIM_LL_EC_DMA
- group LPTIM_LL_EC_DMA
-
Defines
-
LL_LPTIM_DIER_UEDE
LPTIM_DIER_UEDE
-
LL_LPTIM_DIER_CC1DE
LPTIM_DIER_CC1DE
-
LL_LPTIM_DIER_CC2DE
LPTIM_DIER_CC2DE
-
LL_LPTIM_DIER_UEDE
LPTIM_DIER_UEDE
- group LPTIM_LL_EC_DMA
-
Defines
-
LL_LPTIM_DIER_UEDE
LPTIM_DIER_UEDE
-
LL_LPTIM_DIER_CC1DE
LPTIM_DIER_CC1DE
-
LL_LPTIM_DIER_CC2DE
LPTIM_DIER_CC2DE
-
LL_LPTIM_DIER_UEDE
LPTIM_DIER_UEDE
Operating Mode ¶
- group LPTIM_LL_EC_OPERATING_MODE
- group LPTIM_LL_EC_OPERATING_MODE
-
Defines
-
LL_LPTIM_OPERATING_MODE_CONTINUOUS
LPTIM_CR_CNTSTRT
-
LP Timer starts in continuous mode
-
LL_LPTIM_OPERATING_MODE_ONESHOT
LPTIM_CR_SNGSTRT
-
LP Timer starts in single mode
-
LL_LPTIM_OPERATING_MODE_CONTINUOUS
LPTIM_CR_CNTSTRT
- group LPTIM_LL_EC_OPERATING_MODE
-
Defines
-
LL_LPTIM_OPERATING_MODE_CONTINUOUS
LPTIM_CR_CNTSTRT
-
LP Timer starts in continuous mode
-
LL_LPTIM_OPERATING_MODE_ONESHOT
LPTIM_CR_SNGSTRT
-
LP Timer starts in single mode
-
LL_LPTIM_OPERATING_MODE_CONTINUOUS
LPTIM_CR_CNTSTRT
Update Mode ¶
- group LPTIM_LL_EC_UPDATE_MODE
- group LPTIM_LL_EC_UPDATE_MODE
-
Defines
-
LL_LPTIM_PRELOAD_DISABLED
0x00000000U
-
Preload is disabled: registers are updated after each APB bus write access
-
LL_LPTIM_PRELOAD_ENABLED
LPTIM_CFGR_PRELOAD
-
Preload is enabled: registers are updated at the end of the current LPTIM period
-
LL_LPTIM_PRELOAD_DISABLED
0x00000000U
- group LPTIM_LL_EC_UPDATE_MODE
-
Defines
-
LL_LPTIM_PRELOAD_DISABLED
0x00000000U
-
Preload is disabled: registers are updated after each APB bus write access
-
LL_LPTIM_PRELOAD_ENABLED
LPTIM_CFGR_PRELOAD
-
Preload is enabled: registers are updated at the end of the current LPTIM period
-
LL_LPTIM_PRELOAD_DISABLED
0x00000000U
Counter Mode ¶
- group LPTIM_LL_EC_COUNTER_MODE
- group LPTIM_LL_EC_COUNTER_MODE
-
Defines
-
LL_LPTIM_COUNTER_MODE_INTERNAL
0x00000000U
-
The counter is incremented following each internal clock pulse
-
LL_LPTIM_COUNTER_MODE_EXTERNAL
LPTIM_CFGR_COUNTMODE
-
The counter is incremented following each valid clock pulse on the LPTIM external Input1
-
LL_LPTIM_COUNTER_MODE_INTERNAL
0x00000000U
- group LPTIM_LL_EC_COUNTER_MODE
-
Defines
-
LL_LPTIM_COUNTER_MODE_INTERNAL
0x00000000U
-
The counter is incremented following each internal clock pulse
-
LL_LPTIM_COUNTER_MODE_EXTERNAL
LPTIM_CFGR_COUNTMODE
-
The counter is incremented following each valid clock pulse on the LPTIM external Input1
-
LL_LPTIM_COUNTER_MODE_INTERNAL
0x00000000U
Output Waveform Type ¶
- group LPTIM_LL_EC_OC_WAVEFORM
- group LPTIM_LL_EC_OC_WAVEFORM
-
Defines
-
LL_LPTIM_OC_WAVEFORM_PWM
0x00000000U
-
LPTIM generates either a PWM waveform or a One pulse waveform depending on chosen operating mode CONTINUOUS or SINGLE
-
LL_LPTIM_OC_WAVEFORM_SETONCE
LPTIM_CFGR_WAVE
-
LPTIM generates a Set Once waveform
-
LL_LPTIM_OC_WAVEFORM_PWM
0x00000000U
- group LPTIM_LL_EC_OC_WAVEFORM
-
Defines
-
LL_LPTIM_OC_WAVEFORM_PWM
0x00000000U
-
LPTIM generates either a PWM waveform or a One pulse waveform depending on chosen operating mode CONTINUOUS or SINGLE
-
LL_LPTIM_OC_WAVEFORM_SETONCE
LPTIM_CFGR_WAVE
-
LPTIM generates a Set Once waveform
-
LL_LPTIM_OC_WAVEFORM_PWM
0x00000000U
Output Polarity ¶
- group LPTIM_LL_EC_OUTPUT_POLARITY
- group LPTIM_LL_EC_OUTPUT_POLARITY
-
Defines
-
LL_LPTIM_OCPOLARITY_HIGH
0x00000000U
-
The LPTIM output reflects the compare results between LPTIMx_ARR and LPTIMx_CCRx registers
-
LL_LPTIM_OCPOLARITY_LOW
LPTIM_CCMR1_CC1P_0
-
The LPTIM output reflects the inverse of the compare results between LPTIMx_ARR and LPTIMx_CCx registers
-
LL_LPTIM_OCPOLARITY_HIGH
0x00000000U
- group LPTIM_LL_EC_OUTPUT_POLARITY
-
Defines
-
LL_LPTIM_OCPOLARITY_HIGH
0x00000000U
-
The LPTIM output reflects the compare results between LPTIMx_ARR and LPTIMx_CCRx registers
-
LL_LPTIM_OCPOLARITY_LOW
LPTIM_CCMR1_CC1P_0
-
The LPTIM output reflects the inverse of the compare results between LPTIMx_ARR and LPTIMx_CCx registers
-
LL_LPTIM_OCPOLARITY_HIGH
0x00000000U
Channel ¶
- group TIM_LL_EC_CHANNEL
-
Defines
-
LL_LPTIM_CHANNEL_CH1
0x00000000U
¶
-
LPTIM input/output channel 1
-
LL_LPTIM_CHANNEL_CH2
0x00000001U
¶
-
LPTIM input/output channel 2
-
LL_TIM_CHANNEL_CH1
TIM_CCER_CC1E
¶
-
Timer input/output channel 1
-
LL_TIM_CHANNEL_CH1N
TIM_CCER_CC1NE
¶
-
Timer complementary output channel 1
-
LL_TIM_CHANNEL_CH2
TIM_CCER_CC2E
¶
-
Timer input/output channel 2
-
LL_TIM_CHANNEL_CH2N
TIM_CCER_CC2NE
¶
-
Timer complementary output channel 2
-
LL_TIM_CHANNEL_CH3
TIM_CCER_CC3E
¶
-
Timer input/output channel 3
-
LL_TIM_CHANNEL_CH3N
TIM_CCER_CC3NE
¶
-
Timer complementary output channel 3
-
LL_TIM_CHANNEL_CH4
TIM_CCER_CC4E
¶
-
Timer input/output channel 4
-
LL_TIM_CHANNEL_CH4N
TIM_CCER_CC4NE
¶
-
Timer complementary output channel 4
-
LL_TIM_CHANNEL_CH5
TIM_CCER_CC5E
¶
-
Timer output channel 5
-
LL_TIM_CHANNEL_CH6
TIM_CCER_CC6E
¶
-
Timer output channel 6
-
LL_LPTIM_CHANNEL_CH1
0x00000000U
¶
- group TIM_LL_EC_CHANNEL
-
Defines
-
LL_LPTIM_CHANNEL_CH1
0x00000000U
-
LPTIM input/output channel 1
-
LL_LPTIM_CHANNEL_CH2
0x00000001U
-
LPTIM input/output channel 2
-
LL_TIM_CHANNEL_CH1
TIM_CCER_CC1E
-
Timer input/output channel 1
-
LL_TIM_CHANNEL_CH1N
TIM_CCER_CC1NE
-
Timer complementary output channel 1
-
LL_TIM_CHANNEL_CH2
TIM_CCER_CC2E
-
Timer input/output channel 2
-
LL_TIM_CHANNEL_CH2N
TIM_CCER_CC2NE
-
Timer complementary output channel 2
-
LL_TIM_CHANNEL_CH3
TIM_CCER_CC3E
-
Timer input/output channel 3
-
LL_TIM_CHANNEL_CH3N
TIM_CCER_CC3NE
-
Timer complementary output channel 3
-
LL_TIM_CHANNEL_CH4
TIM_CCER_CC4E
-
Timer input/output channel 4
-
LL_TIM_CHANNEL_CH4N
TIM_CCER_CC4NE
-
Timer complementary output channel 4
-
LL_TIM_CHANNEL_CH5
TIM_CCER_CC5E
-
Timer output channel 5
-
LL_TIM_CHANNEL_CH6
TIM_CCER_CC6E
-
Timer output channel 6
-
LL_LPTIM_CHANNEL_CH1
0x00000000U
- group TIM_LL_EC_CHANNEL
-
Defines
-
LL_LPTIM_CHANNEL_CH1
0x00000000U
-
LPTIM input/output channel 1
-
LL_LPTIM_CHANNEL_CH2
0x00000001U
-
LPTIM input/output channel 2
-
LL_TIM_CHANNEL_CH1
TIM_CCER_CC1E
-
Timer input/output channel 1
-
LL_TIM_CHANNEL_CH1N
TIM_CCER_CC1NE
-
Timer complementary output channel 1
-
LL_TIM_CHANNEL_CH2
TIM_CCER_CC2E
-
Timer input/output channel 2
-
LL_TIM_CHANNEL_CH2N
TIM_CCER_CC2NE
-
Timer complementary output channel 2
-
LL_TIM_CHANNEL_CH3
TIM_CCER_CC3E
-
Timer input/output channel 3
-
LL_TIM_CHANNEL_CH3N
TIM_CCER_CC3NE
-
Timer complementary output channel 3
-
LL_TIM_CHANNEL_CH4
TIM_CCER_CC4E
-
Timer input/output channel 4
-
LL_TIM_CHANNEL_CH4N
TIM_CCER_CC4NE
-
Timer complementary output channel 4
-
LL_TIM_CHANNEL_CH5
TIM_CCER_CC5E
-
Timer output channel 5
-
LL_TIM_CHANNEL_CH6
TIM_CCER_CC6E
-
Timer output channel 6
-
LL_LPTIM_CHANNEL_CH1
0x00000000U
Input Capture Prescaler ¶
- group LPTIM_LL_EC_LPTIM_IC_PRESCALER
-
Defines
-
LL_LPTIM_ICPSC_DIV1
0x00000000UL
¶
-
Capture performed each time an edge is detected on the capture input
-
LL_LPTIM_ICPSC_DIV2
LPTIM_CCMR1_IC1PSC_0
¶
-
Capture performed once every 2 events
-
LL_LPTIM_ICPSC_DIV4
LPTIM_CCMR1_IC1PSC_1
¶
-
Capture performed once every 4 events
-
LL_LPTIM_ICPSC_DIV8
(LPTIM_CCMR1_IC1PSC_0|LPTIM_CCMR1_IC1PSC_1)
¶
-
Capture performed once every 8 events
-
LL_LPTIM_ICPSC_DIV1
0x00000000UL
¶
- group LPTIM_LL_EC_LPTIM_IC_PRESCALER
-
Defines
-
LL_LPTIM_ICPSC_DIV1
0x00000000UL
-
Capture performed each time an edge is detected on the capture input
-
LL_LPTIM_ICPSC_DIV2
LPTIM_CCMR1_IC1PSC_0
-
Capture performed once every 2 events
-
LL_LPTIM_ICPSC_DIV4
LPTIM_CCMR1_IC1PSC_1
-
Capture performed once every 4 events
-
LL_LPTIM_ICPSC_DIV8
(LPTIM_CCMR1_IC1PSC_0|LPTIM_CCMR1_IC1PSC_1)
-
Capture performed once every 8 events
-
LL_LPTIM_ICPSC_DIV1
0x00000000UL
- group LPTIM_LL_EC_LPTIM_IC_PRESCALER
-
Defines
-
LL_LPTIM_ICPSC_DIV1
0x00000000UL
-
Capture performed each time an edge is detected on the capture input
-
LL_LPTIM_ICPSC_DIV2
LPTIM_CCMR1_IC1PSC_0
-
Capture performed once every 2 events
-
LL_LPTIM_ICPSC_DIV4
LPTIM_CCMR1_IC1PSC_1
-
Capture performed once every 4 events
-
LL_LPTIM_ICPSC_DIV8
(LPTIM_CCMR1_IC1PSC_0|LPTIM_CCMR1_IC1PSC_1)
-
Capture performed once every 8 events
-
LL_LPTIM_ICPSC_DIV1
0x00000000UL
Input Capture Filter ¶
- group LPTIM_LL_EC_LPTIM_IC_FILTER
-
Defines
-
LL_LPTIM_ICFLT_CLOCK_DIV1
0x00000000UL
¶
-
any external input capture signal level change is considered as a valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV2
LPTIM_CCMR1_IC1F_0
¶
-
external input capture signal level change must be stable for at least 2 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV4
LPTIM_CCMR1_IC1F_1
¶
-
external input capture signal level change must be stable for at least 4 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV8
(LPTIM_CCMR1_IC1F_0|LPTIM_CCMR1_IC1F_1)
¶
-
external input capture signal level change must be stable for at least 8 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV1
0x00000000UL
¶
- group LPTIM_LL_EC_LPTIM_IC_FILTER
-
Defines
-
LL_LPTIM_ICFLT_CLOCK_DIV1
0x00000000UL
-
any external input capture signal level change is considered as a valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV2
LPTIM_CCMR1_IC1F_0
-
external input capture signal level change must be stable for at least 2 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV4
LPTIM_CCMR1_IC1F_1
-
external input capture signal level change must be stable for at least 4 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV8
(LPTIM_CCMR1_IC1F_0|LPTIM_CCMR1_IC1F_1)
-
external input capture signal level change must be stable for at least 8 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV1
0x00000000UL
- group LPTIM_LL_EC_LPTIM_IC_FILTER
-
Defines
-
LL_LPTIM_ICFLT_CLOCK_DIV1
0x00000000UL
-
any external input capture signal level change is considered as a valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV2
LPTIM_CCMR1_IC1F_0
-
external input capture signal level change must be stable for at least 2 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV4
LPTIM_CCMR1_IC1F_1
-
external input capture signal level change must be stable for at least 4 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV8
(LPTIM_CCMR1_IC1F_0|LPTIM_CCMR1_IC1F_1)
-
external input capture signal level change must be stable for at least 8 clock periods before it is considered as valid transition
-
LL_LPTIM_ICFLT_CLOCK_DIV1
0x00000000UL
Input Capture Polarity ¶
- group LPTIM_LL_EC_LPTIM_IC_POLARITY
-
Defines
-
LL_LPTIM_ICPOLARITY_RISING
0x00000000UL
¶
-
Capture/Compare input rising polarity
-
LL_LPTIM_ICPOLARITY_FALLING
LPTIM_CCMR1_CC1P_0
¶
-
Capture/Compare input falling polarity
-
LL_LPTIM_ICPOLARITY_RISING_FALLING
(LPTIM_CCMR1_CC1P_0|LPTIM_CCMR1_CC1P_1)
¶
-
Capture/Compare input rising and falling polarities
-
LL_LPTIM_ICPOLARITY_RISING
0x00000000UL
¶
- group LPTIM_LL_EC_LPTIM_IC_POLARITY
-
Defines
-
LL_LPTIM_ICPOLARITY_RISING
0x00000000UL
-
Capture/Compare input rising polarity
-
LL_LPTIM_ICPOLARITY_FALLING
LPTIM_CCMR1_CC1P_0
-
Capture/Compare input falling polarity
-
LL_LPTIM_ICPOLARITY_RISING_FALLING
(LPTIM_CCMR1_CC1P_0|LPTIM_CCMR1_CC1P_1)
-
Capture/Compare input rising and falling polarities
-
LL_LPTIM_ICPOLARITY_RISING
0x00000000UL
- group LPTIM_LL_EC_LPTIM_IC_POLARITY
-
Defines
-
LL_LPTIM_ICPOLARITY_RISING
0x00000000UL
-
Capture/Compare input rising polarity
-
LL_LPTIM_ICPOLARITY_FALLING
LPTIM_CCMR1_CC1P_0
-
Capture/Compare input falling polarity
-
LL_LPTIM_ICPOLARITY_RISING_FALLING
(LPTIM_CCMR1_CC1P_0|LPTIM_CCMR1_CC1P_1)
-
Capture/Compare input rising and falling polarities
-
LL_LPTIM_ICPOLARITY_RISING
0x00000000UL
Input Capture selection ¶
- group LPTIM_LL_EC_LPTIM_IC_Selection
- group LPTIM_LL_EC_LPTIM_IC_Selection
-
Defines
-
LL_LPTIM_CCMODE_OUTPUT_PWM
0x00000000UL
-
Select PWM mode
-
LL_LPTIM_CCMODE_INPUTCAPTURE
LPTIM_CCMR1_CC1SEL
-
Select Input Capture mode
-
LL_LPTIM_CCMODE_OUTPUT_PWM
0x00000000UL
- group LPTIM_LL_EC_LPTIM_IC_Selection
-
Defines
-
LL_LPTIM_CCMODE_OUTPUT_PWM
0x00000000UL
-
Select PWM mode
-
LL_LPTIM_CCMODE_INPUTCAPTURE
LPTIM_CCMR1_CC1SEL
-
Select Input Capture mode
-
LL_LPTIM_CCMODE_OUTPUT_PWM
0x00000000UL
Prescaler Value ¶
- group LPTIM_LL_EC_PRESCALER
-
Defines
-
LL_LPTIM_PRESCALER_DIV1
0x00000000U
¶
-
Prescaler division factor is set to 1
-
LL_LPTIM_PRESCALER_DIV2
LPTIM_CFGR_PRESC_0
¶
-
Prescaler division factor is set to 2
-
LL_LPTIM_PRESCALER_DIV4
LPTIM_CFGR_PRESC_1
¶
-
Prescaler division factor is set to 4
-
LL_LPTIM_PRESCALER_DIV8
(LPTIM_CFGR_PRESC_1
|
LPTIM_CFGR_PRESC_0)
¶
-
Prescaler division factor is set to 8
-
LL_LPTIM_PRESCALER_DIV16
LPTIM_CFGR_PRESC_2
¶
-
Prescaler division factor is set to 16
-
LL_LPTIM_PRESCALER_DIV32
(LPTIM_CFGR_PRESC_2
|
LPTIM_CFGR_PRESC_0)
¶
-
Prescaler division factor is set to 32
-
LL_LPTIM_PRESCALER_DIV64
(LPTIM_CFGR_PRESC_2
|
LPTIM_CFGR_PRESC_1)
¶
-
Prescaler division factor is set to 64
-
LL_LPTIM_PRESCALER_DIV128
LPTIM_CFGR_PRESC
¶
-
Prescaler division factor is set to 128
-
LL_LPTIM_PRESCALER_DIV1
0x00000000U
¶
- group LPTIM_LL_EC_PRESCALER
-
Defines
-
LL_LPTIM_PRESCALER_DIV1
0x00000000U
-
Prescaler division factor is set to 1
-
LL_LPTIM_PRESCALER_DIV2
LPTIM_CFGR_PRESC_0
-
Prescaler division factor is set to 2
-
LL_LPTIM_PRESCALER_DIV4
LPTIM_CFGR_PRESC_1
-
Prescaler division factor is set to 4
-
LL_LPTIM_PRESCALER_DIV8
(LPTIM_CFGR_PRESC_1
|
LPTIM_CFGR_PRESC_0)
-
Prescaler division factor is set to 8
-
LL_LPTIM_PRESCALER_DIV16
LPTIM_CFGR_PRESC_2
-
Prescaler division factor is set to 16
-
LL_LPTIM_PRESCALER_DIV32
(LPTIM_CFGR_PRESC_2
|
LPTIM_CFGR_PRESC_0)
-
Prescaler division factor is set to 32
-
LL_LPTIM_PRESCALER_DIV64
(LPTIM_CFGR_PRESC_2
|
LPTIM_CFGR_PRESC_1)
-
Prescaler division factor is set to 64
-
LL_LPTIM_PRESCALER_DIV128
LPTIM_CFGR_PRESC
-
Prescaler division factor is set to 128
-
LL_LPTIM_PRESCALER_DIV1
0x00000000U
- group LPTIM_LL_EC_PRESCALER
-
Defines
-
LL_LPTIM_PRESCALER_DIV1
0x00000000U
-
Prescaler division factor is set to 1
-
LL_LPTIM_PRESCALER_DIV2
LPTIM_CFGR_PRESC_0
-
Prescaler division factor is set to 2
-
LL_LPTIM_PRESCALER_DIV4
LPTIM_CFGR_PRESC_1
-
Prescaler division factor is set to 4
-
LL_LPTIM_PRESCALER_DIV8
(LPTIM_CFGR_PRESC_1
|
LPTIM_CFGR_PRESC_0)
-
Prescaler division factor is set to 8
-
LL_LPTIM_PRESCALER_DIV16
LPTIM_CFGR_PRESC_2
-
Prescaler division factor is set to 16
-
LL_LPTIM_PRESCALER_DIV32
(LPTIM_CFGR_PRESC_2
|
LPTIM_CFGR_PRESC_0)
-
Prescaler division factor is set to 32
-
LL_LPTIM_PRESCALER_DIV64
(LPTIM_CFGR_PRESC_2
|
LPTIM_CFGR_PRESC_1)
-
Prescaler division factor is set to 64
-
LL_LPTIM_PRESCALER_DIV128
LPTIM_CFGR_PRESC
-
Prescaler division factor is set to 128
-
LL_LPTIM_PRESCALER_DIV1
0x00000000U
Trigger Source ¶
- group LPTIM_LL_EC_TRIG_SOURCE
-
Defines
-
LL_LPTIM_TRIG_SOURCE_GPIO
0x00000000U
¶
-
External input trigger is connected to TIMx_ETR input
-
LL_LPTIM_TRIG_SOURCE_RTCALARMA
LPTIM_CFGR_TRIGSEL_0
¶
-
External input trigger is connected to RTC Alarm A
-
LL_LPTIM_TRIG_SOURCE_RTCALARMB
LPTIM_CFGR_TRIGSEL_1
¶
-
External input trigger is connected to RTC Alarm B
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP1
(LPTIM_CFGR_TRIGSEL_1
|
LPTIM_CFGR_TRIGSEL_0)
¶
-
External input trigger is connected to RTC Tamper 1
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP2
LPTIM_CFGR_TRIGSEL_2
¶
-
External input trigger is connected to RTC Tamper 2
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP3
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
¶
-
External input trigger is connected to RTC Tamper 3
-
LL_LPTIM_TRIG_SOURCE_COMP1
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_1)
¶
-
External input trigger is connected to COMP1 output
-
LL_LPTIM_TRIG_SOURCE_COMP2
LPTIM_CFGR_TRIGSEL
¶
-
External input trigger is connected to COMP2 output
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH0_TCF
(LPTIM_CFGR_TRIGSEL_1
|
LPTIM_CFGR_TRIGSEL_0)
¶
-
External input trigger is connected to LPDMA CH0 transfer complete
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH1_TCF
LPTIM_CFGR_TRIGSEL_2
¶
-
External input trigger is connected to LPDMA CH1 transfer complete
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH2_TCF
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
¶
-
External input trigger is connected to LPDMA CH2 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPDMA_CH0_TCF
LPTIM_CFGR_TRIGSEL_2
¶
-
External input trigger is connected to GPDMA CH0 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPDMA_CH4_TCF
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
¶
-
External input trigger is connected to GPDMA CH4 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPIO
0x00000000U
¶
- group LPTIM_LL_EC_TRIG_SOURCE
-
Defines
-
LL_LPTIM_TRIG_SOURCE_GPIO
0x00000000U
-
External input trigger is connected to TIMx_ETR input
-
LL_LPTIM_TRIG_SOURCE_RTCALARMA
LPTIM_CFGR_TRIGSEL_0
-
External input trigger is connected to RTC Alarm A
-
LL_LPTIM_TRIG_SOURCE_RTCALARMB
LPTIM_CFGR_TRIGSEL_1
-
External input trigger is connected to RTC Alarm B
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP1
(LPTIM_CFGR_TRIGSEL_1
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to RTC Tamper 1
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP2
LPTIM_CFGR_TRIGSEL_2
-
External input trigger is connected to RTC Tamper 2
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP3
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to RTC Tamper 3
-
LL_LPTIM_TRIG_SOURCE_COMP1
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_1)
-
External input trigger is connected to COMP1 output
-
LL_LPTIM_TRIG_SOURCE_COMP2
LPTIM_CFGR_TRIGSEL
-
External input trigger is connected to COMP2 output
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH0_TCF
(LPTIM_CFGR_TRIGSEL_1
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to LPDMA CH0 transfer complete
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH1_TCF
LPTIM_CFGR_TRIGSEL_2
-
External input trigger is connected to LPDMA CH1 transfer complete
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH2_TCF
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to LPDMA CH2 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPDMA_CH0_TCF
LPTIM_CFGR_TRIGSEL_2
-
External input trigger is connected to GPDMA CH0 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPDMA_CH4_TCF
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to GPDMA CH4 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPIO
0x00000000U
- group LPTIM_LL_EC_TRIG_SOURCE
-
Defines
-
LL_LPTIM_TRIG_SOURCE_GPIO
0x00000000U
-
External input trigger is connected to TIMx_ETR input
-
LL_LPTIM_TRIG_SOURCE_RTCALARMA
LPTIM_CFGR_TRIGSEL_0
-
External input trigger is connected to RTC Alarm A
-
LL_LPTIM_TRIG_SOURCE_RTCALARMB
LPTIM_CFGR_TRIGSEL_1
-
External input trigger is connected to RTC Alarm B
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP1
(LPTIM_CFGR_TRIGSEL_1
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to RTC Tamper 1
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP2
LPTIM_CFGR_TRIGSEL_2
-
External input trigger is connected to RTC Tamper 2
-
LL_LPTIM_TRIG_SOURCE_RTCTAMP3
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to RTC Tamper 3
-
LL_LPTIM_TRIG_SOURCE_COMP1
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_1)
-
External input trigger is connected to COMP1 output
-
LL_LPTIM_TRIG_SOURCE_COMP2
LPTIM_CFGR_TRIGSEL
-
External input trigger is connected to COMP2 output
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH0_TCF
(LPTIM_CFGR_TRIGSEL_1
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to LPDMA CH0 transfer complete
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH1_TCF
LPTIM_CFGR_TRIGSEL_2
-
External input trigger is connected to LPDMA CH1 transfer complete
-
LL_LPTIM_TRIG_SOURCE_LPDMA_CH2_TCF
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to LPDMA CH2 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPDMA_CH0_TCF
LPTIM_CFGR_TRIGSEL_2
-
External input trigger is connected to GPDMA CH0 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPDMA_CH4_TCF
(LPTIM_CFGR_TRIGSEL_2
|
LPTIM_CFGR_TRIGSEL_0)
-
External input trigger is connected to GPDMA CH4 transfer complete
-
LL_LPTIM_TRIG_SOURCE_GPIO
0x00000000U
Trigger Filter ¶
- group LPTIM_LL_EC_TRIG_FILTER
-
Defines
-
LL_LPTIM_TRIG_FILTER_NONE
0x00000000U
¶
-
Any trigger active level change is considered as a valid trigger
-
LL_LPTIM_TRIG_FILTER_2
LPTIM_CFGR_TRGFLT_0
¶
-
Trigger active level change must be stable for at least 2 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_4
LPTIM_CFGR_TRGFLT_1
¶
-
Trigger active level change must be stable for at least 4 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_8
LPTIM_CFGR_TRGFLT
¶
-
Trigger active level change must be stable for at least 8 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_NONE
0x00000000U
¶
- group LPTIM_LL_EC_TRIG_FILTER
-
Defines
-
LL_LPTIM_TRIG_FILTER_NONE
0x00000000U
-
Any trigger active level change is considered as a valid trigger
-
LL_LPTIM_TRIG_FILTER_2
LPTIM_CFGR_TRGFLT_0
-
Trigger active level change must be stable for at least 2 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_4
LPTIM_CFGR_TRGFLT_1
-
Trigger active level change must be stable for at least 4 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_8
LPTIM_CFGR_TRGFLT
-
Trigger active level change must be stable for at least 8 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_NONE
0x00000000U
- group LPTIM_LL_EC_TRIG_FILTER
-
Defines
-
LL_LPTIM_TRIG_FILTER_NONE
0x00000000U
-
Any trigger active level change is considered as a valid trigger
-
LL_LPTIM_TRIG_FILTER_2
LPTIM_CFGR_TRGFLT_0
-
Trigger active level change must be stable for at least 2 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_4
LPTIM_CFGR_TRGFLT_1
-
Trigger active level change must be stable for at least 4 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_8
LPTIM_CFGR_TRGFLT
-
Trigger active level change must be stable for at least 8 clock periods before it is considered as valid trigger
-
LL_LPTIM_TRIG_FILTER_NONE
0x00000000U
Trigger Polarity ¶
- group LPTIM_LL_EC_TRIG_POLARITY
-
Defines
-
LL_LPTIM_TRIG_POLARITY_RISING
LPTIM_CFGR_TRIGEN_0
¶
-
LPTIM counter starts when a rising edge is detected
-
LL_LPTIM_TRIG_POLARITY_FALLING
LPTIM_CFGR_TRIGEN_1
¶
-
LPTIM counter starts when a falling edge is detected
-
LL_LPTIM_TRIG_POLARITY_RISING_FALLING
LPTIM_CFGR_TRIGEN
¶
-
LPTIM counter starts when a rising or a falling edge is detected
-
LL_LPTIM_TRIG_POLARITY_RISING
LPTIM_CFGR_TRIGEN_0
¶
- group LPTIM_LL_EC_TRIG_POLARITY
-
Defines
-
LL_LPTIM_TRIG_POLARITY_RISING
LPTIM_CFGR_TRIGEN_0
-
LPTIM counter starts when a rising edge is detected
-
LL_LPTIM_TRIG_POLARITY_FALLING
LPTIM_CFGR_TRIGEN_1
-
LPTIM counter starts when a falling edge is detected
-
LL_LPTIM_TRIG_POLARITY_RISING_FALLING
LPTIM_CFGR_TRIGEN
-
LPTIM counter starts when a rising or a falling edge is detected
-
LL_LPTIM_TRIG_POLARITY_RISING
LPTIM_CFGR_TRIGEN_0
- group LPTIM_LL_EC_TRIG_POLARITY
-
Defines
-
LL_LPTIM_TRIG_POLARITY_RISING
LPTIM_CFGR_TRIGEN_0
-
LPTIM counter starts when a rising edge is detected
-
LL_LPTIM_TRIG_POLARITY_FALLING
LPTIM_CFGR_TRIGEN_1
-
LPTIM counter starts when a falling edge is detected
-
LL_LPTIM_TRIG_POLARITY_RISING_FALLING
LPTIM_CFGR_TRIGEN
-
LPTIM counter starts when a rising or a falling edge is detected
-
LL_LPTIM_TRIG_POLARITY_RISING
LPTIM_CFGR_TRIGEN_0
Clock Source ¶
- group LPTIM_LL_EC_CLK_SOURCE
- group LPTIM_LL_EC_CLK_SOURCE
-
Defines
-
LL_LPTIM_CLK_SOURCE_INTERNAL
0x00000000U
-
LPTIM is clocked by internal clock source (APB clock or any of the embedded oscillators)
-
LL_LPTIM_CLK_SOURCE_EXTERNAL
LPTIM_CFGR_CKSEL
-
LPTIM is clocked by an external clock source through the LPTIM external Input1
-
LL_LPTIM_CLK_SOURCE_INTERNAL
0x00000000U
- group LPTIM_LL_EC_CLK_SOURCE
-
Defines
-
LL_LPTIM_CLK_SOURCE_INTERNAL
0x00000000U
-
LPTIM is clocked by internal clock source (APB clock or any of the embedded oscillators)
-
LL_LPTIM_CLK_SOURCE_EXTERNAL
LPTIM_CFGR_CKSEL
-
LPTIM is clocked by an external clock source through the LPTIM external Input1
-
LL_LPTIM_CLK_SOURCE_INTERNAL
0x00000000U
Clock Filter ¶
- group LPTIM_LL_EC_CLK_FILTER
-
Defines
-
LL_LPTIM_CLK_FILTER_NONE
0x00000000U
¶
-
Any external clock signal level change is considered as a valid transition
-
LL_LPTIM_CLK_FILTER_2
LPTIM_CFGR_CKFLT_0
¶
-
External clock signal level change must be stable for at least 2 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_4
LPTIM_CFGR_CKFLT_1
¶
-
External clock signal level change must be stable for at least 4 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_8
LPTIM_CFGR_CKFLT
¶
-
External clock signal level change must be stable for at least 8 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_NONE
0x00000000U
¶
- group LPTIM_LL_EC_CLK_FILTER
-
Defines
-
LL_LPTIM_CLK_FILTER_NONE
0x00000000U
-
Any external clock signal level change is considered as a valid transition
-
LL_LPTIM_CLK_FILTER_2
LPTIM_CFGR_CKFLT_0
-
External clock signal level change must be stable for at least 2 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_4
LPTIM_CFGR_CKFLT_1
-
External clock signal level change must be stable for at least 4 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_8
LPTIM_CFGR_CKFLT
-
External clock signal level change must be stable for at least 8 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_NONE
0x00000000U
- group LPTIM_LL_EC_CLK_FILTER
-
Defines
-
LL_LPTIM_CLK_FILTER_NONE
0x00000000U
-
Any external clock signal level change is considered as a valid transition
-
LL_LPTIM_CLK_FILTER_2
LPTIM_CFGR_CKFLT_0
-
External clock signal level change must be stable for at least 2 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_4
LPTIM_CFGR_CKFLT_1
-
External clock signal level change must be stable for at least 4 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_8
LPTIM_CFGR_CKFLT
-
External clock signal level change must be stable for at least 8 clock periods before it is considered as valid transition
-
LL_LPTIM_CLK_FILTER_NONE
0x00000000U
Clock Polarity ¶
- group LPTIM_LL_EC_CLK_POLARITY
- group LPTIM_LL_EC_CLK_POLARITY
-
Defines
-
LL_LPTIM_CLK_POLARITY_RISING
0x00000000U
-
The rising edge is the active edge used for counting
-
LL_LPTIM_CLK_POLARITY_FALLING
LPTIM_CFGR_CKPOL_0
-
The falling edge is the active edge used for counting
-
LL_LPTIM_CLK_POLARITY_RISING_FALLING
LPTIM_CFGR_CKPOL_1
-
Both edges are active edges
-
LL_LPTIM_CLK_POLARITY_RISING
0x00000000U
- group LPTIM_LL_EC_CLK_POLARITY
-
Defines
-
LL_LPTIM_CLK_POLARITY_RISING
0x00000000U
-
The rising edge is the active edge used for counting
-
LL_LPTIM_CLK_POLARITY_FALLING
LPTIM_CFGR_CKPOL_0
-
The falling edge is the active edge used for counting
-
LL_LPTIM_CLK_POLARITY_RISING_FALLING
LPTIM_CFGR_CKPOL_1
-
Both edges are active edges
-
LL_LPTIM_CLK_POLARITY_RISING
0x00000000U
Encoder Mode ¶
- group LPTIM_LL_EC_ENCODER_MODE
- group LPTIM_LL_EC_ENCODER_MODE
-
Defines
-
LL_LPTIM_ENCODER_MODE_RISING
0x00000000U
-
The rising edge is the active edge used for counting
-
LL_LPTIM_ENCODER_MODE_FALLING
LPTIM_CFGR_CKPOL_0
-
The falling edge is the active edge used for counting
-
LL_LPTIM_ENCODER_MODE_RISING_FALLING
LPTIM_CFGR_CKPOL_1
-
Both edges are active edges
-
LL_LPTIM_ENCODER_MODE_RISING
0x00000000U
- group LPTIM_LL_EC_ENCODER_MODE
-
Defines
-
LL_LPTIM_ENCODER_MODE_RISING
0x00000000U
-
The rising edge is the active edge used for counting
-
LL_LPTIM_ENCODER_MODE_FALLING
LPTIM_CFGR_CKPOL_0
-
The falling edge is the active edge used for counting
-
LL_LPTIM_ENCODER_MODE_RISING_FALLING
LPTIM_CFGR_CKPOL_1
-
Both edges are active edges
-
LL_LPTIM_ENCODER_MODE_RISING
0x00000000U
Encoder Mode Enable ¶
- group LPTIM_LL_EC_ENCODER_MODE_ENABLE
-
Defines
-
LL_LPTIM_ENCODER_MODE_ENABLE
LPTIM_CFGR_ENC
¶
-
LL_LPTIM_ENCODER_MODE_DISABLE
(~
LL_LPTIM_ENCODER_MODE_ENABLE
)
¶
-
LL_LPTIM_ENCODER_MODE_ENABLE
LPTIM_CFGR_ENC
¶
- group LPTIM_LL_EC_ENCODER_MODE_ENABLE
-
Defines
-
LL_LPTIM_ENCODER_MODE_ENABLE
LPTIM_CFGR_ENC
-
LL_LPTIM_ENCODER_MODE_DISABLE
(~
LL_LPTIM_ENCODER_MODE_ENABLE
)
-
LL_LPTIM_ENCODER_MODE_ENABLE
LPTIM_CFGR_ENC
- group LPTIM_LL_EC_ENCODER_MODE_ENABLE
-
Defines
-
LL_LPTIM_ENCODER_MODE_ENABLE
LPTIM_CFGR_ENC
-
LL_LPTIM_ENCODER_MODE_DISABLE
(~
LL_LPTIM_ENCODER_MODE_ENABLE
)
-
LL_LPTIM_ENCODER_MODE_ENABLE
LPTIM_CFGR_ENC
Input1 Source ¶
- group LPTIM_EC_INPUT1_SRC
- group LPTIM_EC_INPUT1_SRC
-
Defines
-
LL_LPTIM_INPUT1_SRC_GPIO
0x00000000UL
-
For LPTIM1, LPTIM2, LPTIM3 and LPTIM4
-
LL_LPTIM_INPUT1_SRC_COMP1
LPTIM_CFGR2_IN1SEL_0
-
For LPTIM1, LPTIM2, LPTIM3 and LPTIM4
-
LL_LPTIM_INPUT1_SRC_GPIO
0x00000000UL
- group LPTIM_EC_INPUT1_SRC
-
Defines
-
LL_LPTIM_INPUT1_SRC_GPIO
0x00000000UL
-
For LPTIM1, LPTIM2, LPTIM3 and LPTIM4
-
LL_LPTIM_INPUT1_SRC_COMP1
LPTIM_CFGR2_IN1SEL_0
-
For LPTIM1, LPTIM2, LPTIM3 and LPTIM4
-
LL_LPTIM_INPUT1_SRC_GPIO
0x00000000UL
Input2 Source ¶
- group LPTIM_EC_INPUT2_SRC
- group LPTIM_EC_INPUT2_SRC
-
Defines
-
LL_LPTIM_INPUT2_SRC_GPIO
0x00000000UL
-
For LPTIM1 and LPTIM2
-
LL_LPTIM_INPUT2_SRC_COMP2
LPTIM_CFGR2_IN2SEL_0
-
For LPTIM1 and LPTIM2
-
LL_LPTIM_INPUT2_SRC_GPIO
0x00000000UL
- group LPTIM_EC_INPUT2_SRC
-
Defines
-
LL_LPTIM_INPUT2_SRC_GPIO
0x00000000UL
-
For LPTIM1 and LPTIM2
-
LL_LPTIM_INPUT2_SRC_COMP2
LPTIM_CFGR2_IN2SEL_0
-
For LPTIM1 and LPTIM2
-
LL_LPTIM_INPUT2_SRC_GPIO
0x00000000UL
LPTIM1 Input Ch1 Remap ¶
- group LPTIM_EC_LPTIM1_IC1_RMP
- group LPTIM_EC_LPTIM1_IC1_RMP
-
Defines
-
LL_LPTIM_LPTIM1_IC1_RMP_GPIO
0x00000000UL
-
IC1 connected to GPIO
-
LL_LPTIM_LPTIM1_IC1_RMP_COMP1
LPTIM_CFGR2_IC1SEL_0
-
IC1 connected to COMP1
-
LL_LPTIM_LPTIM1_IC1_RMP_COMP2
LPTIM_CFGR2_IC1SEL_1
-
IC1 connected to COMP2
-
LL_LPTIM_LPTIM1_IC1_RMP_GPIO
0x00000000UL
- group LPTIM_EC_LPTIM1_IC1_RMP
-
Defines
-
LL_LPTIM_LPTIM1_IC1_RMP_GPIO
0x00000000UL
-
IC1 connected to GPIO
-
LL_LPTIM_LPTIM1_IC1_RMP_COMP1
LPTIM_CFGR2_IC1SEL_0
-
IC1 connected to COMP1
-
LL_LPTIM_LPTIM1_IC1_RMP_COMP2
LPTIM_CFGR2_IC1SEL_1
-
IC1 connected to COMP2
-
LL_LPTIM_LPTIM1_IC1_RMP_GPIO
0x00000000UL
LPTIM1 Input Ch2 Remap ¶
- group LPTIM_EC_LPTIM1_IC2_RMP
- group LPTIM_EC_LPTIM1_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM1_IC2_RMP_GPIO
0x00000000UL
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM1_IC2_RMP_LSI
LPTIM_CFGR2_IC2SEL_0
-
IC2 connected to LSI
-
LL_LPTIM_LPTIM1_IC2_RMP_LSE
LPTIM_CFGR2_IC2SEL_1
-
IC2 connected to LSE
-
LL_LPTIM_LPTIM1_IC2_RMP_GPIO
0x00000000UL
- group LPTIM_EC_LPTIM1_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM1_IC2_RMP_GPIO
0x00000000UL
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM1_IC2_RMP_LSI
LPTIM_CFGR2_IC2SEL_0
-
IC2 connected to LSI
-
LL_LPTIM_LPTIM1_IC2_RMP_LSE
LPTIM_CFGR2_IC2SEL_1
-
IC2 connected to LSE
-
LL_LPTIM_LPTIM1_IC2_RMP_GPIO
0x00000000UL
LPTIM2 Input Ch1 Remap ¶
- group LPTIM_EC_LPTIM2_IC1_RMP
- group LPTIM_EC_LPTIM2_IC1_RMP
-
Defines
-
LL_LPTIM_LPTIM2_IC1_RMP_GPIO
0x00000000UL
-
IC1 connected to GPIO
-
LL_LPTIM_LPTIM2_IC1_RMP_COMP1
LPTIM_CFGR2_IC1SEL_0
-
IC1 connected to COMP1
-
LL_LPTIM_LPTIM2_IC1_RMP_COMP2
LPTIM_CFGR2_IC1SEL_1
-
IC1 connected to COMP2
-
LL_LPTIM_LPTIM2_IC1_RMP_GPIO
0x00000000UL
- group LPTIM_EC_LPTIM2_IC1_RMP
-
Defines
-
LL_LPTIM_LPTIM2_IC1_RMP_GPIO
0x00000000UL
-
IC1 connected to GPIO
-
LL_LPTIM_LPTIM2_IC1_RMP_COMP1
LPTIM_CFGR2_IC1SEL_0
-
IC1 connected to COMP1
-
LL_LPTIM_LPTIM2_IC1_RMP_COMP2
LPTIM_CFGR2_IC1SEL_1
-
IC1 connected to COMP2
-
LL_LPTIM_LPTIM2_IC1_RMP_GPIO
0x00000000UL
LPTIM2 Input Ch2 Remap ¶
- group LPTIM_EC_LPTIM2_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM2_IC2_RMP_GPIO
0x00000000UL
¶
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM2_IC2_RMP_HSI
LPTIM_CFGR2_IC2SEL_0
¶
-
IC2 connected to HSI
-
LL_LPTIM_LPTIM2_IC2_RMP_MSIS_1024
LPTIM_CFGR2_IC2SEL_1
¶
-
IC2 connected to MSIS/1024
-
LL_LPTIM_LPTIM2_IC2_RMP_MSIS_4
(LPTIM_CFGR2_IC2SEL_1|LPTIM_CFGR2_IC2SEL_0)
¶
-
IC2 connected to MSIS/4
-
LL_LPTIM_LPTIM2_IC2_RMP_GPIO
0x00000000UL
¶
- group LPTIM_EC_LPTIM2_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM2_IC2_RMP_GPIO
0x00000000UL
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM2_IC2_RMP_HSI
LPTIM_CFGR2_IC2SEL_0
-
IC2 connected to HSI
-
LL_LPTIM_LPTIM2_IC2_RMP_MSIS_1024
LPTIM_CFGR2_IC2SEL_1
-
IC2 connected to MSIS/1024
-
LL_LPTIM_LPTIM2_IC2_RMP_MSIS_4
(LPTIM_CFGR2_IC2SEL_1|LPTIM_CFGR2_IC2SEL_0)
-
IC2 connected to MSIS/4
-
LL_LPTIM_LPTIM2_IC2_RMP_GPIO
0x00000000UL
- group LPTIM_EC_LPTIM2_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM2_IC2_RMP_GPIO
0x00000000UL
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM2_IC2_RMP_HSI
LPTIM_CFGR2_IC2SEL_0
-
IC2 connected to HSI
-
LL_LPTIM_LPTIM2_IC2_RMP_MSIS_1024
LPTIM_CFGR2_IC2SEL_1
-
IC2 connected to MSIS/1024
-
LL_LPTIM_LPTIM2_IC2_RMP_MSIS_4
(LPTIM_CFGR2_IC2SEL_1|LPTIM_CFGR2_IC2SEL_0)
-
IC2 connected to MSIS/4
-
LL_LPTIM_LPTIM2_IC2_RMP_GPIO
0x00000000UL
LPTIM3 Input Ch1 Remap ¶
- group LPTIM_EC_LPTIM3_IC1_RMP
- group LPTIM_EC_LPTIM3_IC1_RMP
-
Defines
-
LL_LPTIM_LPTIM3_IC1_RMP_GPIO
0x00000000UL
-
IC1 connected to GPIO
-
LL_LPTIM_LPTIM3_IC1_RMP_COMP1
LPTIM_CFGR2_IC1SEL_0
-
IC1 connected to COMP1
-
LL_LPTIM_LPTIM3_IC1_RMP_COMP2
LPTIM_CFGR2_IC1SEL_1
-
IC1 connected to COMP2
-
LL_LPTIM_LPTIM3_IC1_RMP_GPIO
0x00000000UL
- group LPTIM_EC_LPTIM3_IC1_RMP
-
Defines
-
LL_LPTIM_LPTIM3_IC1_RMP_GPIO
0x00000000UL
-
IC1 connected to GPIO
-
LL_LPTIM_LPTIM3_IC1_RMP_COMP1
LPTIM_CFGR2_IC1SEL_0
-
IC1 connected to COMP1
-
LL_LPTIM_LPTIM3_IC1_RMP_COMP2
LPTIM_CFGR2_IC1SEL_1
-
IC1 connected to COMP2
-
LL_LPTIM_LPTIM3_IC1_RMP_GPIO
0x00000000UL
LPTIM3 Input Ch2 Remap ¶
- group LPTIM_EC_LPTIM3_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM3_IC2_RMP_GPIO
0x00000000UL
¶
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM3_IC2_RMP_GPIO
0x00000000UL
¶
- group LPTIM_EC_LPTIM3_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM3_IC2_RMP_GPIO
0x00000000UL
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM3_IC2_RMP_GPIO
0x00000000UL
- group LPTIM_EC_LPTIM3_IC2_RMP
-
Defines
-
LL_LPTIM_LPTIM3_IC2_RMP_GPIO
0x00000000UL
-
IC2 connected to GPIO
-
LL_LPTIM_LPTIM3_IC2_RMP_GPIO
0x00000000UL
LL LPTIM Macros ¶
- group LPTIM_LL_Exported_Macros
-
Defines
-
LL_LPTIM_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
¶
-
Write a value in LPTIM register.
- Parameters :
-
-
instance – LPTIM Instance
-
reg – Register to be written
-
value – Value to be written in the register
-
-
LL_LPTIM_READ_REG
(
instance
,
reg
)
STM32_READ_REG((instance)->reg)
¶
-
Read a value in LPTIM register.
- Parameters :
-
-
instance – LPTIM Instance
-
reg – Register to be read
-
- Return values :
-
Register – value
-
LL_LPTIM_IC_GET_OFFSET
(
__PSC__
,
__FLT__
)
LL_LPTIM_OFFSET_TAB_ICx\
[((__PSC__) & LPTIM_CFGR_PRESC_Msk) >> LPTIM_CFGR_PRESC_Pos]\
[((__FLT__) & LPTIM_CCMR1_IC1F_Msk) >> LPTIM_CCMR1_IC1F_Pos]
¶
-
LPTimer Input Capture Get Offset(in counter step unit)
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 The Offset value is depending on the glitch filter value for the channel and the value of the prescaler for the kernel clock. Please check Errata Sheet V1_8 for more details under “variable latency
on input capture channel” section.
- Parameters :
-
-
__PSC__ – This parameter can be one of the following values:
-
__FLT__ – This parameter can be one of the following values:
-
- Return values :
-
offset – value
-
LL_LPTIM_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
¶
- group LPTIM_LL_Exported_Macros
-
Defines
-
LL_LPTIM_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
-
Write a value in LPTIM register.
- Parameters :
-
-
instance – LPTIM Instance
-
reg – Register to be written
-
value – Value to be written in the register
-
-
LL_LPTIM_READ_REG
(
instance
,
reg
)
STM32_READ_REG((instance)->reg)
-
Read a value in LPTIM register.
- Parameters :
-
-
instance – LPTIM Instance
-
reg – Register to be read
-
- Return values :
-
Register – value
-
LL_LPTIM_IC_GET_OFFSET
(
__PSC__
,
__FLT__
)
LL_LPTIM_OFFSET_TAB_ICx\
[((__PSC__) & LPTIM_CFGR_PRESC_Msk) >> LPTIM_CFGR_PRESC_Pos]\
[((__FLT__) & LPTIM_CCMR1_IC1F_Msk) >> LPTIM_CCMR1_IC1F_Pos]
-
LPTimer Input Capture Get Offset(in counter step unit)
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 The Offset value is depending on the glitch filter value for the channel and the value of the prescaler for the kernel clock. Please check Errata Sheet V1_8 for more details under “variable latency
on input capture channel” section.
- Parameters :
-
-
__PSC__ – This parameter can be one of the following values:
-
__FLT__ – This parameter can be one of the following values:
-
- Return values :
-
offset – value
-
LL_LPTIM_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
- group LPTIM_LL_Exported_Macros
-
Defines
-
LL_LPTIM_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
-
Write a value in LPTIM register.
- Parameters :
-
-
instance – LPTIM Instance
-
reg – Register to be written
-
value – Value to be written in the register
-
-
LL_LPTIM_READ_REG
(
instance
,
reg
)
STM32_READ_REG((instance)->reg)
-
Read a value in LPTIM register.
- Parameters :
-
-
instance – LPTIM Instance
-
reg – Register to be read
-
- Return values :
-
Register – value
-
LL_LPTIM_IC_GET_OFFSET
(
__PSC__
,
__FLT__
)
LL_LPTIM_OFFSET_TAB_ICx\
[((__PSC__) & LPTIM_CFGR_PRESC_Msk) >> LPTIM_CFGR_PRESC_Pos]\
[((__FLT__) & LPTIM_CCMR1_IC1F_Msk) >> LPTIM_CCMR1_IC1F_Pos]
-
LPTimer Input Capture Get Offset(in counter step unit)
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 The Offset value is depending on the glitch filter value for the channel and the value of the prescaler for the kernel clock. Please check Errata Sheet V1_8 for more details under “variable latency
on input capture channel” section.
- Parameters :
-
-
__PSC__ – This parameter can be one of the following values:
-
__FLT__ – This parameter can be one of the following values:
-
- Return values :
-
offset – value
-
LL_LPTIM_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
LL LPTIM Functions ¶
- group LPTIM_LL_Exported_Functions
-
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)
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:
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:
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).
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).
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).
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_Enable
(
LPTIM_TypeDef
*
lptimx
)
¶
- group LPTIM_LL_Exported_Functions
-
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)
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:
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:
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).
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).
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).
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_Enable
(
LPTIM_TypeDef
*
lptimx
)
- group LPTIM_LL_Exported_Functions
-
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)
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:
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:
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).
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).
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).
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_Enable
(
LPTIM_TypeDef
*
lptimx
)