ADuCM302x Device Drivers API Reference Manual  Release 3.1.2.0
RNG Driver Configuration

Macros

#define RNG0_CFG_ONLY_8_BIT   1
 
#define RNG0_CFG_LENGTH_RELOAD   256u
 
#define RNG0_CFG_LENGTH_PRESCALER   0u
 

Detailed Description

Macro Definition Documentation

◆ RNG0_CFG_ONLY_8_BIT

#define RNG0_CFG_ONLY_8_BIT   1

RNG Control Register, bit 3
Enable only 8-bit generation
0 - Generate 32-bit random number
1 - Generate only 8-bit random number

Definition at line 69 of file adi_rng_config.h.

Referenced by adi_rng_Open().

◆ RNG0_CFG_LENGTH_RELOAD

#define RNG0_CFG_LENGTH_RELOAD   256u

RNG Sample Length Register, bits [11:0]
The register defines the number of samples to accumulate in the CRC register when generating a random number.
Bits [11:0] contains the reload value of the sample counter

Definition at line 78 of file adi_rng_config.h.

Referenced by adi_rng_Open().

◆ RNG0_CFG_LENGTH_PRESCALER

#define RNG0_CFG_LENGTH_PRESCALER   0u

RNG Sample Length Register, bits [15:12]
The register defines the number of samples to accumulate in the CRC register when generating a random number. The number of values accumulated in the counter reload value is scaled by 2^prescaler.
Bits [15:12] contains the prescaler for the sample counter

Definition at line 88 of file adi_rng_config.h.

Referenced by adi_rng_Open().