Lines Matching refs:RNGx
127 __STATIC_INLINE void LL_RNG_Enable(RNG_TypeDef *RNGx) in LL_RNG_Enable() argument
129 SET_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Enable()
138 __STATIC_INLINE void LL_RNG_Disable(RNG_TypeDef *RNGx) in LL_RNG_Disable() argument
140 CLEAR_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Disable()
149 __STATIC_INLINE uint32_t LL_RNG_IsEnabled(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabled() argument
151 return ((READ_BIT(RNGx->CR, RNG_CR_RNGEN) == (RNG_CR_RNGEN)) ? 1UL : 0UL); in LL_RNG_IsEnabled()
168 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_DRDY(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_DRDY() argument
170 return ((READ_BIT(RNGx->SR, RNG_SR_DRDY) == (RNG_SR_DRDY)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_DRDY()
179 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CECS() argument
181 return ((READ_BIT(RNGx->SR, RNG_SR_CECS) == (RNG_SR_CECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CECS()
190 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SECS() argument
192 return ((READ_BIT(RNGx->SR, RNG_SR_SECS) == (RNG_SR_SECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SECS()
201 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CEIS() argument
203 return ((READ_BIT(RNGx->SR, RNG_SR_CEIS) == (RNG_SR_CEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CEIS()
212 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SEIS() argument
214 return ((READ_BIT(RNGx->SR, RNG_SR_SEIS) == (RNG_SR_SEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SEIS()
223 __STATIC_INLINE void LL_RNG_ClearFlag_CEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_CEIS() argument
225 WRITE_REG(RNGx->SR, ~RNG_SR_CEIS); in LL_RNG_ClearFlag_CEIS()
234 __STATIC_INLINE void LL_RNG_ClearFlag_SEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_SEIS() argument
236 WRITE_REG(RNGx->SR, ~RNG_SR_SEIS); in LL_RNG_ClearFlag_SEIS()
254 __STATIC_INLINE void LL_RNG_EnableIT(RNG_TypeDef *RNGx) in LL_RNG_EnableIT() argument
256 SET_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_EnableIT()
266 __STATIC_INLINE void LL_RNG_DisableIT(RNG_TypeDef *RNGx) in LL_RNG_DisableIT() argument
268 CLEAR_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_DisableIT()
278 __STATIC_INLINE uint32_t LL_RNG_IsEnabledIT(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledIT() argument
280 return ((READ_BIT(RNGx->CR, RNG_CR_IE) == (RNG_CR_IE)) ? 1UL : 0UL); in LL_RNG_IsEnabledIT()
297 __STATIC_INLINE uint32_t LL_RNG_ReadRandData32(const RNG_TypeDef *RNGx) in LL_RNG_ReadRandData32() argument
299 return (uint32_t)(READ_REG(RNGx->DR)); in LL_RNG_ReadRandData32()
310 ErrorStatus LL_RNG_DeInit(const RNG_TypeDef *RNGx);