RNG State functions.
More...
RNG State functions.
===============================================================================
##### Peripheral State functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the RNG.
(+) hal_rng_get_state() API can be helpful to check in run-time the state of the RNG peripheral.
◆ hal_is_rng_force_clk_enable()
check the force off rng clk has been set or not
- Return values
-
HAL_OK | rng force off clk has been set. |
HAL_ERROR | rng force off clk has not been set. |
◆ hal_is_rng_wfi_clk_enable()
check the rng wif clk has been set or not
- Return values
-
◆ hal_pm_rng_resume()
Resume the specified RNG.
- Parameters
-
[in] | p_rng | Pointer to a RNG handle |
- Return values
-
◆ hal_pm_rng_suspend()
Suspend the specified RNG.
- Parameters
-
[in] | p_rng | Pointer to a RNG handle |
- Return values
-
◆ hal_rng_clk_recover()
hal_status_t hal_rng_clk_recover |
( |
uint8_t |
rng_force_clk_flag, |
|
|
uint8_t |
rng_wfi_clk_flag |
|
) |
| |
recover rng clk
- Parameters
-
[in] | rng_force_clk_flag | rng force clk set flag |
[in] | rng_wfi_clk_flag | rng wfi clk set flag |
- Return values
-
◆ hal_rng_get_state()
Return the RNG handle state.
- Parameters
-
[in] | p_rng | Pointer to a RNG handle which contains the configuration information for the specified HMAC module. |
- Return values
-
◆ hal_rng_resume_reg()
Restore some registers related to RNG configuration after sleep. This function must be used in conjunction with the hal_rng_resume_reg().
- Parameters
-
[in] | p_rng | Pointer to a RNG handle which contains the configuration information for the specified RNG module. |
- Return values
-
◆ hal_rng_suspend_reg()
Suspend some registers related to RNG configuration before sleep.
- Parameters
-
[in] | p_rng | Pointer to a RNG handle which contains the configuration information for the specified RNG module. |
- Return values
-