117 assert_param(IS_FUNCTIONAL_STATE(NewState));
119 if (NewState != DISABLE)
122 RNG->CR |= RNG_CR_RNGEN;
127 RNG->CR &= ~RNG_CR_RNGEN;
270 assert_param(IS_FUNCTIONAL_STATE(NewState));
272 if (NewState != DISABLE)
275 RNG->CR |= RNG_CR_IE;
280 RNG->CR &= ~RNG_CR_IE;
295 FlagStatus bitstatus = RESET;
297 assert_param(IS_RNG_GET_FLAG(RNG_FLAG));
300 if ((RNG->SR & RNG_FLAG) != (uint8_t)RESET)
329 assert_param(IS_RNG_CLEAR_FLAG(RNG_FLAG));
331 RNG->SR = ~(uint32_t)(((uint32_t)RNG_FLAG) << 4);
344 ITStatus bitstatus = RESET;
346 assert_param(IS_RNG_GET_IT(RNG_IT));
349 if ((RNG->SR & RNG_IT) != (uint8_t)RESET)
375 assert_param(IS_RNG_IT(RNG_IT));
378 RNG->SR = (uint8_t)~RNG_IT;
This file contains all the functions prototypes for the RCC firmware library.
ITStatus RNG_GetITStatus(uint8_t RNG_IT)
Checks whether the specified RNG interrupt has occurred or not.
uint32_t RNG_GetRandomNumber(void)
Returns a 32-bit random number.
void RNG_DeInit(void)
De-initializes the RNG peripheral registers to their default reset values.
FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG)
Checks whether the specified RNG flag is set or not.
void RNG_ClearFlag(uint8_t RNG_FLAG)
Clears the RNG flags.
void RNG_Cmd(FunctionalState NewState)
Enables or disables the RNG peripheral.
void RNG_ClearITPendingBit(uint8_t RNG_IT)
Clears the RNG interrupt pending bit(s).
This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library...
void RCC_AHB2PeriphResetCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState)
Forces or releases AHB2 peripheral reset.
void RNG_ITConfig(FunctionalState NewState)
Enables or disables the RNG interrupt.