True Random Number Generator (TRNG) Driver Library.
|
__STATIC_INLINE void | DL_TRNG_enablePower (TRNG_Regs *trng) |
| Enables the Peripheral Write Enable (PWREN) register for the TRNG. More...
|
|
__STATIC_INLINE void | DL_TRNG_disablePower (TRNG_Regs *trng) |
| Disables the Peripheral Write Enable (PWREN) register for the TRNG. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isPowerEnabled (TRNG_Regs *trng) |
| Returns if the Peripheral Write Enable (PWREN) register for the TRNG is enabled. More...
|
|
__STATIC_INLINE DL_TRNG_CLOCK_DIVIDE | DL_TRNG_getClockDivider (const TRNG_Regs *trng) |
| Get the clock divider on the TRNG module. More...
|
|
__STATIC_INLINE void | DL_TRNG_setClockDivider (TRNG_Regs *trng, DL_TRNG_CLOCK_DIVIDE clockDivider) |
| Set the clock divider on the TRNG module. More...
|
|
__STATIC_INLINE void | DL_TRNG_reset (TRNG_Regs *trng) |
| Resets the TRNG module. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isReset (const TRNG_Regs *trng) |
| Returns if TRNG peripheral was reset. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isCaptureReady (const TRNG_Regs *trng) |
| Returns if the data capture is ready. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isCommandDone (const TRNG_Regs *trng) |
| Returns if the issued TRNG command is done. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isCommandFail (const TRNG_Regs *trng) |
| Returns if the issued TRNG command failed. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isHealthTestFail (const TRNG_Regs *trng) |
| Returns if a health test failed. More...
|
|
__STATIC_INLINE void | DL_TRNG_setDecimationRate (TRNG_Regs *trng, DL_TRNG_DECIMATION_RATE decimationRate) |
| Set the decimation rate. More...
|
|
__STATIC_INLINE DL_TRNG_DECIMATION_RATE | DL_TRNG_getDecimationRate (const TRNG_Regs *trng) |
| Get the decimation rate. More...
|
|
__STATIC_INLINE uint8_t | DL_TRNG_getDigitalHealthTestResults (const TRNG_Regs *trng) |
| Get the digital health test results. More...
|
|
__STATIC_INLINE uint8_t | DL_TRNG_getAnalogHealthTestResults (const TRNG_Regs *trng) |
| Get the analog health test results. More...
|
|
__STATIC_INLINE uint32_t | DL_TRNG_getCurrentState (const TRNG_Regs *trng) |
| Get the current state of the TRNG front end FSM. More...
|
|
__STATIC_INLINE uint32_t | DL_TRNG_getIssuedCommand (const TRNG_Regs *trng) |
| Get the last accepted command that was issued to the TRNG. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isRepetitionTestFail (const TRNG_Regs *trng) |
| Indicates if the repetition counter test caused the most recent failure. More...
|
|
__STATIC_INLINE bool | DL_TRNG_isAdaptiveTestFail (const TRNG_Regs *trng) |
| Indicates if the Adaptive Proportion Test (1,2,3, or 4-bit counters) caused the most recent failure. More...
|
|
__STATIC_INLINE void | DL_TRNG_enableInterrupt (TRNG_Regs *trng, uint32_t interruptMask) |
| Enable TRNG interrupt. More...
|
|
__STATIC_INLINE void | DL_TRNG_disableInterrupt (TRNG_Regs *trng, uint32_t interruptMask) |
| Disable TRNG interrupt. More...
|
|
__STATIC_INLINE uint32_t | DL_TRNG_getEnabledInterrupts (const TRNG_Regs *trng, uint32_t interruptMask) |
| Check which TRNG interrupts are enabled. More...
|
|
__STATIC_INLINE uint32_t | DL_TRNG_getEnabledInterruptStatus (const TRNG_Regs *trng, uint32_t interruptMask) |
| Check interrupt flag of enabled TRNG interrupt. More...
|
|
__STATIC_INLINE uint32_t | DL_TRNG_getRawInterruptStatus (const TRNG_Regs *trng, uint32_t interruptMask) |
| Check interrupt flag of any TRNG interrupt. More...
|
|
__STATIC_INLINE DL_TRNG_IIDX | DL_TRNG_getPendingInterrupt (const TRNG_Regs *trng) |
| Get highest priority pending TRNG interrupt. More...
|
|
__STATIC_INLINE void | DL_TRNG_clearInterruptStatus (TRNG_Regs *trng, uint32_t interruptMask) |
| Clear pending TRNG interrupt. More...
|
|
__STATIC_INLINE void | DL_TRNG_sendCommand (TRNG_Regs *trng, DL_TRNG_CMD cmd) |
| Update control register's command bits to send a TRNG command. More...
|
|
__STATIC_INLINE uint32_t | DL_TRNG_getCapture (const TRNG_Regs *trng) |
| Get word capture from TRNG. More...
|
|
bool | DL_TRNG_saveConfiguration (const TRNG_Regs *trng, DL_TRNG_backupConfig *ptr) |
| Save TRNG configuration before entering a power loss state. More...
|
|
bool | DL_TRNG_restoreConfiguration (TRNG_Regs *trng, DL_TRNG_backupConfig *ptr) |
| Restore TRNG configuration after leaving a power loss state. Upon restoration, if the TRNG was not originally in OFF state, then the TRNG will be set to the normal operating mode. More...
|
|