Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TRNG - True Random Number Generator

Driver for the TRNG (True Random Number Generator).

This driver provides access to the main features of the TRNG controller.

Functions

void trng_disable (Trng *p_trng)
 Disable TRNG. More...
 
void trng_disable_interrupt (Trng *p_trng)
 Disable TRNG interrupt. More...
 
void trng_enable (Trng *p_trng)
 Enable TRNG. More...
 
void trng_enable_interrupt (Trng *p_trng)
 Enable TRNG interrupt. More...
 
uint32_t trng_get_interrupt_mask (Trng *p_trng)
 Get TRNG interrupt mask. More...
 
uint32_t trng_get_interrupt_status (Trng *p_trng)
 Get TRNG interrupt status. More...
 
uint32_t trng_read_output_data (Trng *p_trng)
 Read TRNG output data. More...
 

void trng_disable ( Trng *  p_trng)

Disable TRNG.

Parameters
p_trngPointer to a TRNG instance.

References TRNG_CR_KEY_PASSWD.

void trng_disable_interrupt ( Trng *  p_trng)

Disable TRNG interrupt.

Parameters
p_trngPointer to a TRNG instance.

Referenced by TRNG_Handler().

void trng_enable ( Trng *  p_trng)

Enable TRNG.

Parameters
p_trngPointer to a TRNG instance.

References TRNG_CR_KEY_PASSWD.

Referenced by run_trng_test().

void trng_enable_interrupt ( Trng *  p_trng)

Enable TRNG interrupt.

Parameters
p_trngPointer to a TRNG instance.

Referenced by run_trng_test().

uint32_t trng_get_interrupt_mask ( Trng *  p_trng)

Get TRNG interrupt mask.

Parameters
p_trngPointer to a TRNG instance.
Return values
Theinterrupt mask value.
uint32_t trng_get_interrupt_status ( Trng *  p_trng)

Get TRNG interrupt status.

Parameters
p_trngPointer to a TRNG instance.
Return values
Theinterrupt status value.

Referenced by TRNG_Handler().

uint32_t trng_read_output_data ( Trng *  p_trng)

Read TRNG output data.

Parameters
p_trngPointer to a TRNG instance.
Return values
Theoutput data value.