![]() |
nRF5 SDK
v16.0.0
|
| Choose documentation: | nRF5 SDK | S112 SoftDevice API | S113 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S312 SoftDevice API | S332 SoftDevice API | S340 SoftDevice API |
Random Number Generator (RNG) peripheral driver. More...
Modules | |
| RNG peripheral driver configuration | |
Data Structures | |
| struct | nrfx_rng_config_t |
| Struct for RNG configuration. More... | |
Macros | |
| #define | NRFX_RNG_DEFAULT_CONFIG |
| RNG default configuration. Basic usage: More... | |
Typedefs | |
| typedef void(* | nrfx_rng_evt_handler_t )(uint8_t rng_data) |
| RNG driver event handler type. | |
Functions | |
| nrfx_err_t | nrfx_rng_init (nrfx_rng_config_t const *p_config, nrfx_rng_evt_handler_t handler) |
| Function for initializing the nrfx_rng module. More... | |
| void | nrfx_rng_start (void) |
| Function for starting the generation of random values. More... | |
| void | nrfx_rng_stop (void) |
| Function for stopping the generation of random values. More... | |
| void | nrfx_rng_uninit (void) |
| Function for uninitializing the nrfx_rng module. | |
Random Number Generator (RNG) peripheral driver.
| #define NRFX_RNG_DEFAULT_CONFIG |
RNG default configuration. Basic usage:
| nrfx_err_t nrfx_rng_init | ( | nrfx_rng_config_t const * | p_config, |
| nrfx_rng_evt_handler_t | handler | ||
| ) |
Function for initializing the nrfx_rng module.
| [in] | p_config | Pointer to the structure with the initial configuration. |
| [in] | handler | Event handler provided by the user. Must not be NULL. |
| NRFX_SUCCESS | Driver was successfully initialized. |
| NRFX_ERROR_ALREADY_INITIALIZED | Driver was already initialized. |
| void nrfx_rng_start | ( | void | ) |
Function for starting the generation of random values.
New data should be handled by handler passed to the nrfx_rng_init() function.
| void nrfx_rng_stop | ( | void | ) |
Function for stopping the generation of random values.
Function disables interrupts in peripheral and stops the generation of new random values.