46 #include "trng_regs.h" 61 typedef void (*mxc_trng_complete_t) (
void* req,
int result);
int MXC_TRNG_Init()
Enable portions of the TRNG.
void MXC_TRNG_Handler(void)
This function should be called from the TRNG ISR Handler when using Async functions.
void MXC_TRNG_IntEnable()
Enable TRNG Interrupts.
void MXC_TRNG_RandomAsync(uint8_t *data, uint32_t len, mxc_trng_complete_t callback)
Get a random number of length len, do not block while generating data.
int MXC_TRNG_RandomInt(void)
Get a random number.
int MXC_TRNG_Random(uint8_t *data, uint32_t len)
Get a random number of length len.
int MXC_TRNG_Shutdown()
Disable and reset portions of the TRNG.