Go to the documentation of this file.
57 #ifdef ENV_USE_FREERTOS
65 #ifdef HAL_RNG_MODULE_ENABLED
187 #ifdef ENV_RTOS_USE_SEMP
201 uint16_t app_rng_gen_sem_sync(uint16_t *p_seed);
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.
Definition: app_rng.h:75
app_rng_evt_type_t type
Definition: app_rng.h:108
@ APP_RNG_EVT_DONE
Definition: app_rng.h:86
@ APP_RNG_TYPE_MAX
Definition: app_rng.h:78
@ APP_RNG_TYPE_INTERRUPT
Definition: app_rng.h:76
uint16_t app_rng_gen_sync(uint16_t *p_seed, uint32_t *p_random32bit)
Generate a 32-bit random number.
RNG parameters structure definition.
Definition: app_rng.h:98
uint32_t random_data
Definition: app_rng.h:109
uint16_t app_rng_deinit(void)
De-initialize the APP RNG DRIVER peripheral.
app_rng_evt_type_t
RNG event Enumerations definition.
Definition: app_rng.h:85
rng_init_t init
Definition: app_rng.h:100
RNG event structure definition.
Definition: app_rng.h:107
void(* app_rng_evt_handler_t)(app_rng_evt_t *p_evt)
RNG event callback definition.
Definition: app_rng.h:115
RNG handle Structure definition.
Definition: gr55xx_hal_rng.h:125
@ APP_RNG_EVT_ERROR
Definition: app_rng.h:87
RNG init structure definition.
Definition: gr55xx_hal_rng.h:100
rng_handle_t * app_rng_get_handle(void)
Return the RNG handle.
This file contains all the functions prototypes for the HAL module driver.
@ APP_RNG_TYPE_POLLING
Definition: app_rng.h:77
app_rng_type_t use_type
Definition: app_rng.h:99
Header file of app rtos config code.
Header file of app driver error code.
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...