64 #include <inc/hw_types.h>
65 #include <inc/hw_trng.h>
66 #include <inc/hw_memmap.h>
67 #include <inc/hw_ints.h>
86 #define TRNGConfigure NOROM_TRNGConfigure
87 #define TRNGNumberGet NOROM_TRNGNumberGet
95 #define TRNG_NUMBER_READY 0x00000001 //
96 #define TRNG_FRO_SHUTDOWN 0x00000002 //
97 #define TRNG_NEED_CLOCK 0x80000000 //
99 #define TRNG_HI_WORD 0x00000001
100 #define TRNG_LOW_WORD 0x00000002
138 uint32_t ui32MaxSamplesPerCycle,
139 uint32_t ui32ClocksPerSample);
205 __STATIC_INLINE uint32_t
312 __STATIC_INLINE uint32_t
445 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
447 #ifdef ROM_TRNGConfigure
449 #define TRNGConfigure ROM_TRNGConfigure
451 #ifdef ROM_TRNGNumberGet
453 #define TRNGNumberGet ROM_TRNGNumberGet
static void TRNGDisable(void)
Disable the TRNG module.
static void TRNGIntEnable(uint32_t ui32IntFlags)
Enables individual TRNG interrupt sources.
static uint32_t TRNGIntStatus(bool bMasked)
Gets the current interrupt status of the TRNG module.
#define TRNG_FRO_SHUTDOWN
static void TRNGIntDisable(uint32_t ui32IntFlags)
Disables individual TRNG interrupt sources.
uint32_t TRNGNumberGet(uint32_t ui32Word)
Get a random number from the generator.
static void TRNGReset(void)
Reset the TRNG.
void TRNGConfigure(uint32_t ui32MinSamplesPerCycle, uint32_t ui32MaxSamplesPerCycle, uint32_t ui32ClocksPerSample)
Configure the true random number generator.
#define TRNG_NUMBER_READY
static void TRNGIntClear(uint32_t ui32IntFlags)
Clears TRNG interrupt sources.
static void TRNGIntRegister(void(*pfnHandler)(void))
Registers an interrupt handler for a TRNG interrupt.
static void TRNGIntUnregister(void)
Unregisters an interrupt handler for a TRNG interrupt.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
static uint32_t TRNGStatusGet(void)
Get the status of the TRNG.
static void TRNGEnable(void)
Enable the TRNG.
void IntDisable(uint32_t ui32Interrupt)
Disables an interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.
void IntEnable(uint32_t ui32Interrupt)
Enables an interrupt.