EFR32 Mighty Gecko 12 Software Documentation  efr32mg12-doc-5.1.2
efr32mg12p_trng.h File Reference

Detailed Description

EFR32MG12P_TRNG register and bit field definitions.

Version
5.1.2

License

Copyright 2017 Silicon Laboratories, Inc. http://www.silabs.com

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. has no obligation to support this Software. Silicon Laboratories, Inc. is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.

Silicon Laboratories, Inc. will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.

Definition in file efr32mg12p_trng.h.

Go to the source code of this file.

Data Structures

struct  TRNG_TypeDef
 

Macros

#define _TRNG_CONTROL_ALMIEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_ALMIEN_MASK   0x400UL
 
#define _TRNG_CONTROL_ALMIEN_SHIFT   10
 
#define _TRNG_CONTROL_APT4096IEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_APT4096IEN_MASK   0x40UL
 
#define _TRNG_CONTROL_APT4096IEN_SHIFT   6
 
#define _TRNG_CONTROL_APT64IEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_APT64IEN_MASK   0x20UL
 
#define _TRNG_CONTROL_APT64IEN_SHIFT   5
 
#define _TRNG_CONTROL_BYPAIS31_BYPASS   0x00000001UL
 
#define _TRNG_CONTROL_BYPAIS31_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_BYPAIS31_MASK   0x2000UL
 
#define _TRNG_CONTROL_BYPAIS31_NORMAL   0x00000000UL
 
#define _TRNG_CONTROL_BYPAIS31_SHIFT   13
 
#define _TRNG_CONTROL_BYPNIST_BYPASS   0x00000001UL
 
#define _TRNG_CONTROL_BYPNIST_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_BYPNIST_MASK   0x1000UL
 
#define _TRNG_CONTROL_BYPNIST_NORMAL   0x00000000UL
 
#define _TRNG_CONTROL_BYPNIST_SHIFT   12
 
#define _TRNG_CONTROL_CONDBYPASS_BYPASS   0x00000001UL
 
#define _TRNG_CONTROL_CONDBYPASS_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_CONDBYPASS_MASK   0x8UL
 
#define _TRNG_CONTROL_CONDBYPASS_NORMAL   0x00000000UL
 
#define _TRNG_CONTROL_CONDBYPASS_SHIFT   3
 
#define _TRNG_CONTROL_ENABLE_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_ENABLE_DISABLED   0x00000000UL
 
#define _TRNG_CONTROL_ENABLE_ENABLED   0x00000001UL
 
#define _TRNG_CONTROL_ENABLE_MASK   0x1UL
 
#define _TRNG_CONTROL_ENABLE_SHIFT   0
 
#define _TRNG_CONTROL_FORCERUN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_FORCERUN_MASK   0x800UL
 
#define _TRNG_CONTROL_FORCERUN_NORMAL   0x00000000UL
 
#define _TRNG_CONTROL_FORCERUN_RUN   0x00000001UL
 
#define _TRNG_CONTROL_FORCERUN_SHIFT   11
 
#define _TRNG_CONTROL_FULLIEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_FULLIEN_MASK   0x80UL
 
#define _TRNG_CONTROL_FULLIEN_SHIFT   7
 
#define _TRNG_CONTROL_MASK   0x00003FFDUL
 
#define _TRNG_CONTROL_PREIEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_PREIEN_MASK   0x200UL
 
#define _TRNG_CONTROL_PREIEN_SHIFT   9
 
#define _TRNG_CONTROL_REPCOUNTIEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_REPCOUNTIEN_MASK   0x10UL
 
#define _TRNG_CONTROL_REPCOUNTIEN_SHIFT   4
 
#define _TRNG_CONTROL_RESETVALUE   0x00000000UL
 
#define _TRNG_CONTROL_SOFTRESET_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_SOFTRESET_MASK   0x100UL
 
#define _TRNG_CONTROL_SOFTRESET_NORMAL   0x00000000UL
 
#define _TRNG_CONTROL_SOFTRESET_RESET   0x00000001UL
 
#define _TRNG_CONTROL_SOFTRESET_SHIFT   8
 
#define _TRNG_CONTROL_TESTEN_DEFAULT   0x00000000UL
 
#define _TRNG_CONTROL_TESTEN_MASK   0x4UL
 
