Go to the documentation of this file.
178 #define RNG_SEED_FR0_S0 LL_RNG_SEED_FR0_S0
179 #define RNG_SEED_USER LL_RNG_SEED_USER
186 #define RNG_LFSR_MODE_59BIT LL_RNG_LFSR_MODE_59BIT
187 #define RNG_LFSR_MODE_128BIT LL_RNG_LFSR_MODE_128BIT
193 #define RNG_POST_PRO_NOT LL_RNG_POST_PRO_NOT
194 #define RNG_POST_PRO_SKIPPING LL_RNG_POST_PRO_SKIPPING
195 #define RNG_POST_PRO_COUNTING LL_RNG_POST_PRO_COUNTING
196 #define RNG_POST_PRO_NEUMANN LL_RNG_POST_PRO_NEUMANN
202 #define RNG_OUTPUT_FR0_S0 LL_RNG_OUTPUT_FR0_S0
203 #define RNG_OUTPUT_CYCLIC_PARITY LL_RNG_OUTPUT_CYCLIC_PARITY
204 #define RNG_OUTPUT_CYCLIC LL_RNG_OUTPUT_CYCLIC
205 #define RNG_OUTPUT_LFSR_RNG LL_RNG_OUTPUT_LFSR_RNG
206 #define RNG_OUTPUT_LFSR LL_RNG_OUTPUT_LFSR
hal_rng_state_t hal_rng_get_state(const rng_handle_t *p_rng)
Return the RNG handle state.
struct _rng_init rng_init_t
RNG init structure definition.
Header file containing functions prototypes of RNG LL library.
void hal_rng_suspend_reg(rng_handle_t *p_rng)
Suspend some registers related to RNG configuration before sleep.
This file contains all the functions prototypes for the HAL module driver.
hal_status_t hal_rng_init(rng_handle_t *p_rng)
Initialize the RNG according to the specified parameters in the rng_init_t of associated handle.
hal_status_t hal_rng_clk_recover(uint8_t rng_force_clk_flag, uint8_t rng_wfi_clk_flag)
recover rng clk
void hal_rng_msp_deinit(rng_handle_t *p_rng)
De-initialize the RNG MSP.
void hal_pm_rng_resume(rng_handle_t *p_rng)
Resume the specified RNG.
HAL_RNG Callback function definition.
void hal_rng_msp_init(rng_handle_t *p_rng)
Initialize the RNG MSP.
__IO hal_rng_state_t state
hal_rng_state_t
HAL RNG State Enumerations definition.
hal_status_t hal_rng_deinit(rng_handle_t *p_rng)
De-initialize the RNG peripheral.
struct _rng_handle rng_handle_t
RNG handle Structure definition.
struct _hal_rng_callback hal_rng_callback_t
HAL_RNG Callback function definition.
hal_status_t hal_is_rng_wfi_clk_enable(void)
check the rng wif clk has been set or not
hal_status_t hal_rng_generate_random_number_it(rng_handle_t *p_rng, const uint16_t *p_seed)
Generate a 32-bit random number in interrupt mode.
hal_pm_status_t hal_pm_rng_suspend(rng_handle_t *p_rng)
Suspend the specified RNG.
void(* rng_msp_init)(rng_handle_t *p_rng)
RNG handle Structure definition.
hal_status_t
HAL Status structures definition.
This file contains HAL common definitions, enumeration, macros and structures definitions.
void hal_rng_irq_handler(rng_handle_t *p_rng)
Handle RNG interrupt request.
RNG init structure definition.
uint32_t hal_rng_read_last_random_number(const rng_handle_t *p_rng)
Read the latest generated random number.
void(* rng_ready_data_callback)(rng_handle_t *p_rng, uint32_t random32bit)
hal_status_t hal_rng_generate_random_number(rng_handle_t *p_rng, const uint16_t *p_seed, uint32_t *p_random32bit)
Generate a 32-bit random number.
void hal_rng_resume_reg(const rng_handle_t *p_rng)
Restore some registers related to RNG configuration after sleep. This function must be used in conjun...
hal_status_t hal_is_rng_force_clk_enable(void)
check the force off rng clk has been set or not
void(* rng_msp_deinit)(rng_handle_t *p_rng)
void hal_rng_ready_data_callback(rng_handle_t *p_rng, uint32_t random32bit)
Data Ready callback in non-blocking mode.