Lines Matching refs:RNGx

206 __STATIC_INLINE void LL_RNG_Enable(RNG_TypeDef *RNGx)  in LL_RNG_Enable()  argument
208 SET_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Enable()
217 __STATIC_INLINE void LL_RNG_Disable(RNG_TypeDef *RNGx) in LL_RNG_Disable() argument
219 CLEAR_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Disable()
228 __STATIC_INLINE uint32_t LL_RNG_IsEnabled(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabled() argument
230 return ((READ_BIT(RNGx->CR, RNG_CR_RNGEN) == (RNG_CR_RNGEN)) ? 1UL : 0UL); in LL_RNG_IsEnabled()
240 __STATIC_INLINE void LL_RNG_EnableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_EnableClkErrorDetect() argument
243 MODIFY_REG(RNGx->CR, RNG_CR_CED | RNG_CR_CONDRST, LL_RNG_CED_ENABLE | RNG_CR_CONDRST); in LL_RNG_EnableClkErrorDetect()
244 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableClkErrorDetect()
246 CLEAR_BIT(RNGx->CR, RNG_CR_CED); in LL_RNG_EnableClkErrorDetect()
256 __STATIC_INLINE void LL_RNG_DisableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_DisableClkErrorDetect() argument
259 MODIFY_REG(RNGx->CR, RNG_CR_CED | RNG_CR_CONDRST, LL_RNG_CED_DISABLE | RNG_CR_CONDRST); in LL_RNG_DisableClkErrorDetect()
260 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableClkErrorDetect()
262 SET_BIT(RNGx->CR, RNG_CR_CED); in LL_RNG_DisableClkErrorDetect()
272 __STATIC_INLINE uint32_t LL_RNG_IsEnabledClkErrorDetect(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledClkErrorDetect() argument
274 return ((READ_BIT(RNGx->CR, RNG_CR_CED) != (RNG_CR_CED)) ? 1UL : 0UL); in LL_RNG_IsEnabledClkErrorDetect()
284 __STATIC_INLINE void LL_RNG_SetConditioningResetBit(RNG_TypeDef *RNGx) in LL_RNG_SetConditioningResetBit() argument
286 SET_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConditioningResetBit()
295 __STATIC_INLINE void LL_RNG_ResetConditioningResetBit(RNG_TypeDef *RNGx) in LL_RNG_ResetConditioningResetBit() argument
297 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_ResetConditioningResetBit()
306 __STATIC_INLINE uint32_t LL_RNG_IsResetConditioningBitSet(RNG_TypeDef *RNGx) in LL_RNG_IsResetConditioningBitSet() argument
308 return ((READ_BIT(RNGx->CR, RNG_CR_CONDRST) == (RNG_CR_CONDRST)) ? 1UL : 0UL); in LL_RNG_IsResetConditioningBitSet()
317 __STATIC_INLINE void LL_RNG_ConfigLock(RNG_TypeDef *RNGx) in LL_RNG_ConfigLock() argument
319 SET_BIT(RNGx->CR, RNG_CR_CONFIGLOCK); in LL_RNG_ConfigLock()
328 __STATIC_INLINE uint32_t LL_RNG_IsConfigLocked(RNG_TypeDef *RNGx) in LL_RNG_IsConfigLocked() argument
330 return ((READ_BIT(RNGx->CR, RNG_CR_CONFIGLOCK) == (RNG_CR_CONFIGLOCK)) ? 1UL : 0UL); in LL_RNG_IsConfigLocked()
339 __STATIC_INLINE void LL_RNG_EnableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_EnableNistCompliance() argument
341 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_NIST_COMPLIANT | RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
342 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
351 __STATIC_INLINE void LL_RNG_DisableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_DisableNistCompliance() argument
353 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_CUSTOM_NIST | RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
354 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
363 __STATIC_INLINE uint32_t LL_RNG_IsNistComplianceEnabled(RNG_TypeDef *RNGx) in LL_RNG_IsNistComplianceEnabled() argument
365 return ((READ_BIT(RNGx->CR, RNG_CR_NISTC) != (RNG_CR_NISTC)) ? 1UL : 0UL); in LL_RNG_IsNistComplianceEnabled()
375 __STATIC_INLINE void LL_RNG_SetConfig1(RNG_TypeDef *RNGx, uint32_t Config1) in LL_RNG_SetConfig1() argument
377 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG1 | RNG_CR_CONDRST, (Config1 << RNG_CR_RNG_CONFIG1_Pos) | RN… in LL_RNG_SetConfig1()
378 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig1()
387 __STATIC_INLINE uint32_t LL_RNG_GetConfig1(RNG_TypeDef *RNGx) in LL_RNG_GetConfig1() argument
389 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG1) >> RNG_CR_RNG_CONFIG1_Pos); in LL_RNG_GetConfig1()
399 __STATIC_INLINE void LL_RNG_SetConfig2(RNG_TypeDef *RNGx, uint32_t Config2) in LL_RNG_SetConfig2() argument
401 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG2 | RNG_CR_CONDRST, (Config2 << RNG_CR_RNG_CONFIG2_Pos) | RN… in LL_RNG_SetConfig2()
402 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig2()
411 __STATIC_INLINE uint32_t LL_RNG_GetConfig2(RNG_TypeDef *RNGx) in LL_RNG_GetConfig2() argument
413 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG2) >> RNG_CR_RNG_CONFIG2_Pos); in LL_RNG_GetConfig2()
423 __STATIC_INLINE void LL_RNG_SetConfig3(RNG_TypeDef *RNGx, uint32_t Config3) in LL_RNG_SetConfig3() argument
425 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG3 | RNG_CR_CONDRST, (Config3 << RNG_CR_RNG_CONFIG3_Pos) | RN… in LL_RNG_SetConfig3()
426 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig3()
435 __STATIC_INLINE uint32_t LL_RNG_GetConfig3(RNG_TypeDef *RNGx) in LL_RNG_GetConfig3() argument
437 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG3) >> RNG_CR_RNG_CONFIG3_Pos); in LL_RNG_GetConfig3()
463 __STATIC_INLINE void LL_RNG_SetClockDivider(RNG_TypeDef *RNGx, uint32_t Divider) in LL_RNG_SetClockDivider() argument
465 MODIFY_REG(RNGx->CR, RNG_CR_CLKDIV | RNG_CR_CONDRST, Divider | RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
466 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
491 __STATIC_INLINE uint32_t LL_RNG_GetClockDivider(RNG_TypeDef *RNGx) in LL_RNG_GetClockDivider() argument
493 return (uint32_t)READ_BIT(RNGx->CR, RNG_CR_CLKDIV); in LL_RNG_GetClockDivider()
511 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_DRDY(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_DRDY() argument
513 return ((READ_BIT(RNGx->SR, RNG_SR_DRDY) == (RNG_SR_DRDY)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_DRDY()
522 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CECS() argument
524 return ((READ_BIT(RNGx->SR, RNG_SR_CECS) == (RNG_SR_CECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CECS()
533 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SECS() argument
535 return ((READ_BIT(RNGx->SR, RNG_SR_SECS) == (RNG_SR_SECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SECS()
544 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CEIS() argument
546 return ((READ_BIT(RNGx->SR, RNG_SR_CEIS) == (RNG_SR_CEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CEIS()
555 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SEIS() argument
557 return ((READ_BIT(RNGx->SR, RNG_SR_SEIS) == (RNG_SR_SEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SEIS()
566 __STATIC_INLINE void LL_RNG_ClearFlag_CEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_CEIS() argument
568 WRITE_REG(RNGx->SR, ~RNG_SR_CEIS); in LL_RNG_ClearFlag_CEIS()
577 __STATIC_INLINE void LL_RNG_ClearFlag_SEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_SEIS() argument
579 WRITE_REG(RNGx->SR, ~RNG_SR_SEIS); in LL_RNG_ClearFlag_SEIS()
597 __STATIC_INLINE void LL_RNG_EnableIT(RNG_TypeDef *RNGx) in LL_RNG_EnableIT() argument
599 SET_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_EnableIT()
609 __STATIC_INLINE void LL_RNG_DisableIT(RNG_TypeDef *RNGx) in LL_RNG_DisableIT() argument
611 CLEAR_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_DisableIT()
621 __STATIC_INLINE uint32_t LL_RNG_IsEnabledIT(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledIT() argument
623 return ((READ_BIT(RNGx->CR, RNG_CR_IE) == (RNG_CR_IE)) ? 1UL : 0UL); in LL_RNG_IsEnabledIT()
640 __STATIC_INLINE uint32_t LL_RNG_ReadRandData32(const RNG_TypeDef *RNGx) in LL_RNG_ReadRandData32() argument
642 return (uint32_t)(READ_REG(RNGx->DR)); in LL_RNG_ReadRandData32()
661 __STATIC_INLINE void LL_RNG_SetHealthconfiguration(RNG_TypeDef *RNGx, uint32_t HTCFG) in LL_RNG_SetHealthconfiguration() argument
663 WRITE_REG(RNGx->HTCR, HTCFG); in LL_RNG_SetHealthconfiguration()
672 __STATIC_INLINE uint32_t LL_RNG_GetHealthconfiguration(RNG_TypeDef *RNGx) in LL_RNG_GetHealthconfiguration() argument
674 return (uint32_t)READ_REG(RNGx->HTCR); in LL_RNG_GetHealthconfiguration()
686 ErrorStatus LL_RNG_Init(RNG_TypeDef *RNGx, const LL_RNG_InitTypeDef *RNG_InitStruct);
689 ErrorStatus LL_RNG_DeInit(const RNG_TypeDef *RNGx);