#define _TRNG_CONTROL_TESTEN_NOISE   0x00000000UL
 
#define _TRNG_CONTROL_TESTEN_SHIFT   2
 
#define _TRNG_CONTROL_TESTEN_TESTDATA   0x00000001UL
 
#define _TRNG_FIFO_MASK   0xFFFFFFFFUL
 
#define _TRNG_FIFO_RESETVALUE   0x00000000UL
 
#define _TRNG_FIFO_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_FIFO_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_FIFO_VALUE_SHIFT   0
 
#define _TRNG_FIFODEPTH_MASK   0xFFFFFFFFUL
 
#define _TRNG_FIFODEPTH_RESETVALUE   0x00000040UL
 
#define _TRNG_FIFODEPTH_VALUE_DEFAULT   0x00000040UL
 
#define _TRNG_FIFODEPTH_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_FIFODEPTH_VALUE_SHIFT   0
 
#define _TRNG_FIFOLEVEL_MASK   0xFFFFFFFFUL
 
#define _TRNG_FIFOLEVEL_RESETVALUE   0x00000000UL
 
#define _TRNG_FIFOLEVEL_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_FIFOLEVEL_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_FIFOLEVEL_VALUE_SHIFT   0
 
#define _TRNG_INITWAITVAL_MASK   0x000000FFUL
 
#define _TRNG_INITWAITVAL_RESETVALUE   0x000000FFUL
 
#define _TRNG_INITWAITVAL_VALUE_DEFAULT   0x000000FFUL
 
#define _TRNG_INITWAITVAL_VALUE_MASK   0xFFUL
 
#define _TRNG_INITWAITVAL_VALUE_SHIFT   0
 
#define _TRNG_KEY0_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY0_RESETVALUE   0x00000000UL
 
#define _TRNG_KEY0_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_KEY0_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY0_VALUE_SHIFT   0
 
#define _TRNG_KEY1_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY1_RESETVALUE   0x00000000UL
 
#define _TRNG_KEY1_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_KEY1_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY1_VALUE_SHIFT   0
 
#define _TRNG_KEY2_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY2_RESETVALUE   0x00000000UL
 
#define _TRNG_KEY2_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_KEY2_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY2_VALUE_SHIFT   0
 
#define _TRNG_KEY3_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY3_RESETVALUE   0x00000000UL
 
#define _TRNG_KEY3_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_KEY3_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_KEY3_VALUE_SHIFT   0
 
#define _TRNG_STATUS_ALMIF_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_ALMIF_MASK   0x200UL
 
#define _TRNG_STATUS_ALMIF_SHIFT   9
 
#define _TRNG_STATUS_APT4096IF_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_APT4096IF_MASK   0x40UL
 
#define _TRNG_STATUS_APT4096IF_SHIFT   6
 
#define _TRNG_STATUS_APT64IF_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_APT64IF_MASK   0x20UL
 
#define _TRNG_STATUS_APT64IF_SHIFT   5
 
#define _TRNG_STATUS_FULLIF_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_FULLIF_MASK   0x80UL
 
#define _TRNG_STATUS_FULLIF_SHIFT   7
 
#define _TRNG_STATUS_MASK   0x000003F1UL
 
#define _TRNG_STATUS_PREIF_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_PREIF_MASK   0x100UL
 
#define _TRNG_STATUS_PREIF_SHIFT   8
 
#define _TRNG_STATUS_REPCOUNTIF_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_REPCOUNTIF_MASK   0x10UL
 
#define _TRNG_STATUS_REPCOUNTIF_SHIFT   4
 
#define _TRNG_STATUS_RESETVALUE   0x00000000UL
 
#define _TRNG_STATUS_TESTDATABUSY_BUSY   0x00000001UL
 
#define _TRNG_STATUS_TESTDATABUSY_DEFAULT   0x00000000UL
 
#define _TRNG_STATUS_TESTDATABUSY_IDLE   0x00000000UL
 
#define _TRNG_STATUS_TESTDATABUSY_MASK   0x1UL
 
#define _TRNG_STATUS_TESTDATABUSY_SHIFT   0
 
#define _TRNG_TESTDATA_MASK   0xFFFFFFFFUL
 
#define _TRNG_TESTDATA_RESETVALUE   0x00000000UL
 
