MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
RNGA Configuration Structures

Overview

This section describes default configuration structures for RNGA module. Create a new configuration structure if default ones don't initialize on-chip peripheral in required operating mode (see Creating Configuration Structure).

Macros

#define RNGA_MODULE_NORMAL_MODE_CONFIG
 Normal mode configuration. More...
 

Macro Definition Documentation

#define RNGA_MODULE_NORMAL_MODE_CONFIG
Value:
(tRNGA){ \
/* CR */ CLR(RNG_CR_SLP_MASK)|SET(RNG_CR_CLRI_MASK)|CLR(RNG_CR_INTM_MASK)| \
/* .. */ SET(RNG_CR_HA_MASK)|SET(RNG_CR_GO_MASK), \
}

Initializes RNGA module to operate with following characteristics:

  • Initiated random number generation.
  • Normal mode (new random word is available every 256 system clock cycles).
  • High Assurance mode enabled (reading random word while not ready sets security violation flag).