CC26xx Driver Library |

- Main Page
- Related Pages
- CC26xx APIs
- Register Descriptions
- Online Resources

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
trng.h File Reference
`#include <stdbool.h>`
`#include <stdint.h>`
`#include <inc/hw_types.h>`
`#include <inc/hw_trng.h>`
`#include <inc/hw_memmap.h>`
`#include <inc/hw_ints.h>`
`#include <driverlib/debug.h>`
`#include <driverlib/interrupt.h>`
`#include <driverlib/cpu.h>`

Go to the source code of this file.

## Macros
#define | TRNG_NUMBER_READY 0x00000001
#define | TRNG_FRO_SHUTDOWN 0x00000002
#define | TRNG_NEED_CLOCK 0x80000000
#define | TRNG_HI_WORD 0x00000001
#define | TRNG_LOW_WORD 0x00000002

## Functions
void | TRNGConfigure (uint32_t ui32MinSamplesPerCycle, uint32_t ui32MaxSamplesPerCycle, uint32_t ui32ClocksPerSample)
| Configure the true random number generator. More...
__STATIC_INLINE void | TRNGEnable (void)
| Enable the TRNG. More...
__STATIC_INLINE void | TRNGDisable (void)
| Disable the TRNG module. More...
uint32_t | TRNGNumberGet (uint32_t ui32Word)
| Get a random number from the generator. More...
__STATIC_INLINE uint32_t | TRNGStatusGet (void)
| Get the status of the TRNG. More...
__STATIC_INLINE void | TRNGReset (void)
| Reset the TRNG. More...
__STATIC_INLINE void | TRNGIntEnable (uint32_t ui32IntFlags)
| Enables individual TRNG interrupt sources. More...
__STATIC_INLINE void | TRNGIntDisable (uint32_t ui32IntFlags)
| Disables individual TRNG interrupt sources. More...
__STATIC_INLINE uint32_t | TRNGIntStatus (bool bMasked)
| Gets the current interrupt status of the TRNG module. More...
__STATIC_INLINE void | TRNGIntClear (uint32_t ui32IntFlags)
| Clears TRNG interrupt sources. More...
__STATIC_INLINE void | TRNGIntRegister (void(*pfnHandler)(void))
| Registers an interrupt handler for a TRNG interrupt. More...
__STATIC_INLINE void | TRNGIntUnregister (void)
| Unregisters an interrupt handler for a TRNG interrupt. More...