#define _TRNG_TESTDATA_VALUE_DEFAULT   0x00000000UL
 
#define _TRNG_TESTDATA_VALUE_MASK   0xFFFFFFFFUL
 
#define _TRNG_TESTDATA_VALUE_SHIFT   0
 
#define TRNG_CONTROL_ALMIEN   (0x1UL << 10)
 
#define TRNG_CONTROL_ALMIEN_DEFAULT   (_TRNG_CONTROL_ALMIEN_DEFAULT << 10)
 
#define TRNG_CONTROL_APT4096IEN   (0x1UL << 6)
 
#define TRNG_CONTROL_APT4096IEN_DEFAULT   (_TRNG_CONTROL_APT4096IEN_DEFAULT << 6)
 
#define TRNG_CONTROL_APT64IEN   (0x1UL << 5)
 
#define TRNG_CONTROL_APT64IEN_DEFAULT   (_TRNG_CONTROL_APT64IEN_DEFAULT << 5)
 
#define TRNG_CONTROL_BYPAIS31   (0x1UL << 13)
 
#define TRNG_CONTROL_BYPAIS31_BYPASS   (_TRNG_CONTROL_BYPAIS31_BYPASS << 13)
 
#define TRNG_CONTROL_BYPAIS31_DEFAULT   (_TRNG_CONTROL_BYPAIS31_DEFAULT << 13)
 
#define TRNG_CONTROL_BYPAIS31_NORMAL   (_TRNG_CONTROL_BYPAIS31_NORMAL << 13)
 
#define TRNG_CONTROL_BYPNIST   (0x1UL << 12)
 
#define TRNG_CONTROL_BYPNIST_BYPASS   (_TRNG_CONTROL_BYPNIST_BYPASS << 12)
 
#define TRNG_CONTROL_BYPNIST_DEFAULT   (_TRNG_CONTROL_BYPNIST_DEFAULT << 12)
 
#define TRNG_CONTROL_BYPNIST_NORMAL   (_TRNG_CONTROL_BYPNIST_NORMAL << 12)
 
#define TRNG_CONTROL_CONDBYPASS   (0x1UL << 3)
 
#define TRNG_CONTROL_CONDBYPASS_BYPASS   (_TRNG_CONTROL_CONDBYPASS_BYPASS << 3)
 
#define TRNG_CONTROL_CONDBYPASS_DEFAULT   (_TRNG_CONTROL_CONDBYPASS_DEFAULT << 3)
 
#define TRNG_CONTROL_CONDBYPASS_NORMAL   (_TRNG_CONTROL_CONDBYPASS_NORMAL << 3)
 
#define TRNG_CONTROL_ENABLE   (0x1UL << 0)
 
#define TRNG_CONTROL_ENABLE_DEFAULT   (_TRNG_CONTROL_ENABLE_DEFAULT << 0)
 
#define TRNG_CONTROL_ENABLE_DISABLED   (_TRNG_CONTROL_ENABLE_DISABLED << 0)
 
#define TRNG_CONTROL_ENABLE_ENABLED   (_TRNG_CONTROL_ENABLE_ENABLED << 0)
 
#define TRNG_CONTROL_FORCERUN   (0x1UL << 11)
 
#define TRNG_CONTROL_FORCERUN_DEFAULT   (_TRNG_CONTROL_FORCERUN_DEFAULT << 11)
 
#define TRNG_CONTROL_FORCERUN_NORMAL   (_TRNG_CONTROL_FORCERUN_NORMAL << 11)
 
#define TRNG_CONTROL_FORCERUN_RUN   (_TRNG_CONTROL_FORCERUN_RUN << 11)
 
#define TRNG_CONTROL_FULLIEN   (0x1UL << 7)
 
#define TRNG_CONTROL_FULLIEN_DEFAULT   (_TRNG_CONTROL_FULLIEN_DEFAULT << 7)
 
#define TRNG_CONTROL_PREIEN   (0x1UL << 9)
 
#define TRNG_CONTROL_PREIEN_DEFAULT   (_TRNG_CONTROL_PREIEN_DEFAULT << 9)
 
#define TRNG_CONTROL_REPCOUNTIEN   (0x1UL << 4)
 
#define TRNG_CONTROL_REPCOUNTIEN_DEFAULT   (_TRNG_CONTROL_REPCOUNTIEN_DEFAULT << 4)
 
