| M480 BSP V3.05.001 The Board Support Package for M480 Series

trng_reg.h
Go to the documentation of this file.
1 /**************************************************************************/
9 #ifndef __TRNG_REG_H__
10 #define __TRNG_REG_H__
11
18 /*---------------------- True Random Number Generator -------------------------*/
24 typedef struct
25 {
26
27
173 __IO uint32_t CTL;
174 __I uint32_t DATA;
175 __I uint32_t RESERVE0[1];
178 __IO uint32_t ACT;
180 } TRNG_T;
181
187 #define TRNG_CTL_TRNGEN_Pos (0)
188 #define TRNG_CTL_TRNGEN_Msk (0x1ul << TRNG_CTL_TRNGEN_Pos)
190 #define TRNG_CTL_DVIF_Pos (1)
191 #define TRNG_CTL_DVIF_Msk (0x1ul << TRNG_CTL_DVIF_Pos)
193 #define TRNG_CTL_CLKP_Pos (2)
194 #define TRNG_CTL_CLKP_Msk (0xful << TRNG_CTL_CLKP_Pos)
196 #define TRNG_CTL_DVIEN_Pos (6)
197 #define TRNG_CTL_DVIEN_Msk (0x1ul << TRNG_CTL_DVIEN_Pos)
199 #define TRNG_CTL_READY_Pos (7)
200 #define TRNG_CTL_READY_Msk (0x1ul << TRNG_CTL_READY_Pos)
202 #define TRNG_CTL_Reversed_Pos (8)
203 #define TRNG_CTL_Reversed_Msk (0xfffffful << TRNG_CTL_Reversed_Pos)
205 #define TRNG_DATA_DATA_Pos (0)
206 #define TRNG_DATA_DATA_Msk (0xfful << TRNG_DATA_DATA_Pos)
208 #define TRNG_ACT_VER_Pos (0)
209 #define TRNG_ACT_VER_Msk (0x7ful << TRNG_ACT_VER_Pos)
211 #define TRNG_ACT_ACT_Pos (7)
212 #define TRNG_ACT_ACT_Msk (0x1ul << TRNG_ACT_ACT_Pos) /* TRNG_CONST */
215 /* end of TRNG register group */ /* end of REGISTER group */
217
218
219 #endif /* __TRNG_REG_H__ */
TRNG_T::DATA
__I uint32_t DATA
Definition: trng_reg.h:174
TRNG_T::CTL
__IO uint32_t CTL
Definition: trng_reg.h:173
TRNG_T::ACT
__IO uint32_t ACT
Definition: trng_reg.h:178
TRNG_T
Definition: trng_reg.h:24