1.22.22.18 1.23.21.18 1.24.18.18 RNG_NumGen2Get Function

C

uint32_t RNG_NumGen2Get (void);

Summary

Returns the value in the RNGNUMGEN2 register.

Description

When the PRNG operation is finished, RNGNUMGEN2 register contains the MSB 32-bits of the current random number in the PRNG. This function can be used to read the generated random number.

Precondition

None.

Parameters

None.

Returns

The MSB (32-bits) of the pseudo-random number generated in PRNG.

Example

uint32_t numgen2 = 0;
numgen2 = RNG_NumGen2Get();

Remarks

None.