44 #include <hal/nrf_rng.h> 45 #include <sdk_errors.h> 62 #define NRF_DRV_RNG_DEFAULT_CONFIG \ 64 .error_correction = RNG_CONFIG_ERROR_CORRECTION, \ 65 .interrupt_priority = RNG_CONFIG_IRQ_PRIORITY, \ 104 uint32_t
RngRand(uint8_t* buffer, uint8_t length);
114 uint32_t
RngBlockRand(uint8_t* buffer, uint32_t length);
118 #endif // RNG_H_INCLUDED uint32_t RngRand(uint8_t *buffer, uint8_t length)
Function for getting the vector of random numbers.
uint32_t RngBlockRand(uint8_t *buffer, uint32_t length)
Blocking function for getting an arbitrary array of random numbers.
void RngDeinit(void)
Function for deinitializing the nrf_drv_rng module.
uint32_t RngBytesAvailable(uint8_t *bytes_available)
Function for getting the number of currently available random bytes.
uint8_t interrupt_priority
uint32_t RngInit(void)
Function for initializing the nrf_drv_rng module.
uint32_t RngPoolCapacity(uint8_t *pool_capacity)
Function for querying the capacity of the application random pool.
Struct for RNG configuration.