Lines Matching refs:RNGx

198 __STATIC_INLINE void LL_RNG_Enable(RNG_TypeDef *RNGx)  in LL_RNG_Enable()  argument
200 SET_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Enable()
209 __STATIC_INLINE void LL_RNG_Disable(RNG_TypeDef *RNGx) in LL_RNG_Disable() argument
211 CLEAR_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Disable()
220 __STATIC_INLINE uint32_t LL_RNG_IsEnabled(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabled() argument
222 return ((READ_BIT(RNGx->CR, RNG_CR_RNGEN) == (RNG_CR_RNGEN)) ? 1UL : 0UL); in LL_RNG_IsEnabled()
231 __STATIC_INLINE void LL_RNG_EnableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_EnableClkErrorDetect() argument
233 MODIFY_REG(RNGx->CR, RNG_CR_CED | RNG_CR_CONDRST, LL_RNG_CED_ENABLE | RNG_CR_CONDRST); in LL_RNG_EnableClkErrorDetect()
234 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableClkErrorDetect()
243 __STATIC_INLINE void LL_RNG_DisableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_DisableClkErrorDetect() argument
245 MODIFY_REG(RNGx->CR, RNG_CR_CED | RNG_CR_CONDRST, LL_RNG_CED_DISABLE | RNG_CR_CONDRST); in LL_RNG_DisableClkErrorDetect()
246 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableClkErrorDetect()
255 __STATIC_INLINE uint32_t LL_RNG_IsEnabledClkErrorDetect(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledClkErrorDetect() argument
257 return ((READ_BIT(RNGx->CR, RNG_CR_CED) != (RNG_CR_CED)) ? 1UL : 0UL); in LL_RNG_IsEnabledClkErrorDetect()
266 __STATIC_INLINE void LL_RNG_EnableCondReset(RNG_TypeDef *RNGx) in LL_RNG_EnableCondReset() argument
268 SET_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableCondReset()
277 __STATIC_INLINE void LL_RNG_DisableCondReset(RNG_TypeDef *RNGx) in LL_RNG_DisableCondReset() argument
279 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableCondReset()
288 __STATIC_INLINE uint32_t LL_RNG_IsEnabledCondReset(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledCondReset() argument
290 return ((READ_BIT(RNGx->CR, RNG_CR_CONDRST) == (RNG_CR_CONDRST)) ? 1UL : 0UL); in LL_RNG_IsEnabledCondReset()
299 __STATIC_INLINE void LL_RNG_ConfigLock(RNG_TypeDef *RNGx) in LL_RNG_ConfigLock() argument
301 SET_BIT(RNGx->CR, RNG_CR_CONFIGLOCK); in LL_RNG_ConfigLock()
310 __STATIC_INLINE uint32_t LL_RNG_IsConfigLocked(const RNG_TypeDef *RNGx) in LL_RNG_IsConfigLocked() argument
312 return ((READ_BIT(RNGx->CR, RNG_CR_CONFIGLOCK) == (RNG_CR_CONFIGLOCK)) ? 1UL : 0UL); in LL_RNG_IsConfigLocked()
321 __STATIC_INLINE void LL_RNG_EnableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_EnableNistCompliance() argument
323 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_NIST_COMPLIANT | RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
324 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
333 __STATIC_INLINE void LL_RNG_DisableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_DisableNistCompliance() argument
335 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_CUSTOM_NIST | RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
336 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
345 __STATIC_INLINE uint32_t LL_RNG_IsEnabledNistCompliance(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledNistCompliance() argument
347 return ((READ_BIT(RNGx->CR, RNG_CR_NISTC) != (RNG_CR_NISTC)) ? 1UL : 0UL); in LL_RNG_IsEnabledNistCompliance()
357 __STATIC_INLINE void LL_RNG_SetConfig1(RNG_TypeDef *RNGx, uint32_t Config1) in LL_RNG_SetConfig1() argument
359 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG1 | RNG_CR_CONDRST, (Config1 << RNG_CR_RNG_CONFIG1_Pos) | RN… in LL_RNG_SetConfig1()
360 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig1()
369 __STATIC_INLINE uint32_t LL_RNG_GetConfig1(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig1() argument
371 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG1) >> RNG_CR_RNG_CONFIG1_Pos); in LL_RNG_GetConfig1()
381 __STATIC_INLINE void LL_RNG_SetConfig2(RNG_TypeDef *RNGx, uint32_t Config2) in LL_RNG_SetConfig2() argument
383 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG2 | RNG_CR_CONDRST, (Config2 << RNG_CR_RNG_CONFIG2_Pos) | RN… in LL_RNG_SetConfig2()
384 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig2()
393 __STATIC_INLINE uint32_t LL_RNG_GetConfig2(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig2() argument
395 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG2) >> RNG_CR_RNG_CONFIG2_Pos); in LL_RNG_GetConfig2()
405 __STATIC_INLINE void LL_RNG_SetConfig3(RNG_TypeDef *RNGx, uint32_t Config3) in LL_RNG_SetConfig3() argument
407 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG3 | RNG_CR_CONDRST, (Config3 << RNG_CR_RNG_CONFIG3_Pos) | RN… in LL_RNG_SetConfig3()
408 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig3()
417 __STATIC_INLINE uint32_t LL_RNG_GetConfig3(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig3() argument
419 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG3) >> RNG_CR_RNG_CONFIG3_Pos); in LL_RNG_GetConfig3()
445 __STATIC_INLINE void LL_RNG_SetClockDivider(RNG_TypeDef *RNGx, uint32_t Divider) in LL_RNG_SetClockDivider() argument
447 MODIFY_REG(RNGx->CR, RNG_CR_CLKDIV | RNG_CR_CONDRST, Divider | RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
448 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
473 __STATIC_INLINE uint32_t LL_RNG_GetClockDivider(const RNG_TypeDef *RNGx) in LL_RNG_GetClockDivider() argument
475 return (uint32_t)READ_BIT(RNGx->CR, RNG_CR_CLKDIV); in LL_RNG_GetClockDivider()
491 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_DRDY(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_DRDY() argument
493 return ((READ_BIT(RNGx->SR, RNG_SR_DRDY) == (RNG_SR_DRDY)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_DRDY()
502 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CECS() argument
504 return ((READ_BIT(RNGx->SR, RNG_SR_CECS) == (RNG_SR_CECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CECS()
513 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SECS() argument
515 return ((READ_BIT(RNGx->SR, RNG_SR_SECS) == (RNG_SR_SECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SECS()
524 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CEIS() argument
526 return ((READ_BIT(RNGx->SR, RNG_SR_CEIS) == (RNG_SR_CEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CEIS()
535 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SEIS() argument
537 return ((READ_BIT(RNGx->SR, RNG_SR_SEIS) == (RNG_SR_SEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SEIS()
546 __STATIC_INLINE void LL_RNG_ClearFlag_CEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_CEIS() argument
548 WRITE_REG(RNGx->SR, ~RNG_SR_CEIS); in LL_RNG_ClearFlag_CEIS()
557 __STATIC_INLINE void LL_RNG_ClearFlag_SEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_SEIS() argument
559 WRITE_REG(RNGx->SR, ~RNG_SR_SEIS); in LL_RNG_ClearFlag_SEIS()
577 __STATIC_INLINE void LL_RNG_EnableIT(RNG_TypeDef *RNGx) in LL_RNG_EnableIT() argument
579 SET_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_EnableIT()
589 __STATIC_INLINE void LL_RNG_DisableIT(RNG_TypeDef *RNGx) in LL_RNG_DisableIT() argument
591 CLEAR_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_DisableIT()
601 __STATIC_INLINE uint32_t LL_RNG_IsEnabledIT(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledIT() argument
603 return ((READ_BIT(RNGx->CR, RNG_CR_IE) == (RNG_CR_IE)) ? 1UL : 0UL); in LL_RNG_IsEnabledIT()
620 __STATIC_INLINE uint32_t LL_RNG_ReadRandData32(const RNG_TypeDef *RNGx) in LL_RNG_ReadRandData32() argument
622 return (uint32_t)(READ_REG(RNGx->DR)); in LL_RNG_ReadRandData32()
635 __STATIC_INLINE void LL_RNG_EnableArdis(RNG_TypeDef *RNGx) in LL_RNG_EnableArdis() argument
637 MODIFY_REG(RNGx->CR, RNG_CR_ARDIS | RNG_CR_CONDRST, LL_RNG_ARDIS_ENABLE | RNG_CR_CONDRST); in LL_RNG_EnableArdis()
638 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableArdis()
647 __STATIC_INLINE void LL_RNG_DisableArdis(RNG_TypeDef *RNGx) in LL_RNG_DisableArdis() argument
649 MODIFY_REG(RNGx->CR, RNG_CR_ARDIS | RNG_CR_CONDRST, LL_RNG_ARDIS_DISABLE | RNG_CR_CONDRST); in LL_RNG_DisableArdis()
650 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableArdis()
659 __STATIC_INLINE uint32_t LL_RNG_IsEnabledArdis(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledArdis() argument
661 return ((READ_BIT(RNGx->CR, RNG_CR_ARDIS) != (RNG_CR_ARDIS)) ? 1UL : 0UL); in LL_RNG_IsEnabledArdis()
675 __STATIC_INLINE void LL_RNG_SetHealthConfig(RNG_TypeDef *RNGx, uint32_t HTCFG) in LL_RNG_SetHealthConfig() argument
680 WRITE_REG(RNGx->HTCR, HTCFG); in LL_RNG_SetHealthConfig()
689 __STATIC_INLINE uint32_t LL_RNG_GetHealthConfig(const RNG_TypeDef *RNGx) in LL_RNG_GetHealthConfig() argument
691 return (uint32_t)READ_REG(RNGx->HTCR); in LL_RNG_GetHealthConfig()
701 ErrorStatus LL_RNG_Init(RNG_TypeDef *RNGx, const LL_RNG_InitTypeDef *RNG_InitStruct);
703 ErrorStatus LL_RNG_DeInit(const RNG_TypeDef *RNGx);