STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_RTC_TAMPER_Enable (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Enable TAMPx input detection TAMP_CR1 TAMP1E LL_RTC_TAMPER_Enable
TAMP_CR1 TAMP2E LL_RTC_TAMPER_Enable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Disable (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Clear TAMPx input detection TAMP_CR1 TAMP1E LL_RTC_TAMPER_Disable
TAMP_CR1 TAMP2E LL_RTC_TAMPER_Disable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableMask (TAMP_TypeDef *TAMPx, uint32_t Mask)
 Enable Tamper mask flag. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableMask (TAMP_TypeDef *TAMPx, uint32_t Mask)
 Disable Tamper mask flag TAMP_CR2 TAMP1MF LL_RTC_TAMPER_DisableMask
TAMP_CR2 TAMP2MF LL_RTC_TAMPER_DisableMask. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Enable backup register erase after Tamper event detection TAMP_CR2 TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMP_CR2 TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableEraseBKP (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Disable backup register erase after Tamper event detection TAMP_CR2 TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMP_CR2 TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp (TAMP_TypeDef *TAMPx)
 Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) TAMP_FLTCR TAMPPUDIS LL_RTC_TAMPER_DisablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp (TAMP_TypeDef *TAMPx)
 Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling) TAMP_FLTCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge (TAMP_TypeDef *TAMPx, uint32_t Duration)
 Set RTC_TAMPx precharge duration TAMP_FLTCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge (TAMP_TypeDef *TAMPx)
 Get RTC_TAMPx precharge duration TAMP_FLTCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount (TAMP_TypeDef *TAMPx, uint32_t FilterCount)
 Set RTC_TAMPx filter count TAMP_FLTCR TAMPFLT LL_RTC_TAMPER_SetFilterCount. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount (TAMP_TypeDef *TAMPx)
 Get RTC_TAMPx filter count TAMP_FLTCR TAMPFLT LL_RTC_TAMPER_GetFilterCount. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq (TAMP_TypeDef *TAMPx, uint32_t SamplingFreq)
 Set Tamper sampling frequency TAMP_FLTCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq (TAMP_TypeDef *TAMPx)
 Get Tamper sampling frequency TAMP_FLTCR TAMPFREQ LL_RTC_TAMPER_GetSamplingFreq. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Enable Active level for Tamper input TAMP_CR2 TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAMP_CR2 TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Disable Active level for Tamper input TAMP_CR2 TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAMP_CR2 TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Enable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable RTC_TAMPx input detection TAMPCR TAMP1E LL_RTC_TAMPER_Enable
TAMPCR TAMP2E LL_RTC_TAMPER_Enable
TAMPCR TAMP3E LL_RTC_TAMPER_Enable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Disable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Clear RTC_TAMPx input detection TAMPCR TAMP1E LL_RTC_TAMPER_Disable
TAMPCR TAMP2E LL_RTC_TAMPER_Disable
TAMPCR TAMP3E LL_RTC_TAMPER_Disable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Enable Tamper mask flag. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Disable Tamper mask flag TAMPCR TAMP1MF LL_RTC_TAMPER_DisableMask
TAMPCR TAMP2MF LL_RTC_TAMPER_DisableMask
TAMPCR TAMP3MF LL_RTC_TAMPER_DisableMask. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable backup register erase after Tamper event detection TAMPCR TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMPCR TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMPCR TAMP3NOERASE LL_RTC_TAMPER_EnableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableEraseBKP (RTC_TypeDef *RTCx, uint32_t Tamper)
 Disable backup register erase after Tamper event detection TAMPCR TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMPCR TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMPCR TAMP3NOERASE LL_RTC_TAMPER_DisableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp (RTC_TypeDef *RTCx)
 Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) TAMPCR TAMPPUDIS LL_RTC_TAMPER_DisablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp (RTC_TypeDef *RTCx)
 Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling) TAMPCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge (RTC_TypeDef *RTCx, uint32_t Duration)
 Set RTC_TAMPx precharge duration TAMPCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge (RTC_TypeDef *RTCx)
 Get RTC_TAMPx precharge duration TAMPCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount (RTC_TypeDef *RTCx, uint32_t FilterCount)
 Set RTC_TAMPx filter count TAMPCR TAMPFLT LL_RTC_TAMPER_SetFilterCount. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount (RTC_TypeDef *RTCx)
 Get RTC_TAMPx filter count TAMPCR TAMPFLT LL_RTC_TAMPER_GetFilterCount. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq (RTC_TypeDef *RTCx, uint32_t SamplingFreq)
 Set Tamper sampling frequency TAMPCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq (RTC_TypeDef *RTCx)
 Get Tamper sampling frequency TAMPCR TAMPFREQ LL_RTC_TAMPER_GetSamplingFreq. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable Active level for Tamper input TAMPCR TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAMPCR TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel
