|
#define | RNG_BASE (0x400A0000u) |
|
#define | RNG ((RNG_Type *)RNG_BASE) |
|
#define | RNG_BASE_ADDRS { RNG_BASE } |
|
#define | RNG_BASE_PTRS { RNG } |
|
#define | RNG_IRQS { RNG_IRQn } |
|
#define | RNG_VER_MINOR_MASK 0xFFu |
|
#define | RNG_VER_MINOR_SHIFT 0 |
|
#define | RNG_VER_MINOR(x) (((uint32_t)(((uint32_t)(x))<<RNG_VER_MINOR_SHIFT))&RNG_VER_MINOR_MASK) |
|
#define | RNG_VER_MAJOR_MASK 0xFF00u |
|
#define | RNG_VER_MAJOR_SHIFT 8 |
|
#define | RNG_VER_MAJOR(x) (((uint32_t)(((uint32_t)(x))<<RNG_VER_MAJOR_SHIFT))&RNG_VER_MAJOR_MASK) |
|
#define | RNG_VER_TYPE_MASK 0xF0000000u |
|
#define | RNG_VER_TYPE_SHIFT 28 |
|
#define | RNG_VER_TYPE(x) (((uint32_t)(((uint32_t)(x))<<RNG_VER_TYPE_SHIFT))&RNG_VER_TYPE_MASK) |
|
#define | RNG_CMD_ST_MASK 0x1u |
|
#define | RNG_CMD_ST_SHIFT 0 |
|
#define | RNG_CMD_GS_MASK 0x2u |
|
#define | RNG_CMD_GS_SHIFT 1 |
|
#define | RNG_CMD_CI_MASK 0x10u |
|
#define | RNG_CMD_CI_SHIFT 4 |
|
#define | RNG_CMD_CE_MASK 0x20u |
|
#define | RNG_CMD_CE_SHIFT 5 |
|
#define | RNG_CMD_SR_MASK 0x40u |
|
#define | RNG_CMD_SR_SHIFT 6 |
|
#define | RNG_CR_FUFMOD_MASK 0x3u |
|
#define | RNG_CR_FUFMOD_SHIFT 0 |
|
#define | RNG_CR_FUFMOD(x) (((uint32_t)(((uint32_t)(x))<<RNG_CR_FUFMOD_SHIFT))&RNG_CR_FUFMOD_MASK) |
|
#define | RNG_CR_AR_MASK 0x10u |
|
#define | RNG_CR_AR_SHIFT 4 |
|
#define | RNG_CR_MASKDONE_MASK 0x20u |
|
#define | RNG_CR_MASKDONE_SHIFT 5 |
|
#define | RNG_CR_MASKERR_MASK 0x40u |
|
#define | RNG_CR_MASKERR_SHIFT 6 |
|
#define | RNG_SR_BUSY_MASK 0x2u |
|
#define | RNG_SR_BUSY_SHIFT 1 |
|
#define | RNG_SR_RS_MASK 0x8u |
|
#define | RNG_SR_RS_SHIFT 3 |
|
#define | RNG_SR_STDN_MASK 0x10u |
|
#define | RNG_SR_STDN_SHIFT 4 |
|
#define | RNG_SR_SDN_MASK 0x20u |
|
#define | RNG_SR_SDN_SHIFT 5 |
|
#define | RNG_SR_NSDN_MASK 0x40u |
|
#define | RNG_SR_NSDN_SHIFT 6 |
|
#define | RNG_SR_FIFO_LVL_MASK 0xF00u |
|
#define | RNG_SR_FIFO_LVL_SHIFT 8 |
|
#define | RNG_SR_FIFO_LVL(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_FIFO_LVL_SHIFT))&RNG_SR_FIFO_LVL_MASK) |
|
#define | RNG_SR_FIFO_SIZE_MASK 0xF000u |
|
#define | RNG_SR_FIFO_SIZE_SHIFT 12 |
|
#define | RNG_SR_FIFO_SIZE(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_FIFO_SIZE_SHIFT))&RNG_SR_FIFO_SIZE_MASK) |
|
#define | RNG_SR_ERR_MASK 0x10000u |
|
#define | RNG_SR_ERR_SHIFT 16 |
|
#define | RNG_SR_ST_PF_MASK 0xE00000u |
|
#define | RNG_SR_ST_PF_SHIFT 21 |
|
#define | RNG_SR_ST_PF(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_ST_PF_SHIFT))&RNG_SR_ST_PF_MASK) |
|
#define | RNG_SR_STATPF_MASK 0xFF000000u |
|
#define | RNG_SR_STATPF_SHIFT 24 |
|
#define | RNG_SR_STATPF(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_STATPF_SHIFT))&RNG_SR_STATPF_MASK) |
|
#define | RNG_ESR_LFE_MASK 0x1u |
|
#define | RNG_ESR_LFE_SHIFT 0 |
|
#define | RNG_ESR_OSCE_MASK 0x2u |
|
#define | RNG_ESR_OSCE_SHIFT 1 |
|
#define | RNG_ESR_STE_MASK 0x4u |
|
#define | RNG_ESR_STE_SHIFT 2 |
|
#define | RNG_ESR_SATE_MASK 0x8u |
|
#define | RNG_ESR_SATE_SHIFT 3 |
|
#define | RNG_ESR_FUFE_MASK 0x10u |
|
#define | RNG_ESR_FUFE_SHIFT 4 |
|
#define | RNG_OUT_RANDOUT_MASK 0xFFFFFFFFu |
|
#define | RNG_OUT_RANDOUT_SHIFT 0 |
|
#define | RNG_OUT_RANDOUT(x) (((uint32_t)(((uint32_t)(x))<<RNG_OUT_RANDOUT_SHIFT))&RNG_OUT_RANDOUT_MASK) |
|
|
#define | RNG_CR_GO_MASK (0x1U) |
|
#define | RNG_CR_GO_SHIFT (0U) |
|
#define | RNG_CR_GO(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_GO_SHIFT)) & RNG_CR_GO_MASK) |
|
#define | RNG_CR_HA_MASK (0x2U) |
|
#define | RNG_CR_HA_SHIFT (1U) |
|
#define | RNG_CR_HA(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_HA_SHIFT)) & RNG_CR_HA_MASK) |
|
#define | RNG_CR_INTM_MASK (0x4U) |
|
#define | RNG_CR_INTM_SHIFT (2U) |
|
#define | RNG_CR_INTM(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_INTM_SHIFT)) & RNG_CR_INTM_MASK) |
|
#define | RNG_CR_CLRI_MASK (0x8U) |
|
#define | RNG_CR_CLRI_SHIFT (3U) |
|
#define | RNG_CR_CLRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_CLRI_SHIFT)) & RNG_CR_CLRI_MASK) |
|
#define | RNG_CR_SLP_MASK (0x10U) |
|
#define | RNG_CR_SLP_SHIFT (4U) |
|
#define | RNG_CR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_SLP_SHIFT)) & RNG_CR_SLP_MASK) |
|
#define | RNG_CR_GO_MASK (0x1U) |
|
#define | RNG_CR_GO_SHIFT (0U) |
|
#define | RNG_CR_GO(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_GO_SHIFT)) & RNG_CR_GO_MASK) |
|
#define | RNG_CR_HA_MASK (0x2U) |
|
#define | RNG_CR_HA_SHIFT (1U) |
|
#define | RNG_CR_HA(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_HA_SHIFT)) & RNG_CR_HA_MASK) |
|
#define | RNG_CR_INTM_MASK (0x4U) |
|
#define | RNG_CR_INTM_SHIFT (2U) |
|
#define | RNG_CR_INTM(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_INTM_SHIFT)) & RNG_CR_INTM_MASK) |
|
#define | RNG_CR_CLRI_MASK (0x8U) |
|
#define | RNG_CR_CLRI_SHIFT (3U) |
|
#define | RNG_CR_CLRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_CLRI_SHIFT)) & RNG_CR_CLRI_MASK) |
|
#define | RNG_CR_SLP_MASK (0x10U) |
|
#define | RNG_CR_SLP_SHIFT (4U) |
|
#define | RNG_CR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_SLP_SHIFT)) & RNG_CR_SLP_MASK) |
|
#define | RNG_CR_GO_MASK (0x1U) |
|
#define | RNG_CR_GO_SHIFT (0U) |
|
#define | RNG_CR_GO(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_GO_SHIFT)) & RNG_CR_GO_MASK) |
|
#define | RNG_CR_HA_MASK (0x2U) |
|
#define | RNG_CR_HA_SHIFT (1U) |
|
#define | RNG_CR_HA(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_HA_SHIFT)) & RNG_CR_HA_MASK) |
|
#define | RNG_CR_INTM_MASK (0x4U) |
|
#define | RNG_CR_INTM_SHIFT (2U) |
|
#define | RNG_CR_INTM(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_INTM_SHIFT)) & RNG_CR_INTM_MASK) |
|
#define | RNG_CR_CLRI_MASK (0x8U) |
|
#define | RNG_CR_CLRI_SHIFT (3U) |
|
#define | RNG_CR_CLRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_CLRI_SHIFT)) & RNG_CR_CLRI_MASK) |
|
#define | RNG_CR_SLP_MASK (0x10U) |
|
#define | RNG_CR_SLP_SHIFT (4U) |
|
#define | RNG_CR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_SLP_SHIFT)) & RNG_CR_SLP_MASK) |
|
#define | RNG_CR_GO_MASK (0x1U) |
|
#define | RNG_CR_GO_SHIFT (0U) |
|
#define | RNG_CR_GO(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_GO_SHIFT)) & RNG_CR_GO_MASK) |
|
#define | RNG_CR_HA_MASK (0x2U) |
|
#define | RNG_CR_HA_SHIFT (1U) |
|
#define | RNG_CR_HA(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_HA_SHIFT)) & RNG_CR_HA_MASK) |
|
#define | RNG_CR_INTM_MASK (0x4U) |
|
#define | RNG_CR_INTM_SHIFT (2U) |
|
#define | RNG_CR_INTM(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_INTM_SHIFT)) & RNG_CR_INTM_MASK) |
|
#define | RNG_CR_CLRI_MASK (0x8U) |
|
#define | RNG_CR_CLRI_SHIFT (3U) |
|
#define | RNG_CR_CLRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_CLRI_SHIFT)) & RNG_CR_CLRI_MASK) |
|
#define | RNG_CR_SLP_MASK (0x10U) |
|
#define | RNG_CR_SLP_SHIFT (4U) |
|
#define | RNG_CR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_SLP_SHIFT)) & RNG_CR_SLP_MASK) |
|
|
#define | RNG_SR_SECV_MASK (0x1U) |
|
#define | RNG_SR_SECV_SHIFT (0U) |
|
#define | RNG_SR_SECV(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SECV_SHIFT)) & RNG_SR_SECV_MASK) |
|
#define | RNG_SR_LRS_MASK (0x2U) |
|
#define | RNG_SR_LRS_SHIFT (1U) |
|
#define | RNG_SR_LRS(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_LRS_SHIFT)) & RNG_SR_LRS_MASK) |
|
#define | RNG_SR_ORU_MASK (0x4U) |
|
#define | RNG_SR_ORU_SHIFT (2U) |
|
#define | RNG_SR_ORU(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ORU_SHIFT)) & RNG_SR_ORU_MASK) |
|
#define | RNG_SR_ERRI_MASK (0x8U) |
|
#define | RNG_SR_ERRI_SHIFT (3U) |
|
#define | RNG_SR_ERRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ERRI_SHIFT)) & RNG_SR_ERRI_MASK) |
|
#define | RNG_SR_SLP_MASK (0x10U) |
|
#define | RNG_SR_SLP_SHIFT (4U) |
|
#define | RNG_SR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SLP_SHIFT)) & RNG_SR_SLP_MASK) |
|
#define | RNG_SR_OREG_LVL_MASK (0xFF00U) |
|
#define | RNG_SR_OREG_LVL_SHIFT (8U) |
|
#define | RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK) |
|
#define | RNG_SR_OREG_SIZE_MASK (0xFF0000U) |
|
#define | RNG_SR_OREG_SIZE_SHIFT (16U) |
|
#define | RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK) |
|
#define | RNG_SR_SLP_MASK 0x4u |
|
#define | RNG_SR_SLP_SHIFT 2 |
|
#define | RNG_SR_SECV_MASK (0x1U) |
|
#define | RNG_SR_SECV_SHIFT (0U) |
|
#define | RNG_SR_SECV(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SECV_SHIFT)) & RNG_SR_SECV_MASK) |
|
#define | RNG_SR_LRS_MASK (0x2U) |
|
#define | RNG_SR_LRS_SHIFT (1U) |
|
#define | RNG_SR_LRS(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_LRS_SHIFT)) & RNG_SR_LRS_MASK) |
|
#define | RNG_SR_ORU_MASK (0x4U) |
|
#define | RNG_SR_ORU_SHIFT (2U) |
|
#define | RNG_SR_ORU(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ORU_SHIFT)) & RNG_SR_ORU_MASK) |
|
#define | RNG_SR_ERRI_MASK (0x8U) |
|
#define | RNG_SR_ERRI_SHIFT (3U) |
|
#define | RNG_SR_ERRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ERRI_SHIFT)) & RNG_SR_ERRI_MASK) |
|
#define | RNG_SR_SLP_MASK (0x10U) |
|
#define | RNG_SR_SLP_SHIFT (4U) |
|
#define | RNG_SR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SLP_SHIFT)) & RNG_SR_SLP_MASK) |
|
#define | RNG_SR_OREG_LVL_MASK (0xFF00U) |
|
#define | RNG_SR_OREG_LVL_SHIFT (8U) |
|
#define | RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK) |
|
#define | RNG_SR_OREG_SIZE_MASK (0xFF0000U) |
|
#define | RNG_SR_OREG_SIZE_SHIFT (16U) |
|
#define | RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK) |
|
#define | RNG_SR_SECV_MASK (0x1U) |
|
#define | RNG_SR_SECV_SHIFT (0U) |
|
#define | RNG_SR_SECV(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SECV_SHIFT)) & RNG_SR_SECV_MASK) |
|
#define | RNG_SR_LRS_MASK (0x2U) |
|
#define | RNG_SR_LRS_SHIFT (1U) |
|
#define | RNG_SR_LRS(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_LRS_SHIFT)) & RNG_SR_LRS_MASK) |
|
#define | RNG_SR_ORU_MASK (0x4U) |
|
#define | RNG_SR_ORU_SHIFT (2U) |
|
#define | RNG_SR_ORU(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ORU_SHIFT)) & RNG_SR_ORU_MASK) |
|
#define | RNG_SR_ERRI_MASK (0x8U) |
|
#define | RNG_SR_ERRI_SHIFT (3U) |
|
#define | RNG_SR_ERRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ERRI_SHIFT)) & RNG_SR_ERRI_MASK) |
|
#define | RNG_SR_SLP_MASK (0x10U) |
|
#define | RNG_SR_SLP_SHIFT (4U) |
|
#define | RNG_SR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SLP_SHIFT)) & RNG_SR_SLP_MASK) |
|
#define | RNG_SR_OREG_LVL_MASK (0xFF00U) |
|
#define | RNG_SR_OREG_LVL_SHIFT (8U) |
|
#define | RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK) |
|
#define | RNG_SR_OREG_SIZE_MASK (0xFF0000U) |
|
#define | RNG_SR_OREG_SIZE_SHIFT (16U) |
|
#define | RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK) |
|
#define | RNG_SR_SECV_MASK (0x1U) |
|
#define | RNG_SR_SECV_SHIFT (0U) |
|
#define | RNG_SR_SECV(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SECV_SHIFT)) & RNG_SR_SECV_MASK) |
|
#define | RNG_SR_LRS_MASK (0x2U) |
|
#define | RNG_SR_LRS_SHIFT (1U) |
|
#define | RNG_SR_LRS(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_LRS_SHIFT)) & RNG_SR_LRS_MASK) |
|
#define | RNG_SR_ORU_MASK (0x4U) |
|
#define | RNG_SR_ORU_SHIFT (2U) |
|
#define | RNG_SR_ORU(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ORU_SHIFT)) & RNG_SR_ORU_MASK) |
|
#define | RNG_SR_ERRI_MASK (0x8U) |
|
#define | RNG_SR_ERRI_SHIFT (3U) |
|
#define | RNG_SR_ERRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ERRI_SHIFT)) & RNG_SR_ERRI_MASK) |
|
#define | RNG_SR_SLP_MASK (0x10U) |
|
#define | RNG_SR_SLP_SHIFT (4U) |
|
#define | RNG_SR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SLP_SHIFT)) & RNG_SR_SLP_MASK) |
|
#define | RNG_SR_OREG_LVL_MASK (0xFF00U) |
|
#define | RNG_SR_OREG_LVL_SHIFT (8U) |
|
#define | RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK) |
|
#define | RNG_SR_OREG_SIZE_MASK (0xFF0000U) |
|
#define | RNG_SR_OREG_SIZE_SHIFT (16U) |
|
#define | RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK) |
|
|
#define | RNG_ER_EXT_ENT_MASK (0xFFFFFFFFU) |
|
#define | RNG_ER_EXT_ENT_SHIFT (0U) |
|
#define | RNG_ER_EXT_ENT(x) (((uint32_t)(((uint32_t)(x)) << RNG_ER_EXT_ENT_SHIFT)) & RNG_ER_EXT_ENT_MASK) |
|
#define | RNG_ER_EXT_ENT_MASK (0xFFFFFFFFU) |
|
#define | RNG_ER_EXT_ENT_SHIFT (0U) |
|
#define | RNG_ER_EXT_ENT(x) (((uint32_t)(((uint32_t)(x)) << RNG_ER_EXT_ENT_SHIFT)) & RNG_ER_EXT_ENT_MASK) |
|
#define | RNG_ER_EXT_ENT_MASK (0xFFFFFFFFU) |
|
#define | RNG_ER_EXT_ENT_SHIFT (0U) |
|
#define | RNG_ER_EXT_ENT(x) (((uint32_t)(((uint32_t)(x)) << RNG_ER_EXT_ENT_SHIFT)) & RNG_ER_EXT_ENT_MASK) |
|
#define | RNG_ER_EXT_ENT_MASK (0xFFFFFFFFU) |
|
#define | RNG_ER_EXT_ENT_SHIFT (0U) |
|
#define | RNG_ER_EXT_ENT(x) (((uint32_t)(((uint32_t)(x)) << RNG_ER_EXT_ENT_SHIFT)) & RNG_ER_EXT_ENT_MASK) |
|
|
#define | RNG_OR_RANDOUT_MASK (0xFFFFFFFFU) |
|
#define | RNG_OR_RANDOUT_SHIFT (0U) |
|
#define | RNG_OR_RANDOUT(x) (((uint32_t)(((uint32_t)(x)) << RNG_OR_RANDOUT_SHIFT)) & RNG_OR_RANDOUT_MASK) |
|
#define | RNG_OR_RANDOUT_MASK (0xFFFFFFFFU) |
|
#define | RNG_OR_RANDOUT_SHIFT (0U) |
|
#define | RNG_OR_RANDOUT(x) (((uint32_t)(((uint32_t)(x)) << RNG_OR_RANDOUT_SHIFT)) & RNG_OR_RANDOUT_MASK) |
|
#define | RNG_OR_RANDOUT_MASK (0xFFFFFFFFU) |
|
#define | RNG_OR_RANDOUT_SHIFT (0U) |
|
#define | RNG_OR_RANDOUT(x) (((uint32_t)(((uint32_t)(x)) << RNG_OR_RANDOUT_SHIFT)) & RNG_OR_RANDOUT_MASK) |
|
#define | RNG_OR_RANDOUT_MASK (0xFFFFFFFFU) |
|
#define | RNG_OR_RANDOUT_SHIFT (0U) |
|
#define | RNG_OR_RANDOUT(x) (((uint32_t)(((uint32_t)(x)) << RNG_OR_RANDOUT_SHIFT)) & RNG_OR_RANDOUT_MASK) |
|