MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
TRNG

Modules

 TRNG_Registers
 

Functions

int TRNG_Init (const sys_cfg_t *sys_cfg)
 
int TRNG_Shutdown (void)
 
uint8_t TRNG_Read8BIT (mxc_trng_regs_t *trng)
 
uint16_t TRNG_Read16BIT (mxc_trng_regs_t *trng)
 
uint32_t TRNG_Read32BIT (mxc_trng_regs_t *trng)
 
void TRNG_Read (mxc_trng_regs_t *trng, uint8_t *data, int len)
 
void TRNG_Generate_AES (mxc_trng_regs_t *trng)
 

Detailed Description

Function Documentation

◆ TRNG_Generate_AES()

void TRNG_Generate_AES ( mxc_trng_regs_t trng)

Generates 256-bits random number automatically.

Parameters
trngPointer to the trng register structure.

◆ TRNG_Init()

int TRNG_Init ( const sys_cfg_t *  sys_cfg)

TRNG initialize.

Parameters
Systemconfiguration object
Returns
E_NO_ERROR if successful

◆ TRNG_Read()

void TRNG_Read ( mxc_trng_regs_t trng,
uint8_t *  data,
int  len 
)

Generates Random Number of variable length.

Parameters
trngPointer to the trng register structure.
dataPointer to the Data Buffer.
lenDefines length of data(bytes).

◆ TRNG_Read16BIT()

uint16_t TRNG_Read16BIT ( mxc_trng_regs_t trng)

Reads 16-bit value stored in the data register.

Parameters
trngPointer to the trng register structure.
Returns
16-bit data register value.

◆ TRNG_Read32BIT()

uint32_t TRNG_Read32BIT ( mxc_trng_regs_t trng)

Reads 32-bit value stored in the data register.

Parameters
trngPointer to the trng register structure.
Returns
32-bit data register value.

◆ TRNG_Read8BIT()

uint8_t TRNG_Read8BIT ( mxc_trng_regs_t trng)

Reads 8-bit value stored in the data register.

Parameters
trngPointer to the trng register structure.
Returns
8-bit data register value.

◆ TRNG_Shutdown()

int TRNG_Shutdown ( void  )

TRNG Shutdown.

Returns
E_NO_ERROR if successful