1.9.24.3 TRNG_ReadData Function

C

uint32_t TRNG_ReadData( void )

Summary

Generates and returns a 32-bit random number in blocking mode

Description

This function generates and returns a 32-bit random integer in blocking mode.

Precondition

None

Parameters

None.

Returns

32-bit true random number

Example

uint32_t random_number = TRNG_ReadData();

Remarks

This API is only generated when the interrupt mode is disabled. In interrupt mode the random number will be passed via callback.