Smart Remote 3 nRF52 v1.2
Typedefs | Functions
Random Number Generator Monitor.

RNG Monitor periodically checks RNG pool and notifies components waiting for entropy when it is avaiable. More...

Typedefs

typedef void(* rng_monitor_notification_handler_t )(void *p_context)
 Function handling RNG Monitor notifications. More...
 

Functions

ret_code_t rng_monitor_init (void)
 Initializes RNG Monitor. More...
 
ret_code_t rng_monitor_request (uint8_t random_bytes_requested, rng_monitor_notification_handler_t notification_handler, void *p_notification_context)
 Request radnom data read. More...
 

Detailed Description

RNG Monitor periodically checks RNG pool and notifies components waiting for entropy when it is avaiable.

Typedef Documentation

typedef void(* rng_monitor_notification_handler_t)(void *p_context)

Function handling RNG Monitor notifications.

Parameters
[in]p_contextPointer user defined context

Function Documentation

ret_code_t rng_monitor_init ( void  )

Initializes RNG Monitor.

Note
The nrf_drv_rng driver has to be initialized before calling this function.
Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t rng_monitor_request ( uint8_t  random_bytes_requested,
rng_monitor_notification_handler_t  notification_handler,
void *  p_notification_context 
)

Request radnom data read.

Parameters
[in]random_bytes_requestedNumber of random bytes requested.
[in]notification_handlerFunction which will be called when there will be enough random bytes in RNG pool.
[in]p_notification_contextContext passed to notification handler.
Returns
NRF_SUCCESS on success, otherwise an error code.

Documentation feedback | Developer Zone | Subscribe | Updated