Go to the documentation of this file.
63 #ifdef HAL_RNG_MODULE_ENABLED
123 #ifdef APP_DRIVER_WAKEUP_CALL_FUN
uint16_t app_rng_gen_async(uint16_t *p_seed)
Generate a 32-bit random number in interrupt mode.
app_rng_type_t
RNG operating mode Enumerations definition.
app_rng_evt_handler_t evt_handler
RNG event callback.
app_rng_evt_type_t type
Type of event.
@ APP_RNG_EVT_DONE
Generated random by UART peripheral.
@ APP_RNG_TYPE_MAX
Only for check parameter, not used as input parameters.
app_rng_type_t use_type
RNG operating mode.
@ APP_RNG_TYPE_INTERRUPT
Interrupt operation mode.
uint16_t app_rng_gen_sync(uint16_t *p_seed, uint32_t *p_random32bit)
Generate a 32-bit random number.
rng_handle_t handle
RNG handle Structure.
RNG parameters structure definition.
void(* app_rng_evt_handler_t)(app_rng_evt_t *p_evt)
RNG event callback definition.
app_rng_state_t
App rng state types.
uint32_t random_data
Random number.
uint16_t app_rng_deinit(void)
De-initialize the APP RNG DRIVER peripheral.
app_rng_evt_type_t
RNG event Enumerations definition.
rng_init_t init
RNG required parameters.
RNG event structure definition.
This file contains all the functions prototypes for the HAL module driver.
RNG handle Structure definition.
@ APP_RNG_EVT_ERROR
Error reported by UART peripheral.
RNG init structure definition.
rng_handle_t * app_rng_get_handle(void)
Return the RNG handle.
@ APP_RNG_TYPE_POLLING
Polling operation mode.
app_rng_state_t rng_state
App rng state types.
RNG device structure definition.
app_rng_type_t use_type
Specifies the operation mode of RNG.
Header file of app driver error code.
Header file of app driver config code.
rng_env_t rng_env
RNG device structure definition.
uint16_t app_rng_init(app_rng_params_t *p_params, app_rng_evt_handler_t evt_handler)
Initialize the APP RNG DRIVER according to the specified parameters in the app_rng_params_t and app_r...