SAMV71 Xplained Ultra Software Package 1.5

trng.c File Reference

#include "chip.h"

Go to the source code of this file.

Functions

void TRNG_Enable (void)
 Enables the TRNG to provide Random Values.
void TRNG_Disable (void)
 Disables the TRNG to provide Random Values.
void TRNG_EnableIt (void)
 Data Ready Interrupt enable.
void TRNG_DisableIt (void)
 Data Ready Interrupt Disable.
uint32_t TRNG_GetStatus (void)
 Get the current status register of the given TRNG peripheral.
uint32_t TRNG_GetRandData (void)
 Get the 32-bit Output Data from TRNG peripheral.

Detailed Description

Implementation of True Random Number Generator (TRNG)

Definition in file trng.c.


Function Documentation

void TRNG_Disable ( void   ) 

Disables the TRNG to provide Random Values.

Parameters:
key This key is to be written when the DISABLE bit is set.

Definition at line 85 of file trng.c.

void TRNG_Enable ( void   ) 

Enables the TRNG to provide Random Values.

Parameters:
key This key is to be written when the ENABLE bit is set.

Definition at line 76 of file trng.c.

uint32_t TRNG_GetRandData ( void   ) 

Get the 32-bit Output Data from TRNG peripheral.

Returns:
TRNG output data.

Definition at line 119 of file trng.c.

uint32_t TRNG_GetStatus ( void   ) 

Get the current status register of the given TRNG peripheral.

Returns:
TRNG status register.

Definition at line 110 of file trng.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines