 |
MAX32675 Peripheral Driver API
Peripheral Driver API for the MAX32675
|
43 #include "trng_regs.h"
57 typedef void (*mxc_trng_complete_t) (
void* req,
int result);
void MXC_TRNG_DisableInt()
Disable 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_Random(uint8_t *data, uint32_t len)
Get a random number of length len.
void MXC_TRNG_EnableInt()
Enable TRNG Interrupts.
int MXC_TRNG_RandomInt(void)
Get a random number.
void MXC_TRNG_GenerateKey(void)
Generate an AES key and transfer to the AES block.
int MXC_TRNG_Shutdown(void)
Disable and reset portions of the TRNG.
void MXC_TRNG_Handler(void)
This function should be called from the TRNG ISR Handler when using Async functions.
int MXC_TRNG_Init(void)
Enable portions of the TRNG.