STM32H735xx HAL User Manual
Functions
RNG_Ex_Exported_Functions_Group1
RNG_Ex Exported Functions

Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_RNGEx_SetConfig (RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf)
 Configure the RNG with the specified parameters in the RNG_ConfigTypeDef.
HAL_StatusTypeDef HAL_RNGEx_GetConfig (RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf)
 Get the RNG Configuration and fill parameters in the RNG_ConfigTypeDef.
HAL_StatusTypeDef HAL_RNGEx_LockConfig (RNG_HandleTypeDef *hrng)
 RNG current configuration lock.

Detailed Description

Configuration functions.

 ===============================================================================
          ##### Configuration and lock functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Configure the RNG with the specified parameters in the RNG_ConfigTypeDef
      (+) Lock RNG configuration Allows user to lock a configuration until next reset.


Function Documentation

HAL_StatusTypeDef HAL_RNGEx_GetConfig ( RNG_HandleTypeDef hrng,
RNG_ConfigTypeDef pConf 
)

Get the RNG Configuration and fill parameters in the RNG_ConfigTypeDef.

Parameters:
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
pConf,:pointer to a RNG_ConfigTypeDef structure that contains the configuration information for RNG module
Return values:
HALstatus

Definition at line 197 of file stm32h7xx_hal_rng_ex.c.

References RNG_ConfigTypeDef::ClockDivider, RNG_ConfigTypeDef::Config1, RNG_ConfigTypeDef::Config2, RNG_ConfigTypeDef::Config3, __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_BUSY, HAL_RNG_STATE_BUSY, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::Instance, RNG_ConfigTypeDef::NistCompliance, and __RNG_HandleTypeDef::State.

HAL_StatusTypeDef HAL_RNGEx_LockConfig ( RNG_HandleTypeDef hrng)

RNG current configuration lock.

Note:
This function allows to lock RNG peripheral configuration. Once locked, HW RNG reset has to be performed prior any further configuration update.
Parameters:
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
Return values:
HALstatus

Definition at line 246 of file stm32h7xx_hal_rng_ex.c.

References __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_BUSY, HAL_RNG_STATE_BUSY, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::Instance, and __RNG_HandleTypeDef::State.

HAL_StatusTypeDef HAL_RNGEx_SetConfig ( RNG_HandleTypeDef hrng,
RNG_ConfigTypeDef pConf 
)

Configure the RNG with the specified parameters in the RNG_ConfigTypeDef.

Parameters:
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
pConf,:pointer to a RNG_ConfigTypeDef structure that contains the configuration information for RNG module
Return values:
HALstatus

< magic number must be written immediately before to RNG_HTCRG

Definition at line 98 of file stm32h7xx_hal_rng_ex.c.

References __HAL_RNG_DISABLE, __HAL_RNG_ENABLE, assert_param, RNG_ConfigTypeDef::ClockDivider, RNG_ConfigTypeDef::Config1, RNG_ConfigTypeDef::Config2, RNG_ConfigTypeDef::Config3, __RNG_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_RNG_ERROR_BUSY, HAL_RNG_ERROR_TIMEOUT, HAL_RNG_STATE_BUSY, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::Instance, IS_RNG_CLOCK_DIVIDER, IS_RNG_CONFIG1, IS_RNG_CONFIG2, IS_RNG_CONFIG3, IS_RNG_NIST_COMPLIANCE, RNG_ConfigTypeDef::NistCompliance, RNG_HTCFG, RNG_HTCFG_1, RNG_TIMEOUT_VALUE, and __RNG_HandleTypeDef::State.