1.2.26.3 1.4.27.3 1.6.26.3 1.8.23.2 1.9.24.3 1.25.24.2 1.26.21.2 1.27.24.2 1.28.26.2 1.32.30.3 1.34.24.2 1.38.26.3 1.39.22.3 1.40.25.3 1.41.22.2 1.42.21.2 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.