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 CLEAR_BIT(RNGx->CR, RNG_CR_CED); in LL_RNG_EnableClkErrorDetect()
242 __STATIC_INLINE void LL_RNG_DisableClkErrorDetect(RNG_TypeDef *RNGx) in LL_RNG_DisableClkErrorDetect() argument
244 SET_BIT(RNGx->CR, RNG_CR_CED); in LL_RNG_DisableClkErrorDetect()
253 __STATIC_INLINE uint32_t LL_RNG_IsEnabledClkErrorDetect(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledClkErrorDetect() argument
255 return ((READ_BIT(RNGx->CR, RNG_CR_CED) != (RNG_CR_CED)) ? 1UL : 0UL); in LL_RNG_IsEnabledClkErrorDetect()
264 __STATIC_INLINE void LL_RNG_EnableCondReset(RNG_TypeDef *RNGx) in LL_RNG_EnableCondReset() argument
266 SET_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableCondReset()
275 __STATIC_INLINE void LL_RNG_DisableCondReset(RNG_TypeDef *RNGx) in LL_RNG_DisableCondReset() argument
277 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableCondReset()
286 __STATIC_INLINE uint32_t LL_RNG_IsEnabledCondReset(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledCondReset() argument
288 return ((READ_BIT(RNGx->CR, RNG_CR_CONDRST) == (RNG_CR_CONDRST)) ? 1UL : 0UL); in LL_RNG_IsEnabledCondReset()
297 __STATIC_INLINE void LL_RNG_ConfigLock(RNG_TypeDef *RNGx) in LL_RNG_ConfigLock() argument
299 SET_BIT(RNGx->CR, RNG_CR_CONFIGLOCK); in LL_RNG_ConfigLock()
308 __STATIC_INLINE uint32_t LL_RNG_IsConfigLocked(const RNG_TypeDef *RNGx) in LL_RNG_IsConfigLocked() argument
310 return ((READ_BIT(RNGx->CR, RNG_CR_CONFIGLOCK) == (RNG_CR_CONFIGLOCK)) ? 1UL : 0UL); in LL_RNG_IsConfigLocked()
319 __STATIC_INLINE void LL_RNG_EnableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_EnableNistCompliance() argument
321 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_NIST_COMPLIANT | RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
322 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableNistCompliance()
331 __STATIC_INLINE void LL_RNG_DisableNistCompliance(RNG_TypeDef *RNGx) in LL_RNG_DisableNistCompliance() argument
333 MODIFY_REG(RNGx->CR, RNG_CR_NISTC | RNG_CR_CONDRST, LL_RNG_CUSTOM_NIST | RNG_CR_CONDRST); in LL_RNG_DisableNistCompliance()
334 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST);; in LL_RNG_DisableNistCompliance()
343 __STATIC_INLINE uint32_t LL_RNG_IsEnabledNistCompliance(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledNistCompliance() argument
345 return ((READ_BIT(RNGx->CR, RNG_CR_NISTC) != (RNG_CR_NISTC)) ? 1UL : 0UL); in LL_RNG_IsEnabledNistCompliance()
355 __STATIC_INLINE void LL_RNG_SetConfig1(RNG_TypeDef *RNGx, uint32_t Config1) in LL_RNG_SetConfig1() argument
357 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG1 | RNG_CR_CONDRST, (Config1 << RNG_CR_RNG_CONFIG1_Pos) | RN… in LL_RNG_SetConfig1()
358 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig1()
367 __STATIC_INLINE uint32_t LL_RNG_GetConfig1(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig1() argument
369 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG1) >> RNG_CR_RNG_CONFIG1_Pos); in LL_RNG_GetConfig1()
379 __STATIC_INLINE void LL_RNG_SetConfig2(RNG_TypeDef *RNGx, uint32_t Config2) in LL_RNG_SetConfig2() argument
381 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG2 | RNG_CR_CONDRST, (Config2 << RNG_CR_RNG_CONFIG2_Pos) | RN… in LL_RNG_SetConfig2()
382 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig2()
391 __STATIC_INLINE uint32_t LL_RNG_GetConfig2(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig2() argument
393 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG2) >> RNG_CR_RNG_CONFIG2_Pos); in LL_RNG_GetConfig2()
403 __STATIC_INLINE void LL_RNG_SetConfig3(RNG_TypeDef *RNGx, uint32_t Config3) in LL_RNG_SetConfig3() argument
405 …MODIFY_REG(RNGx->CR, RNG_CR_RNG_CONFIG3 | RNG_CR_CONDRST, (Config3 << RNG_CR_RNG_CONFIG3_Pos) | RN… in LL_RNG_SetConfig3()
406 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetConfig3()
415 __STATIC_INLINE uint32_t LL_RNG_GetConfig3(const RNG_TypeDef *RNGx) in LL_RNG_GetConfig3() argument
417 return (uint32_t)(READ_BIT(RNGx->CR, RNG_CR_RNG_CONFIG3) >> RNG_CR_RNG_CONFIG3_Pos); in LL_RNG_GetConfig3()
443 __STATIC_INLINE void LL_RNG_SetClockDivider(RNG_TypeDef *RNGx, uint32_t Divider) in LL_RNG_SetClockDivider() argument
445 …MODIFY_REG(RNGx->CR, RNG_CR_CLKDIV | RNG_CR_CONDRST, (Divider << RNG_CR_CLKDIV_Pos) | RNG_CR_CONDR… in LL_RNG_SetClockDivider()
446 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_SetClockDivider()
471 __STATIC_INLINE uint32_t LL_RNG_GetClockDivider(const RNG_TypeDef *RNGx) in LL_RNG_GetClockDivider() argument
473 return (uint32_t)READ_BIT(RNGx->CR, RNG_CR_CLKDIV); in LL_RNG_GetClockDivider()
489 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_DRDY(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_DRDY() argument
491 return ((READ_BIT(RNGx->SR, RNG_SR_DRDY) == (RNG_SR_DRDY)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_DRDY()
500 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CECS() argument
502 return ((READ_BIT(RNGx->SR, RNG_SR_CECS) == (RNG_SR_CECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CECS()
511 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SECS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SECS() argument
513 return ((READ_BIT(RNGx->SR, RNG_SR_SECS) == (RNG_SR_SECS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SECS()
522 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_CEIS() argument
524 return ((READ_BIT(RNGx->SR, RNG_SR_CEIS) == (RNG_SR_CEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_CEIS()
533 __STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SEIS(const RNG_TypeDef *RNGx) in LL_RNG_IsActiveFlag_SEIS() argument
535 return ((READ_BIT(RNGx->SR, RNG_SR_SEIS) == (RNG_SR_SEIS)) ? 1UL : 0UL); in LL_RNG_IsActiveFlag_SEIS()
544 __STATIC_INLINE void LL_RNG_ClearFlag_CEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_CEIS() argument
546 WRITE_REG(RNGx->SR, ~RNG_SR_CEIS); in LL_RNG_ClearFlag_CEIS()
555 __STATIC_INLINE void LL_RNG_ClearFlag_SEIS(RNG_TypeDef *RNGx) in LL_RNG_ClearFlag_SEIS() argument
557 WRITE_REG(RNGx->SR, ~RNG_SR_SEIS); in LL_RNG_ClearFlag_SEIS()
575 __STATIC_INLINE void LL_RNG_EnableIT(RNG_TypeDef *RNGx) in LL_RNG_EnableIT() argument
577 SET_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_EnableIT()
587 __STATIC_INLINE void LL_RNG_DisableIT(RNG_TypeDef *RNGx) in LL_RNG_DisableIT() argument
589 CLEAR_BIT(RNGx->CR, RNG_CR_IE); in LL_RNG_DisableIT()
599 __STATIC_INLINE uint32_t LL_RNG_IsEnabledIT(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledIT() argument
601 return ((READ_BIT(RNGx->CR, RNG_CR_IE) == (RNG_CR_IE)) ? 1UL : 0UL); in LL_RNG_IsEnabledIT()
618 __STATIC_INLINE uint32_t LL_RNG_ReadRandData32(const RNG_TypeDef *RNGx) in LL_RNG_ReadRandData32() argument
620 return (uint32_t)(READ_REG(RNGx->DR)); in LL_RNG_ReadRandData32()
633 __STATIC_INLINE void LL_RNG_EnableArdis(RNG_TypeDef *RNGx) in LL_RNG_EnableArdis() argument
635 MODIFY_REG(RNGx->CR, RNG_CR_ARDIS | RNG_CR_CONDRST, LL_RNG_ARDIS_ENABLE | RNG_CR_CONDRST); in LL_RNG_EnableArdis()
636 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_EnableArdis()
645 __STATIC_INLINE void LL_RNG_DisableArdis(RNG_TypeDef *RNGx) in LL_RNG_DisableArdis() argument
647 MODIFY_REG(RNGx->CR, RNG_CR_ARDIS | RNG_CR_CONDRST, LL_RNG_ARDIS_DISABLE | RNG_CR_CONDRST); in LL_RNG_DisableArdis()
648 CLEAR_BIT(RNGx->CR, RNG_CR_CONDRST); in LL_RNG_DisableArdis()
657 __STATIC_INLINE uint32_t LL_RNG_IsEnabledArdis(const RNG_TypeDef *RNGx) in LL_RNG_IsEnabledArdis() argument
659 return ((READ_BIT(RNGx->CR, RNG_CR_ARDIS) != (RNG_CR_ARDIS)) ? 1UL : 0UL); in LL_RNG_IsEnabledArdis()
673 __STATIC_INLINE void LL_RNG_SetHealthConfig(RNG_TypeDef *RNGx, uint32_t HTCFG) in LL_RNG_SetHealthConfig() argument
675 WRITE_REG(RNGx->HTCR, HTCFG); in LL_RNG_SetHealthConfig()
684 __STATIC_INLINE uint32_t LL_RNG_GetHealthConfig(const RNG_TypeDef *RNGx) in LL_RNG_GetHealthConfig() argument
686 return (uint32_t)READ_REG(RNGx->HTCR); in LL_RNG_GetHealthConfig()
696 ErrorStatus LL_RNG_Init(RNG_TypeDef *RNGx, LL_RNG_InitTypeDef *RNG_InitStruct);
698 ErrorStatus LL_RNG_DeInit(const RNG_TypeDef *RNGx);