WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_trng_reg.h
浏览该文件的文档.
1
9#ifndef HAL_TRNG_REG_H
10#define HAL_TRNG_REG_H
11
12#include "crypto_type.h"
13
15#define HISC_COM_TRNG_FIFO_DATA (0x100)
16#define HISC_COM_TRNG_FIFO_READY (0x104)
17#define HISC_COM_TRNG_DATA_ST (0x108)
18#define HISC_COM_TRNG_FRO_SAMPLE_CLK_SEL (0x174)
19#define HISC_COM_TRNG_FRO_DIV_CNT (0x178)
20#define TRNG_SEC_CFB (0x52001600)
21
22#define TRNG_DONE 1
23#define TRNG_DATA_READY 1
24#define TRNG_INNER_FRO_CLK 0x1
25#define TRNG_INNER_FRO_DIV_CNT 0x1b
26#define TRNG_RING_ENABLE 1
27#define TRNG_RING_DISABLE 0
28
29/* Define the union hisc_com_trng_fifo_ready */
30typedef union {
31 /* Define the struct bits */
32 struct {
33 td_u32 trng_data_ready : 1; /* [0] */
34 td_u32 trng_done : 1; /* [1] */
35 td_u32 reserved_0 : 30; /* [31..2] */
36 } bits;
37
38 /* Define an unsigned member */
41
42/* Define the union U_HISC_COM_TRNG_FRO_SAMPLE_CLK_SEL */
43typedef union {
44 /* Define the struct bits */
45 struct {
47 td_u32 reserved_0 : 31; /* [31..1] */
48 } bits;
49
50 /* Define an unsigned member */
53
54
55/* Define the union U_HISC_COM_TRNG_FRO_DIV_CNT */
56typedef union {
57 /* Define the struct bits */
58 struct {
59 td_u32 fro_div_cnt : 8; /* [7..0] */
60 td_u32 reserved_0 : 24; /* [31..8] */
61 } bits;
62
63 /* Define an unsigned member */
66
67/* Define the union TRNG_SEC_CFG */
68typedef union {
69 /* Define the struct bits */
70 struct {
71 td_u16 trng_ring_en : 1; /* [0] */
72 td_u16 reserved_0 : 15; /* [15..1] */
73 } bits;
74
75 /* Define an unsigned member */
78#endif
unsigned short td_u16
Definition td_type.h:37
unsigned int td_u32
Definition td_type.h:38
Definition hal_trng_reg.h:30
td_u32 trng_done
Definition hal_trng_reg.h:34
td_u32 reserved_0
Definition hal_trng_reg.h:35
td_u32 u32
Definition hal_trng_reg.h:39
td_u32 trng_data_ready
Definition hal_trng_reg.h:33
Definition hal_trng_reg.h:56
td_u32 fro_div_cnt
Definition hal_trng_reg.h:59
td_u32 u32
Definition hal_trng_reg.h:64
td_u32 reserved_0
Definition hal_trng_reg.h:60
Definition hal_trng_reg.h:43
td_u32 fro_sample_clk_sel
Definition hal_trng_reg.h:46
td_u32 reserved_0
Definition hal_trng_reg.h:47
td_u32 u32
Definition hal_trng_reg.h:51
Definition hal_trng_reg.h:68
td_u16 reserved_0
Definition hal_trng_reg.h:72
td_u16 u16
Definition hal_trng_reg.h:76
td_u16 trng_ring_en
Definition hal_trng_reg.h:71