26#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_TRNG_H_
27#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_TRNG_H_
43typedef void (*mxc_trng_complete_t)(
void *req,
int result);
void MXC_TRNG_Handler(void)
This function should be called from the TRNG ISR Handler when using Async functions.
int MXC_TRNG_Shutdown(void)
Disable and reset portions of the TRNG.
int MXC_TRNG_Init(void)
Enable portions of the TRNG.
int MXC_TRNG_HealthTest(void)
Perform health test of the TRNG entropy source.
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.
void MXC_TRNG_GenerateKey(void)
Generate an AES key and transfer to the AES block.
void MXC_TRNG_DisableInt(void)
Disable TRNG Interrupts.
int MXC_TRNG_Random(uint8_t *data, uint32_t len)
Get a random number of length len.
void MXC_TRNG_EnableInt(void)
Enable TRNG Interrupts.
int MXC_TRNG_RandomInt(void)
Get a random number.
Registers, Bit Masks and Bit Positions for the TRNG Peripheral Module.