Lines Matching refs:RNGx
200 __STATIC_INLINE void LL_RNG_Enable(RNG_TypeDef *RNGx) in LL_RNG_Enable() argument
202 SET_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Enable()
211 __STATIC_INLINE void LL_RNG_Disable(RNG_TypeDef *RNGx) in LL_RNG_Disable() argument
213 CLEAR_BIT(RNGx->CR, RNG_CR_RNGEN); in LL_RNG_Disable()
222 __STATIC_INLINE uint32_t LL_RNG_IsEnabled(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabled() argument
224 return ((READ_BIT(RNGx->CR, RNG_CR_RNGEN) == (RNG_CR_RNGEN)) ? 1UL : 0UL); in LL_RNG_IsEnabled()
233 __STATIC_INLINE void LL_RNG_EnableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_EnableClkErrorDetect() argument
236 MODIFY_REG(RNGx->CR, RNG_CR_CED | RNG_CR_CONDRST, LL_RNG_CED_ENABLE | RNG_CR_CONDRST); in LL_RNG_EnableClkErrorDetect()
237 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableClkErrorDetect()
239 CLEAR_BIT(RNGx->CR, RNG_CR_CED); in LL_RNG_EnableClkErrorDetect()
249 __STATIC_INLINE void LL_RNG_DisableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_DisableClkErrorDetect() argument
252 MODIFY_REG(RNGx->CR, RNG_CR_CED | RNG_CR_CONDRST, LL_RNG_CED_DISABLE | RNG_CR_CONDRST); in LL_RNG_DisableClkErrorDetect()
253 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableClkErrorDetect()
255 SET_BIT(RNGx->CR, RNG_CR_CED); in LL_RNG_DisableClkErrorDetect()
265 __STATIC_INLINE uint32_t LL_RNG_IsEnabledClkErrorDetect(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledClkErrorDetect() argument
267 return ((READ_BIT(RNGx->CR, RNG_CR_CED) != (RNG_CR_CED)) ? 1UL : 0UL); in LL_RNG_IsEnabledClkErrorDetect()
277 __STATIC_INLINE void LL_RNG_EnableCondReset(RNG_TypeDef *RNGx) in LL_RNG_EnableCondReset() argument
279 SET_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableCondReset()
288 __STATIC_INLINE void LL_RNG_DisableCondReset(RNG_TypeDef *RNGx) in LL_RNG_DisableCondReset() argument
290 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableCondReset()
299 __STATIC_INLINE uint32_t LL_RNG_IsEnabledCondReset(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledCondReset() argument
301 return ((READ_BIT(RNGx->CR, RNG_CR_CONDRST) == (RNG_CR_CONDRST)) ? 1UL : 0UL); in LL_RNG_IsEnabledCondReset()
310 __STATIC_INLINE void LL_RNG_ConfigLock(RNG_TypeDef *RNGx) in LL_RNG_ConfigLock() argument
312 SET_BIT(RNGx->CR, RNG_CR_CONFIGLOCK); in LL_RNG_ConfigLock()
321 __STATIC_INLINE uint32_t LL_RNG_IsConfigLocked(const RNG_TypeDef *RNGx) in LL_RNG_IsConfigLocked() argument
323 return ((READ_BIT(RNGx->CR, RNG_CR_CONFIGLOCK) == (RNG_CR_CONFIGLOCK)) ? 1UL : 0UL); in LL_RNG_IsConfigLocked()
332 __STATIC_INLINE void LL_RNG_EnableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_EnableNistCompliance() argument
334 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_NIST_COMPLIANT | RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
335 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
344 __STATIC_INLINE void LL_RNG_DisableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_DisableNistCompliance() argument
346 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_CUSTOM_NIST | RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
347 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
356 __STATIC_INLINE uint32_t LL_RNG_IsEnabledNistCompliance(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledNistCompliance() argument
358 return ((READ_BIT(RNGx->CR, RNG_CR_NISTC) != (RNG_CR_NISTC)) ? 1UL : 0UL); in LL_RNG_IsEnabledNistCompliance()
368 __STATIC_INLINE void LL_RNG_SetConfig1(RNG_TypeDef *RNGx, uint32_t Config1) in LL_RNG_SetConfig1() argument
370 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG1 | RNG_CR_CONDRST, (Config1 << RNG_CR_RNG_CONFIG1_Pos) | RN… in LL_RNG_SetConfig1()
371 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig1()
380 __STATIC_INLINE uint32_t LL_RNG_GetConfig1(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig1() argument
382 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG1) >> RNG_CR_RNG_CONFIG1_Pos); in LL_RNG_GetConfig1()
392 __STATIC_INLINE void LL_RNG_SetConfig2(RNG_TypeDef *RNGx, uint32_t Config2) in LL_RNG_SetConfig2() argument
394 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG2 | RNG_CR_CONDRST, (Config2 << RNG_CR_RNG_CONFIG2_Pos) | RN… in LL_RNG_SetConfig2()
395 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig2()
404 __STATIC_INLINE uint32_t LL_RNG_GetConfig2(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig2() argument
406 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG2) >> RNG_CR_RNG_CONFIG2_Pos); in LL_RNG_GetConfig2()
416 __STATIC_INLINE void LL_RNG_SetConfig3(RNG_TypeDef *RNGx, uint32_t Config3) in LL_RNG_SetConfig3() argument
418 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG3 | RNG_CR_CONDRST, (Config3 << RNG_CR_RNG_CONFIG3_Pos) | RN… in LL_RNG_SetConfig3()
419 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig3()
428 __STATIC_INLINE uint32_t LL_RNG_GetConfig3(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig3() argument
430 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG3) >> RNG_CR_RNG_CONFIG3_Pos); in LL_RNG_GetConfig3()
456 __STATIC_INLINE void LL_RNG_SetClockDivider(RNG_TypeDef *RNGx, uint32_t Divider) in LL_RNG_SetClockDivider() argument
458 MODIFY_REG(RNGx->CR, RNG_CR_CLKDIV | RNG_CR_CONDRST, Divider | RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
459 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
484 __STATIC_INLINE uint32_t LL_RNG_GetClockDivider(const RNG_TypeDef *RNGx) in LL_RNG_GetClockDivider() argument
486 return (uint32_t)READ_BIT(RNGx->CR, RNG_CR_CLKDIV); in LL_RNG_GetClockDivider()
503 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_DRDY(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_DRDY() argument
505 return ((READ_BIT(RNGx->SR, RNG_SR_DRDY) == (RNG_SR_DRDY)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_DRDY()
514 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CECS() argument
516 return ((READ_BIT(RNGx->SR, RNG_SR_CECS) == (RNG_SR_CECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CECS()
525 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SECS() argument
527 return ((READ_BIT(RNGx->SR, RNG_SR_SECS) == (RNG_SR_SECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SECS()
536 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CEIS() argument
538 return ((READ_BIT(RNGx->SR, RNG_SR_CEIS) == (RNG_SR_CEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CEIS()
547 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SEIS() argument
549 return ((READ_BIT(RNGx->SR, RNG_SR_SEIS) == (RNG_SR_SEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SEIS()
558 __STATIC_INLINE void LL_RNG_ClearFlag_CEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_CEIS() argument
560 WRITE_REG(RNGx->SR, ~RNG_SR_CEIS); in LL_RNG_ClearFlag_CEIS()
569 __STATIC_INLINE void LL_RNG_ClearFlag_SEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_SEIS() argument
571 WRITE_REG(RNGx->SR, ~RNG_SR_SEIS); in LL_RNG_ClearFlag_SEIS()
589 __STATIC_INLINE void LL_RNG_EnableIT(RNG_TypeDef *RNGx) in LL_RNG_EnableIT() argument
591 SET_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_EnableIT()
601 __STATIC_INLINE void LL_RNG_DisableIT(RNG_TypeDef *RNGx) in LL_RNG_DisableIT() argument
603 CLEAR_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_DisableIT()
613 __STATIC_INLINE uint32_t LL_RNG_IsEnabledIT(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledIT() argument
615 return ((READ_BIT(RNGx->CR, RNG_CR_IE) == (RNG_CR_IE)) ? 1UL : 0UL); in LL_RNG_IsEnabledIT()
632 __STATIC_INLINE uint32_t LL_RNG_ReadRandData32(const RNG_TypeDef *RNGx) in LL_RNG_ReadRandData32() argument
634 return (uint32_t)(READ_REG(RNGx->DR)); in LL_RNG_ReadRandData32()
653 __STATIC_INLINE void LL_RNG_SetHealthConfig(RNG_TypeDef *RNGx, uint32_t HTCFG) in LL_RNG_SetHealthConfig() argument
656 WRITE_REG(RNGx->HTCR, LL_RNG_HTCFG); in LL_RNG_SetHealthConfig()
658 WRITE_REG(RNGx->HTCR, HTCFG); in LL_RNG_SetHealthConfig()
667 __STATIC_INLINE uint32_t LL_RNG_GetHealthConfig(RNG_TypeDef *RNGx) in LL_RNG_GetHealthConfig() argument
670 WRITE_REG(RNGx->HTCR, LL_RNG_HTCFG); in LL_RNG_GetHealthConfig()
672 return (uint32_t)READ_REG(RNGx->HTCR); in LL_RNG_GetHealthConfig()
683 ErrorStatus LL_RNG_Init(RNG_TypeDef *RNGx, const LL_RNG_InitTypeDef *RNG_InitStruct);
685 ErrorStatus LL_RNG_DeInit(const RNG_TypeDef *RNGx);