123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #ifndef NRF_DRV_RNG_H__
- #define NRF_DRV_RNG_H__
- #include <nrfx_rng.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef nrfx_rng_config_t nrf_drv_rng_config_t;
- #define NRF_DRV_RNG_DEFAULT_CONFIG NRFX_RNG_DEFAULT_CONFIG
- ret_code_t nrf_drv_rng_init(nrf_drv_rng_config_t const * p_config);
- void nrf_drv_rng_uninit(void);
- void nrf_drv_rng_bytes_available(uint8_t * p_bytes_available);
- ret_code_t nrf_drv_rng_rand(uint8_t * p_buff, uint8_t length);
- void nrf_drv_rng_block_rand(uint8_t * p_buff, uint32_t length);
- #ifdef __cplusplus
- }
- #endif
- #endif
|