62 #include <inc/hw_types.h>
63 #include <inc/hw_trng.h>
64 #include <inc/hw_memmap.h>
65 #include <inc/hw_ints.h>
85 #ifndef DRIVERLIB_GENERATE_ROM
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
126 uint32_t ui32MaxSamplesPerCycle,
127 uint32_t ui32ClocksPerSample);
197 __STATIC_INLINE uint32_t
304 __STATIC_INLINE uint32_t
431 #ifndef DRIVERLIB_NOROM
433 #ifdef ROM_TRNGConfigure
435 #define TRNGConfigure ROM_TRNGConfigure
437 #ifdef ROM_TRNGNumberGet
439 #define TRNGNumberGet ROM_TRNGNumberGet
__STATIC_INLINE uint32_t TRNGStatusGet(void)
Get the status of the TRNG.
#define TRNG_FRO_SHUTDOWN
__STATIC_INLINE uint32_t TRNGIntStatus(bool bMasked)
Gets the current interrupt status of the TRNG module.
__STATIC_INLINE void TRNGIntRegister(void(*pfnHandler)(void))
Registers an interrupt handler for a TRNG interrupt.
__STATIC_INLINE void TRNGIntUnregister(void)
Unregisters an interrupt handler for a TRNG interrupt.
uint32_t TRNGNumberGet(uint32_t ui32Word)
Get a random number from the generator.
void TRNGConfigure(uint32_t ui32MinSamplesPerCycle, uint32_t ui32MaxSamplesPerCycle, uint32_t ui32ClocksPerSample)
Configure the true random number generator.
#define TRNG_NUMBER_READY
__STATIC_INLINE void TRNGReset(void)
Reset the TRNG.
__STATIC_INLINE void TRNGIntDisable(uint32_t ui32IntFlags)
Disables individual TRNG interrupt sources.
__STATIC_INLINE void TRNGDisable(void)
Disable the TRNG module.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
__STATIC_INLINE void TRNGEnable(void)
Enable the TRNG.
__STATIC_INLINE void TRNGIntClear(uint32_t ui32IntFlags)
Clears TRNG interrupt sources.
__STATIC_INLINE void TRNGIntEnable(uint32_t ui32IntFlags)
Enables individual TRNG interrupt sources.
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.