HAL + 0/12 examples
CodeScope will show references to HAL_RNG_GenerateRandomNumber() from the following samples and libraries:
Examples
STM32469I_EVAL
Applications
mbedTLS
Examples
RNG
STM324x9I_EVAL
Applications
mbedTLS
STM324xG_EVAL
Applications
mbedTLS
STM32F412G-Discovery
Examples
RNG
STM32F412ZG-Nucleo
Examples
RNG
STM32F413H-Discovery
Examples
RNG
STM32F413ZH-Nucleo
Examples
RNG
STM32F429ZI-Nucleo
Applications
NetXDuo
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALHAL_RNG_GenerateRandomNumber()

HAL_RNG_GenerateRandomNumber() function

Generates a 32-bit random number.

Syntax

HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng,     uint32_t *random32bit);
Implemented in stm32f4xx_hal_rng.c:536

Arguments

hrng

pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.

random32bit

pointer to generated random number variable if successful.

Return value

HAL status

Notes

Each time the random number data is read the RNG_FLAG_DRDY flag is automatically cleared.

Examples

HAL_RNG_GenerateRandomNumber() is referenced by 12 libraries and example projects.

References

LocationReferrerText
stm32f4xx_hal_rng.c:536
HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit)
stm32f4xx_hal_rng.h:305
HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit);
stm32f4xx_hal_rng.c:631HAL_RNG_GetRandomNumber()
if (HAL_RNG_GenerateRandomNumber(hrng, &(hrng->RandomNumber)) == HAL_OK)

Call Tree

Functions calling HAL_RNG_GenerateRandomNumber()
Functions called by HAL_RNG_GenerateRandomNumber()
all items filtered out
HAL_RNG_GenerateRandomNumber()
all items filtered out
Type of HAL_RNG_GenerateRandomNumber()
HAL_RNG_GenerateRandomNumber()
uint32_t
all items filtered out