51#define SOC_TRNG_RAND_ASYNC_REQUEST_ERROR 0
52#define SOC_TRNG_RAND_ASYNC_REQUEST_OK 1
54#define SOC_TRNG_REFILL_CYCLES_MIN 0x00000100
55#define SOC_TRNG_REFILL_CYCLES_MAX 0x00000000
void(* soc_trng_callback_t)(uint64_t rand)
Pointer to a callback to be provided as an argument to soc_trng_rand_asynchronous()
void soc_trng_init()
Initialise the CC13xx/CC26xx TRNG driver.
uint8_t soc_trng_rand_asynchronous(uint32_t samples, soc_trng_callback_t cb)
Request a 64-bit, configurable-entropy random number.
uint64_t soc_trng_rand_synchronous()
Returns a minimum entropy random number.