1.23.21.17 RNG_NumGen1Get Function
C
uint32_t RNG_NumGen1Get (void);
Summary
Returns the value in the RNGNUMGEN1 register.
Description
When the PRNG operation is finished, RNGNUMGEN1 register contains the LSB 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 LSB (32-bits) of the pseudo-random number generated in PRNG.
Example
uint32_t numgen1 = 0;
numgen1 = RNG_NumGen1Get();
Remarks
None.