#define TRNG_CONTROL_SOFTRESET   (0x1UL << 8)
 
#define TRNG_CONTROL_SOFTRESET_DEFAULT   (_TRNG_CONTROL_SOFTRESET_DEFAULT << 8)
 
#define TRNG_CONTROL_SOFTRESET_NORMAL   (_TRNG_CONTROL_SOFTRESET_NORMAL << 8)
 
#define TRNG_CONTROL_SOFTRESET_RESET   (_TRNG_CONTROL_SOFTRESET_RESET << 8)
 
#define TRNG_CONTROL_TESTEN   (0x1UL << 2)
 
#define TRNG_CONTROL_TESTEN_DEFAULT   (_TRNG_CONTROL_TESTEN_DEFAULT << 2)
 
#define TRNG_CONTROL_TESTEN_NOISE   (_TRNG_CONTROL_TESTEN_NOISE << 2)
 
#define TRNG_CONTROL_TESTEN_TESTDATA   (_TRNG_CONTROL_TESTEN_TESTDATA << 2)
 
#define TRNG_FIFO_VALUE_DEFAULT   (_TRNG_FIFO_VALUE_DEFAULT << 0)
 
#define TRNG_FIFODEPTH_VALUE_DEFAULT   (_TRNG_FIFODEPTH_VALUE_DEFAULT << 0)
 
#define TRNG_FIFOLEVEL_VALUE_DEFAULT   (_TRNG_FIFOLEVEL_VALUE_DEFAULT << 0)
 
#define TRNG_INITWAITVAL_VALUE_DEFAULT   (_TRNG_INITWAITVAL_VALUE_DEFAULT << 0)
 
#define TRNG_KEY0_VALUE_DEFAULT   (_TRNG_KEY0_VALUE_DEFAULT << 0)
 
#define TRNG_KEY1_VALUE_DEFAULT   (_TRNG_KEY1_VALUE_DEFAULT << 0)
 
#define TRNG_KEY2_VALUE_DEFAULT   (_TRNG_KEY2_VALUE_DEFAULT << 0)
 
#define TRNG_KEY3_VALUE_DEFAULT   (_TRNG_KEY3_VALUE_DEFAULT << 0)
 
#define TRNG_STATUS_ALMIF   (0x1UL << 9)
 
#define TRNG_STATUS_ALMIF_DEFAULT   (_TRNG_STATUS_ALMIF_DEFAULT << 9)
 
#define TRNG_STATUS_APT4096IF   (0x1UL << 6)
 
#define TRNG_STATUS_APT4096IF_DEFAULT   (_TRNG_STATUS_APT4096IF_DEFAULT << 6)
 
#define TRNG_STATUS_APT64IF   (0x1UL << 5)
 
#define TRNG_STATUS_APT64IF_DEFAULT   (_TRNG_STATUS_APT64IF_DEFAULT << 5)
 
#define TRNG_STATUS_FULLIF   (0x1UL << 7)
 
#define TRNG_STATUS_FULLIF_DEFAULT   (_TRNG_STATUS_FULLIF_DEFAULT << 7)
 
#define TRNG_STATUS_PREIF   (0x1UL << 8)
 
#define TRNG_STATUS_PREIF_DEFAULT   (_TRNG_STATUS_PREIF_DEFAULT << 8)
 
#define TRNG_STATUS_REPCOUNTIF   (0x1UL << 4)
 
#define TRNG_STATUS_REPCOUNTIF_DEFAULT   (_TRNG_STATUS_REPCOUNTIF_DEFAULT << 4)
 
#define TRNG_STATUS_TESTDATABUSY   (0x1UL << 0)
 
#define TRNG_STATUS_TESTDATABUSY_BUSY   (_TRNG_STATUS_TESTDATABUSY_BUSY << 0)
 
#define TRNG_STATUS_TESTDATABUSY_DEFAULT   (_TRNG_STATUS_TESTDATABUSY_DEFAULT << 0)
 
#define TRNG_STATUS_TESTDATABUSY_IDLE   (_TRNG_STATUS_TESTDATABUSY_IDLE << 0)
 
#define TRNG_TESTDATA_VALUE_DEFAULT   (_TRNG_TESTDATA_VALUE_DEFAULT << 0)