STM32L4xx_HAL_Driver  1.14.0
RNG Configuration functions

Functions

__STATIC_INLINE void LL_RNG_Enable (RNG_TypeDef *RNGx)
 Enable Random Number Generation CR RNGEN LL_RNG_Enable. More...
 
__STATIC_INLINE void LL_RNG_Disable (RNG_TypeDef *RNGx)
 Disable Random Number Generation CR RNGEN LL_RNG_Disable. More...
 
__STATIC_INLINE uint32_t LL_RNG_IsEnabled (RNG_TypeDef *RNGx)
 Check if Random Number Generator is enabled CR RNGEN LL_RNG_IsEnabled. More...
 
__STATIC_INLINE void LL_RNG_EnableClkErrorDetect (RNG_TypeDef *RNGx)
 Enable RNG Clock Error Detection CR CED LL_RNG_EnableClkErrorDetect. More...
 
__STATIC_INLINE void LL_RNG_DisableClkErrorDetect (RNG_TypeDef *RNGx)
 Disable RNG Clock Error Detection CR CED LL_RNG_DisableClkErrorDetect. More...
 
__STATIC_INLINE uint32_t LL_RNG_IsEnabledClkErrorDetect (RNG_TypeDef *RNGx)
 Check if RNG Clock Error Detection is enabled CR CED LL_RNG_IsEnabledClkErrorDetect. More...
 

Detailed Description

Function Documentation

◆ LL_RNG_Disable()

__STATIC_INLINE void LL_RNG_Disable ( RNG_TypeDef *  RNGx)

Disable Random Number Generation CR RNGEN LL_RNG_Disable.

Parameters
RNGxRNG Instance
Return values
None

Definition at line 173 of file stm32l4xx_ll_rng.h.

174 {
175  CLEAR_BIT(RNGx->CR, RNG_CR_RNGEN);
176 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RNG_DisableClkErrorDetect()

__STATIC_INLINE void LL_RNG_DisableClkErrorDetect ( RNG_TypeDef *  RNGx)

Disable RNG Clock Error Detection CR CED LL_RNG_DisableClkErrorDetect.

Parameters
RNGxRNG Instance
Return values
None

Definition at line 207 of file stm32l4xx_ll_rng.h.

208 {
209  SET_BIT(RNGx->CR, RNG_CR_CED);
210 }

◆ LL_RNG_Enable()

__STATIC_INLINE void LL_RNG_Enable ( RNG_TypeDef *  RNGx)

Enable Random Number Generation CR RNGEN LL_RNG_Enable.

Parameters
RNGxRNG Instance
Return values
None

Definition at line 162 of file stm32l4xx_ll_rng.h.

163 {
164  SET_BIT(RNGx->CR, RNG_CR_RNGEN);
165 }

◆ LL_RNG_EnableClkErrorDetect()

__STATIC_INLINE void LL_RNG_EnableClkErrorDetect ( RNG_TypeDef *  RNGx)

Enable RNG Clock Error Detection CR CED LL_RNG_EnableClkErrorDetect.

Parameters
RNGxRNG Instance
Return values
None

Definition at line 196 of file stm32l4xx_ll_rng.h.

197 {
198  CLEAR_BIT(RNGx->CR, RNG_CR_CED);
199 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_RNG_IsEnabled()

__STATIC_INLINE uint32_t LL_RNG_IsEnabled ( RNG_TypeDef *  RNGx)

Check if Random Number Generator is enabled CR RNGEN LL_RNG_IsEnabled.

Parameters
RNGxRNG Instance
Return values
Stateof bit (1 or 0).

Definition at line 184 of file stm32l4xx_ll_rng.h.

185 {
186  return (READ_BIT(RNGx->CR, RNG_CR_RNGEN) == (RNG_CR_RNGEN));
187 }

◆ LL_RNG_IsEnabledClkErrorDetect()

__STATIC_INLINE uint32_t LL_RNG_IsEnabledClkErrorDetect ( RNG_TypeDef *  RNGx)

Check if RNG Clock Error Detection is enabled CR CED LL_RNG_IsEnabledClkErrorDetect.

Parameters
RNGxRNG Instance
Return values
Stateof bit (1 or 0).

Definition at line 218 of file stm32l4xx_ll_rng.h.

219 {
220  return (!(READ_BIT(RNGx->CR, RNG_CR_CED) == (RNG_CR_CED)));
221 }