STM32H735xx 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. | |
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 918 of file stm32h7xx_hal_rng.c.
Referenced by HAL_RNG_Init(), HAL_RNG_IRQHandler(), HAL_RNG_UnRegisterCallback(), and RNG_RecoverSeedError().
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 662 of file stm32h7xx_hal_rng.c.
References __HAL_RNG_GET_FLAG, __HAL_RNG_GET_IT, __RNG_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_RNG_ERROR_BUSY, HAL_RNG_ERROR_SEED, HAL_RNG_ERROR_TIMEOUT, HAL_RNG_STATE_BUSY, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::Instance, __RNG_HandleTypeDef::RandomNumber, RNG_FLAG_DRDY, RNG_IT_SEI, RNG_RecoverSeedError(), RNG_TIMEOUT_VALUE, and __RNG_HandleTypeDef::State.
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 750 of file stm32h7xx_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.
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 799 of file stm32h7xx_hal_rng.c.
References __HAL_RNG_CLEAR_IT, __HAL_RNG_DISABLE_IT, __HAL_RNG_GET_FLAG, __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_FLAG_SECS, 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 885 of file stm32h7xx_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 902 of file stm32h7xx_hal_rng.c.
Referenced by HAL_RNG_Init(), HAL_RNG_IRQHandler(), and HAL_RNG_UnRegisterReadyDataCallback().