38.2.3 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
This section contains the following APIs:
HAL_RNG_GenerateRandomNumber()
HAL_RNG_GenerateRandomNumber_IT()
HAL_RNG_IRQHandler()
HAL_RNG_GetRandomNumber()
HAL_RNG_GetRandomNumber_IT()
HAL_RNG_ReadLastRandomNumber()
HAL_RNG_ReadyDataCallback()
HAL_RNG_ErrorCallback()
38.2.4 Peripheral State functions
This subsection permits to get in run-time the status of the peripheral and the data flow.
This section contains the following APIs:
HAL_RNG_GetState()
38.2.5 Detailed description of functions
HAL_RNG_Init
HAL_StatusTypeDef HAL_RNG_Init (RNG_HandleTypeDef *
hrng)
Initializes the RNG peripheral and creates the associated handle.
hrng: pointer to a RNG_HandleTypeDef structure that
contains the configuration information for RNG.
HAL_RNG_DeInit
HAL_StatusTypeDef HAL_RNG_DeInit (RNG_HandleTypeDef *
hrng)
DeInitializes the RNG peripheral.
hrng: pointer to a RNG_HandleTypeDef structure that
contains the configuration information for RNG.
HAL_RNG_MspInit
void HAL_RNG_MspInit (RNG_HandleTypeDef * hrng)
hrng: pointer to a RNG_HandleTypeDef structure that
contains the configuration information for RNG.