STM32F479xx HAL User Manual
|
Peripheral Control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_RNG_GenerateRandomNumber (RNG_HandleTypeDef *hrng, uint32_t *random32bit) |
Generates a 32-bit random number. | |
HAL_StatusTypeDef | HAL_RNG_GenerateRandomNumber_IT (RNG_HandleTypeDef *hrng) |
Generates a 32-bit random number in interrupt mode. | |
uint32_t | HAL_RNG_GetRandomNumber (RNG_HandleTypeDef *hrng) |
Returns generated random number in polling mode (Obsolete) Use HAL_RNG_GenerateRandomNumber() API instead. | |
uint32_t | HAL_RNG_GetRandomNumber_IT (RNG_HandleTypeDef *hrng) |
Returns a 32-bit random number with interrupt enabled (Obsolete), Use HAL_RNG_GenerateRandomNumber_IT() API instead. | |
void | HAL_RNG_IRQHandler (RNG_HandleTypeDef *hrng) |
Handles RNG interrupt request. | |
uint32_t | HAL_RNG_ReadLastRandomNumber (RNG_HandleTypeDef *hrng) |
Read latest generated random number. | |
__weak void | HAL_RNG_ReadyDataCallback (RNG_HandleTypeDef *hrng, uint32_t random32bit) |
Data Ready callback in non-blocking mode. | |
__weak void | HAL_RNG_ErrorCallback (RNG_HandleTypeDef *hrng) |
RNG error callbacks. |
Peripheral Control functions.
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Get the 32 bit Random number (+) Get the 32 bit Random number with interrupt enabled (+) Handle RNG interrupt request
void HAL_RNG_ErrorCallback | ( | RNG_HandleTypeDef * | hrng | ) |
RNG error callbacks.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
None |
Definition at line 799 of file stm32f4xx_hal_rng.c.
Referenced by HAL_RNG_Init(), HAL_RNG_IRQHandler(), and HAL_RNG_UnRegisterCallback().
HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber | ( | RNG_HandleTypeDef * | hrng, |
uint32_t * | random32bit | ||
) |
Generates a 32-bit random number.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
random32bit | pointer to generated random number variable if successful. |
HAL | status |
Definition at line 544 of file stm32f4xx_hal_rng.c.
References __HAL_RNG_GET_FLAG, __RNG_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_RNG_ERROR_BUSY, HAL_RNG_ERROR_TIMEOUT, HAL_RNG_STATE_BUSY, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::Instance, __RNG_HandleTypeDef::RandomNumber, RNG_FLAG_DRDY, RNG_TIMEOUT_VALUE, and __RNG_HandleTypeDef::State.
Referenced by HAL_RNG_GetRandomNumber().
HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber_IT | ( | RNG_HandleTypeDef * | hrng | ) |
Generates a 32-bit random number in interrupt mode.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
HAL | status |
Definition at line 602 of file stm32f4xx_hal_rng.c.
References __HAL_RNG_ENABLE_IT, __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_BUSY, HAL_RNG_STATE_BUSY, HAL_RNG_STATE_READY, and __RNG_HandleTypeDef::State.
uint32_t HAL_RNG_GetRandomNumber | ( | RNG_HandleTypeDef * | hrng | ) |
Returns generated random number in polling mode (Obsolete) Use HAL_RNG_GenerateRandomNumber() API instead.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
Random | value |
Definition at line 637 of file stm32f4xx_hal_rng.c.
References HAL_RNG_GenerateRandomNumber(), and __RNG_HandleTypeDef::RandomNumber.
uint32_t HAL_RNG_GetRandomNumber_IT | ( | RNG_HandleTypeDef * | hrng | ) |
Returns a 32-bit random number with interrupt enabled (Obsolete), Use HAL_RNG_GenerateRandomNumber_IT() API instead.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
32-bit | random number |
Definition at line 656 of file stm32f4xx_hal_rng.c.
References __HAL_RNG_ENABLE_IT, HAL_RNG_STATE_BUSY, __RNG_HandleTypeDef::Instance, and __RNG_HandleTypeDef::State.
void HAL_RNG_IRQHandler | ( | RNG_HandleTypeDef * | hrng | ) |
Handles RNG interrupt request.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
None |
Definition at line 697 of file stm32f4xx_hal_rng.c.
References __HAL_RNG_CLEAR_IT, __HAL_RNG_DISABLE_IT, __HAL_RNG_GET_IT, __RNG_HandleTypeDef::ErrorCallback, __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_CLOCK, HAL_RNG_ERROR_SEED, HAL_RNG_ErrorCallback(), HAL_RNG_ReadyDataCallback(), HAL_RNG_STATE_ERROR, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::Instance, __RNG_HandleTypeDef::RandomNumber, __RNG_HandleTypeDef::ReadyDataCallback, RNG_IT_CEI, RNG_IT_DRDY, RNG_IT_SEI, and __RNG_HandleTypeDef::State.
uint32_t HAL_RNG_ReadLastRandomNumber | ( | RNG_HandleTypeDef * | hrng | ) |
Read latest generated random number.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
random | value |
Definition at line 771 of file stm32f4xx_hal_rng.c.
References __RNG_HandleTypeDef::RandomNumber.
void HAL_RNG_ReadyDataCallback | ( | RNG_HandleTypeDef * | hrng, |
uint32_t | random32bit | ||
) |
Data Ready callback in non-blocking mode.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
random32bit | generated random number. |
None |
Definition at line 783 of file stm32f4xx_hal_rng.c.
Referenced by HAL_RNG_Init(), HAL_RNG_IRQHandler(), and HAL_RNG_UnRegisterReadyDataCallback().