TAMPCR TAMP3TRG LL_RTC_TAMPER_EnableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Disable Active level for Tamper input TAMPCR TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAMPCR TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel
TAMPCR TAMP3TRG LL_RTC_TAMPER_DisableActiveLevel. More...
 

Detailed Description

Function Documentation

◆ LL_RTC_TAMPER_Disable() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_Disable ( TAMP_TypeDef *  TAMPx,
uint32_t  Tamper 
)

Clear TAMPx input detection TAMP_CR1 TAMP1E LL_RTC_TAMPER_Disable
TAMP_CR1 TAMP2E LL_RTC_TAMPER_Disable.

Parameters
TAMPxTAMP Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_1
  • LL_RTC_TAMPER_2
Return values
None

Definition at line 3203 of file stm32l4xx_ll_rtc.h.

3204 {
3205  CLEAR_BIT(TAMPx->CR1, Tamper);
3206 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_Disable() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_Disable ( RTC_TypeDef *  RTCx,
uint32_t  Tamper 
)

Clear RTC_TAMPx input detection TAMPCR TAMP1E LL_RTC_TAMPER_Disable
TAMPCR TAMP2E LL_RTC_TAMPER_Disable
TAMPCR TAMP3E LL_RTC_TAMPER_Disable.

Parameters
RTCxRTC Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_1
  • LL_RTC_TAMPER_2
  • LL_RTC_TAMPER_3
Return values
None

Definition at line 4114 of file stm32l4xx_ll_rtc.h.

4115 {
4116  CLEAR_BIT(RTCx->TAMPCR, Tamper);
4117 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_DisableActiveLevel() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel ( TAMP_TypeDef *  TAMPx,
uint32_t  Tamper 
)

Disable Active level for Tamper input TAMP_CR2 TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAMP_CR2 TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel.

Parameters
TAMPxTAMP Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP1
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP2
Return values
None

Definition at line 3423 of file stm32l4xx_ll_rtc.h.

3424 {
3425  CLEAR_BIT(TAMPx->CR2, Tamper);
3426 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_DisableActiveLevel() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel ( RTC_TypeDef *  RTCx,
uint32_t  Tamper 
)

Disable Active level for Tamper input TAMPCR TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAMPCR TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel
TAMPCR TAMP3TRG LL_RTC_TAMPER_DisableActiveLevel.

Parameters
RTCxRTC Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP1
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP2
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP3
Return values
None

Definition at line 4354 of file stm32l4xx_ll_rtc.h.

4355 {
4356  CLEAR_BIT(RTCx->TAMPCR, Tamper);
4357 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_DisableEraseBKP() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisableEraseBKP ( TAMP_TypeDef *  TAMPx,
uint32_t  Tamper 
)

Disable backup register erase after Tamper event detection TAMP_CR2 TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMP_CR2 TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP.

Parameters
TAMPxTAMP Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_NOERASE_TAMPER1
  • LL_RTC_TAMPER_NOERASE_TAMPER2
Return values
None

Definition at line 3268 of file stm32l4xx_ll_rtc.h.

3269 {
3270  SET_BIT(TAMPx->CR2, Tamper);
3271 }

◆ LL_RTC_TAMPER_DisableEraseBKP() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisableEraseBKP ( RTC_TypeDef *  RTCx,
uint32_t  Tamper 
)

Disable backup register erase after Tamper event detection TAMPCR TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMPCR TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMPCR TAMP3NOERASE LL_RTC_TAMPER_DisableEraseBKP.

Parameters
RTCxRTC Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_NOERASE_TAMPER1
  • LL_RTC_TAMPER_NOERASE_TAMPER2
  • LL_RTC_TAMPER_NOERASE_TAMPER3
Return values
None

Definition at line 4187 of file stm32l4xx_ll_rtc.h.

4188 {
4189  SET_BIT(RTCx->TAMPCR, Tamper);
4190 }

◆ LL_RTC_TAMPER_DisableMask() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisableMask ( TAMP_TypeDef *  TAMPx,
uint32_t  Mask 
)

Disable Tamper mask flag TAMP_CR2 TAMP1MF LL_RTC_TAMPER_DisableMask
TAMP_CR2 TAMP2MF LL_RTC_TAMPER_DisableMask.

Parameters
TAMPxTAMP Instance
MaskThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_MASK_TAMPER1
  • LL_RTC_TAMPER_MASK_TAMPER2
Return values
None

Definition at line 3236 of file stm32l4xx_ll_rtc.h.

3237 {
3238  CLEAR_BIT(TAMPx->CR2, Mask);
3239 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_DisableMask() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisableMask ( RTC_TypeDef *  RTCx,
uint32_t  Mask 
)

Disable Tamper mask flag TAMPCR TAMP1MF LL_RTC_TAMPER_DisableMask
TAMPCR TAMP2MF LL_RTC_TAMPER_DisableMask
TAMPCR TAMP3MF LL_RTC_TAMPER_DisableMask.

Parameters
RTCxRTC Instance
MaskThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_MASK_TAMPER1
  • LL_RTC_TAMPER_MASK_TAMPER2
  • LL_RTC_TAMPER_MASK_TAMPER3
Return values
None

Definition at line 4151 of file stm32l4xx_ll_rtc.h.

4152 {
4153  CLEAR_BIT(RTCx->TAMPCR, Mask);
4154 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_DisablePullUp() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp ( TAMP_TypeDef *  TAMPx)

Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) TAMP_FLTCR TAMPPUDIS LL_RTC_TAMPER_DisablePullUp.

Parameters
TAMPxTAMP Instance
Return values
None

Definition at line 3279 of file stm32l4xx_ll_rtc.h.

3280 {
3281  SET_BIT(TAMPx->FLTCR, TAMP_FLTCR_TAMPPUDIS);
3282 }

◆ LL_RTC_TAMPER_DisablePullUp() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp ( RTC_TypeDef *  RTCx)

Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) TAMPCR TAMPPUDIS LL_RTC_TAMPER_DisablePullUp.

Parameters
RTCxRTC Instance
Return values
None

Definition at line 4199 of file stm32l4xx_ll_rtc.h.

4200 {
4201  SET_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPPUDIS);
4202 }

◆ LL_RTC_TAMPER_Enable() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_Enable ( TAMP_TypeDef *  TAMPx,
uint32_t  Tamper 
)

Enable TAMPx input detection TAMP_CR1 TAMP1E LL_RTC_TAMPER_Enable
TAMP_CR1 TAMP2E LL_RTC_TAMPER_Enable.

Parameters
TAMPxTAMP Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_1
  • LL_RTC_TAMPER_2
Return values
None

Definition at line 3187 of file stm32l4xx_ll_rtc.h.

3188 {
3189  SET_BIT(TAMPx->CR1, Tamper);
3190 }

◆ LL_RTC_TAMPER_Enable() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_Enable ( RTC_TypeDef *  RTCx,
uint32_t  Tamper 
)

Enable RTC_TAMPx input detection TAMPCR TAMP1E LL_RTC_TAMPER_Enable
TAMPCR TAMP2E LL_RTC_TAMPER_Enable
TAMPCR TAMP3E LL_RTC_TAMPER_Enable.

Parameters
RTCxRTC Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_1
  • LL_RTC_TAMPER_2
  • LL_RTC_TAMPER_3
Return values
None

Definition at line 4096 of file stm32l4xx_ll_rtc.h.

4097 {
4098  SET_BIT(RTCx->TAMPCR, Tamper);
4099 }

◆ LL_RTC_TAMPER_EnableActiveLevel() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel ( TAMP_TypeDef *  TAMPx,
uint32_t  Tamper 
)

Enable Active level for Tamper input TAMP_CR2 TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAMP_CR2 TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel.

Parameters
TAMPxTAMP Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP1
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP2
Return values
None

Definition at line 3407 of file stm32l4xx_ll_rtc.h.

3408 {
3409  SET_BIT(TAMPx->CR2, Tamper);
3410 }

◆ LL_RTC_TAMPER_EnableActiveLevel() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel ( RTC_TypeDef *  RTCx,
uint32_t  Tamper 
)

Enable Active level for Tamper input TAMPCR TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAMPCR TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel
TAMPCR TAMP3TRG LL_RTC_TAMPER_EnableActiveLevel.

Parameters
RTCxRTC Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP1
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP2
  • LL_RTC_TAMPER_ACTIVELEVEL_TAMP3
Return values
None

Definition at line 4336 of file stm32l4xx_ll_rtc.h.

4337 {
4338  SET_BIT(RTCx->TAMPCR, Tamper);
4339 }

◆ LL_RTC_TAMPER_EnableEraseBKP() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP ( TAMP_TypeDef *  TAMPx,
uint32_t  Tamper 
)

Enable backup register erase after Tamper event detection TAMP_CR2 TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMP_CR2 TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP.

Parameters
TAMPxTAMP Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_NOERASE_TAMPER1
  • LL_RTC_TAMPER_NOERASE_TAMPER2
Return values
None

Definition at line 3252 of file stm32l4xx_ll_rtc.h.

3253 {
3254  CLEAR_BIT(TAMPx->CR2, Tamper);
3255 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_EnableEraseBKP() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP ( RTC_TypeDef *  RTCx,
uint32_t  Tamper 
)

Enable backup register erase after Tamper event detection TAMPCR TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMPCR TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMPCR TAMP3NOERASE LL_RTC_TAMPER_EnableEraseBKP.

Parameters
RTCxRTC Instance
TamperThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_NOERASE_TAMPER1
  • LL_RTC_TAMPER_NOERASE_TAMPER2
  • LL_RTC_TAMPER_NOERASE_TAMPER3
Return values
None

Definition at line 4169 of file stm32l4xx_ll_rtc.h.

4170 {
4171  CLEAR_BIT(RTCx->TAMPCR, Tamper);
4172 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_EnableMask() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnableMask ( TAMP_TypeDef *  TAMPx,
uint32_t  Mask 
)

Enable Tamper mask flag.

Note
Associated Tamper IT must not enabled when tamper mask is set. TAMP_CR2 TAMP1MF LL_RTC_TAMPER_EnableMask
TAMP_CR2 TAMP2MF LL_RTC_TAMPER_EnableMask
Parameters
TAMPxTAMP Instance
MaskThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_MASK_TAMPER1
  • LL_RTC_TAMPER_MASK_TAMPER2
Return values
None

Definition at line 3220 of file stm32l4xx_ll_rtc.h.

3221 {
3222  SET_BIT(TAMPx->CR2, Mask);
3223 }

◆ LL_RTC_TAMPER_EnableMask() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnableMask ( RTC_TypeDef *  RTCx,
uint32_t  Mask 
)

Enable Tamper mask flag.

Note
Associated Tamper IT must not enabled when tamper mask is set. TAMPCR TAMP1MF LL_RTC_TAMPER_EnableMask
TAMPCR TAMP2MF LL_RTC_TAMPER_EnableMask
TAMPCR TAMP3MF LL_RTC_TAMPER_EnableMask
Parameters
RTCxRTC Instance
MaskThis parameter can be a combination of the following values:
  • LL_RTC_TAMPER_MASK_TAMPER1
  • LL_RTC_TAMPER_MASK_TAMPER2
  • LL_RTC_TAMPER_MASK_TAMPER3
Return values
None

Definition at line 4133 of file stm32l4xx_ll_rtc.h.

4134 {
4135  SET_BIT(RTCx->TAMPCR, Mask);
4136 }

◆ LL_RTC_TAMPER_EnablePullUp() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp ( TAMP_TypeDef *  TAMPx)

Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling) TAMP_FLTCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp.

Parameters
TAMPxTAMP Instance
Return values
None

Definition at line 3290 of file stm32l4xx_ll_rtc.h.

3291 {
3292  CLEAR_BIT(TAMPx->FLTCR, TAMP_FLTCR_TAMPPUDIS);
3293 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_EnablePullUp() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp ( RTC_TypeDef *  RTCx)

Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling) TAMPCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp.

Parameters
RTCxRTC Instance
Return values
None

Definition at line 4210 of file stm32l4xx_ll_rtc.h.

4211 {
4212  CLEAR_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPPUDIS);
4213 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RTC_TAMPER_GetFilterCount() [1/2]

__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount ( TAMP_TypeDef *  TAMPx)

Get RTC_TAMPx filter count TAMP_FLTCR TAMPFLT LL_RTC_TAMPER_GetFilterCount.

Parameters
TAMPxTAMP Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TAMPER_FILTER_DISABLE
  • LL_RTC_TAMPER_FILTER_2SAMPLE
  • LL_RTC_TAMPER_FILTER_4SAMPLE
  • LL_RTC_TAMPER_FILTER_8SAMPLE

Definition at line 3352 of file stm32l4xx_ll_rtc.h.

3353 {
3354  return (uint32_t)(READ_BIT(TAMPx->FLTCR, TAMP_FLTCR_TAMPFLT));
3355 }

◆ LL_RTC_TAMPER_GetFilterCount() [2/2]

__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount ( RTC_TypeDef *  RTCx)

Get RTC_TAMPx filter count TAMPCR TAMPFLT LL_RTC_TAMPER_GetFilterCount.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TAMPER_FILTER_DISABLE
  • LL_RTC_TAMPER_FILTER_2SAMPLE
  • LL_RTC_TAMPER_FILTER_4SAMPLE
  • LL_RTC_TAMPER_FILTER_8SAMPLE

Definition at line 4276 of file stm32l4xx_ll_rtc.h.

4277 {
4278  return (uint32_t)(READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPFLT));
4279 }

◆ LL_RTC_TAMPER_GetPrecharge() [1/2]

__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge ( TAMP_TypeDef *  TAMPx)

Get RTC_TAMPx precharge duration TAMP_FLTCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge.

Parameters
TAMPxTAMP Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TAMPER_DURATION_1RTCCLK
  • LL_RTC_TAMPER_DURATION_2RTCCLK
  • LL_RTC_TAMPER_DURATION_4RTCCLK
  • LL_RTC_TAMPER_DURATION_8RTCCLK

Definition at line 3321 of file stm32l4xx_ll_rtc.h.

3322 {
3323  return (uint32_t)(READ_BIT(TAMPx->FLTCR, TAMP_FLTCR_TAMPPRCH));
3324 }

◆ LL_RTC_TAMPER_GetPrecharge() [2/2]

__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge ( RTC_TypeDef *  RTCx)

Get RTC_TAMPx precharge duration TAMPCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TAMPER_DURATION_1RTCCLK
  • LL_RTC_TAMPER_DURATION_2RTCCLK
  • LL_RTC_TAMPER_DURATION_4RTCCLK
  • LL_RTC_TAMPER_DURATION_8RTCCLK

Definition at line 4243 of file stm32l4xx_ll_rtc.h.

4244 {
4245  return (uint32_t)(READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPPRCH));
4246 }

◆ LL_RTC_TAMPER_GetSamplingFreq() [1/2]

__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq ( TAMP_TypeDef *  TAMPx)

Get Tamper sampling frequency TAMP_FLTCR TAMPFREQ LL_RTC_TAMPER_GetSamplingFreq.

Parameters
TAMPxTAMP Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TAMPER_SAMPLFREQDIV_32768
  • LL_RTC_TAMPER_SAMPLFREQDIV_16384
  • LL_RTC_TAMPER_SAMPLFREQDIV_8192
  • LL_RTC_TAMPER_SAMPLFREQDIV_4096
  • LL_RTC_TAMPER_SAMPLFREQDIV_2048
  • LL_RTC_TAMPER_SAMPLFREQDIV_1024
  • LL_RTC_TAMPER_SAMPLFREQDIV_512
  • LL_RTC_TAMPER_SAMPLFREQDIV_256

Definition at line 3391 of file stm32l4xx_ll_rtc.h.

3392 {
3393  return (uint32_t)(READ_BIT(TAMPx->FLTCR, TAMP_FLTCR_TAMPFREQ));
3394 }

◆ LL_RTC_TAMPER_GetSamplingFreq() [2/2]

__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq ( RTC_TypeDef *  RTCx)

Get Tamper sampling frequency TAMPCR TAMPFREQ LL_RTC_TAMPER_GetSamplingFreq.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TAMPER_SAMPLFREQDIV_32768
  • LL_RTC_TAMPER_SAMPLFREQDIV_16384
  • LL_RTC_TAMPER_SAMPLFREQDIV_8192
  • LL_RTC_TAMPER_SAMPLFREQDIV_4096
  • LL_RTC_TAMPER_SAMPLFREQDIV_2048
  • LL_RTC_TAMPER_SAMPLFREQDIV_1024
  • LL_RTC_TAMPER_SAMPLFREQDIV_512
  • LL_RTC_TAMPER_SAMPLFREQDIV_256

Definition at line 4317 of file stm32l4xx_ll_rtc.h.

4318 {
4319  return (uint32_t)(READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPFREQ));
4320 }

◆ LL_RTC_TAMPER_SetFilterCount() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount ( TAMP_TypeDef *  TAMPx,
uint32_t  FilterCount 
)

Set RTC_TAMPx filter count TAMP_FLTCR TAMPFLT LL_RTC_TAMPER_SetFilterCount.

Parameters
TAMPxTAMP Instance
FilterCountThis parameter can be one of the following values:
  • LL_RTC_TAMPER_FILTER_DISABLE
  • LL_RTC_TAMPER_FILTER_2SAMPLE
  • LL_RTC_TAMPER_FILTER_4SAMPLE
  • LL_RTC_TAMPER_FILTER_8SAMPLE
Return values
None

Definition at line 3337 of file stm32l4xx_ll_rtc.h.

3338 {
3339  MODIFY_REG(TAMPx->FLTCR, TAMP_FLTCR_TAMPFLT, FilterCount);
3340 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RTC_TAMPER_SetFilterCount() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount ( RTC_TypeDef *  RTCx,
uint32_t  FilterCount 
)

Set RTC_TAMPx filter count TAMPCR TAMPFLT LL_RTC_TAMPER_SetFilterCount.

Parameters
RTCxRTC Instance
FilterCountThis parameter can be one of the following values:
  • LL_RTC_TAMPER_FILTER_DISABLE
  • LL_RTC_TAMPER_FILTER_2SAMPLE
  • LL_RTC_TAMPER_FILTER_4SAMPLE
  • LL_RTC_TAMPER_FILTER_8SAMPLE
Return values
None

Definition at line 4261 of file stm32l4xx_ll_rtc.h.

4262 {
4263  MODIFY_REG(RTCx->TAMPCR, RTC_TAMPCR_TAMPFLT, FilterCount);
4264 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RTC_TAMPER_SetPrecharge() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge ( TAMP_TypeDef *  TAMPx,
uint32_t  Duration 
)

Set RTC_TAMPx precharge duration TAMP_FLTCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge.

Parameters
TAMPxTAMP Instance
DurationThis parameter can be one of the following values:
  • LL_RTC_TAMPER_DURATION_1RTCCLK
  • LL_RTC_TAMPER_DURATION_2RTCCLK
  • LL_RTC_TAMPER_DURATION_4RTCCLK
  • LL_RTC_TAMPER_DURATION_8RTCCLK
Return values
None

Definition at line 3306 of file stm32l4xx_ll_rtc.h.

3307 {
3308  MODIFY_REG(TAMPx->FLTCR, TAMP_FLTCR_TAMPPRCH, Duration);
3309 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RTC_TAMPER_SetPrecharge() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge ( RTC_TypeDef *  RTCx,
uint32_t  Duration 
)

Set RTC_TAMPx precharge duration TAMPCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge.

Parameters
RTCxRTC Instance
DurationThis parameter can be one of the following values:
  • LL_RTC_TAMPER_DURATION_1RTCCLK
  • LL_RTC_TAMPER_DURATION_2RTCCLK
  • LL_RTC_TAMPER_DURATION_4RTCCLK
  • LL_RTC_TAMPER_DURATION_8RTCCLK
Return values
None

Definition at line 4228 of file stm32l4xx_ll_rtc.h.

4229 {
4230  MODIFY_REG(RTCx->TAMPCR, RTC_TAMPCR_TAMPPRCH, Duration);
4231 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RTC_TAMPER_SetSamplingFreq() [1/2]

__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq ( TAMP_TypeDef *  TAMPx,
uint32_t  SamplingFreq 
)

Set Tamper sampling frequency TAMP_FLTCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq.

Parameters
TAMPxTAMP Instance
SamplingFreqThis parameter can be one of the following values:
  • LL_RTC_TAMPER_SAMPLFREQDIV_32768
  • LL_RTC_TAMPER_SAMPLFREQDIV_16384
  • LL_RTC_TAMPER_SAMPLFREQDIV_8192
  • LL_RTC_TAMPER_SAMPLFREQDIV_4096
  • LL_RTC_TAMPER_SAMPLFREQDIV_2048
  • LL_RTC_TAMPER_SAMPLFREQDIV_1024
  • LL_RTC_TAMPER_SAMPLFREQDIV_512
  • LL_RTC_TAMPER_SAMPLFREQDIV_256
Return values
None

Definition at line 3372 of file stm32l4xx_ll_rtc.h.

3373 {
3374  MODIFY_REG(TAMPx->FLTCR, TAMP_FLTCR_TAMPFREQ, SamplingFreq);
3375 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_RTC_TAMPER_SetSamplingFreq() [2/2]

__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq ( RTC_TypeDef *  RTCx,
uint32_t  SamplingFreq 
)

Set Tamper sampling frequency TAMPCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq.

Parameters
RTCxRTC Instance
SamplingFreqThis parameter can be one of the following values:
  • LL_RTC_TAMPER_SAMPLFREQDIV_32768
  • LL_RTC_TAMPER_SAMPLFREQDIV_16384
  • LL_RTC_TAMPER_SAMPLFREQDIV_8192
  • LL_RTC_TAMPER_SAMPLFREQDIV_4096
  • LL_RTC_TAMPER_SAMPLFREQDIV_2048
  • LL_RTC_TAMPER_SAMPLFREQDIV_1024
  • LL_RTC_TAMPER_SAMPLFREQDIV_512
  • LL_RTC_TAMPER_SAMPLFREQDIV_256
Return values
None

Definition at line 4298 of file stm32l4xx_ll_rtc.h.

4299 {
4300  MODIFY_REG(RTCx->TAMPCR, RTC_TAMPCR_TAMPFREQ, SamplingFreq);
4301 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)