EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
efm32hg_aes.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t CMD;
45  __IM uint32_t STATUS;
46  __IOM uint32_t IEN;
47  __IM uint32_t IF;
48  __IOM uint32_t IFS;
49  __IOM uint32_t IFC;
50  __IOM uint32_t DATA;
51  __IOM uint32_t XORDATA;
52  uint32_t RESERVED0[3];
53  __IOM uint32_t KEYLA;
54  __IOM uint32_t KEYLB;
55  __IOM uint32_t KEYLC;
56  __IOM uint32_t KEYLD;
57 } AES_TypeDef;
59 /**************************************************************************/
64 /* Bit fields for AES CTRL */
65 #define _AES_CTRL_RESETVALUE 0x00000000UL
66 #define _AES_CTRL_MASK 0x00000071UL
67 #define AES_CTRL_DECRYPT (0x1UL << 0)
68 #define _AES_CTRL_DECRYPT_SHIFT 0
69 #define _AES_CTRL_DECRYPT_MASK 0x1UL
70 #define _AES_CTRL_DECRYPT_DEFAULT 0x00000000UL
71 #define AES_CTRL_DECRYPT_DEFAULT (_AES_CTRL_DECRYPT_DEFAULT << 0)
72 #define AES_CTRL_DATASTART (0x1UL << 4)
73 #define _AES_CTRL_DATASTART_SHIFT 4
74 #define _AES_CTRL_DATASTART_MASK 0x10UL
75 #define _AES_CTRL_DATASTART_DEFAULT 0x00000000UL
76 #define AES_CTRL_DATASTART_DEFAULT (_AES_CTRL_DATASTART_DEFAULT << 4)
77 #define AES_CTRL_XORSTART (0x1UL << 5)
78 #define _AES_CTRL_XORSTART_SHIFT 5
79 #define _AES_CTRL_XORSTART_MASK 0x20UL
80 #define _AES_CTRL_XORSTART_DEFAULT 0x00000000UL
81 #define AES_CTRL_XORSTART_DEFAULT (_AES_CTRL_XORSTART_DEFAULT << 5)
82 #define AES_CTRL_BYTEORDER (0x1UL << 6)
83 #define _AES_CTRL_BYTEORDER_SHIFT 6
84 #define _AES_CTRL_BYTEORDER_MASK 0x40UL
85 #define _AES_CTRL_BYTEORDER_DEFAULT 0x00000000UL
86 #define AES_CTRL_BYTEORDER_DEFAULT (_AES_CTRL_BYTEORDER_DEFAULT << 6)
88 /* Bit fields for AES CMD */
89 #define _AES_CMD_RESETVALUE 0x00000000UL
90 #define _AES_CMD_MASK 0x00000003UL
91 #define AES_CMD_START (0x1UL << 0)
92 #define _AES_CMD_START_SHIFT 0
93 #define _AES_CMD_START_MASK 0x1UL
94 #define _AES_CMD_START_DEFAULT 0x00000000UL
95 #define AES_CMD_START_DEFAULT (_AES_CMD_START_DEFAULT << 0)
96 #define AES_CMD_STOP (0x1UL << 1)
97 #define _AES_CMD_STOP_SHIFT 1
98 #define _AES_CMD_STOP_MASK 0x2UL
99 #define _AES_CMD_STOP_DEFAULT 0x00000000UL
100 #define AES_CMD_STOP_DEFAULT (_AES_CMD_STOP_DEFAULT << 1)
102 /* Bit fields for AES STATUS */
103 #define _AES_STATUS_RESETVALUE 0x00000000UL
104 #define _AES_STATUS_MASK 0x00000001UL
105 #define AES_STATUS_RUNNING (0x1UL << 0)
106 #define _AES_STATUS_RUNNING_SHIFT 0
107 #define _AES_STATUS_RUNNING_MASK 0x1UL
108 #define _AES_STATUS_RUNNING_DEFAULT 0x00000000UL
109 #define AES_STATUS_RUNNING_DEFAULT (_AES_STATUS_RUNNING_DEFAULT << 0)
111 /* Bit fields for AES IEN */
112 #define _AES_IEN_RESETVALUE 0x00000000UL
113 #define _AES_IEN_MASK 0x00000001UL
114 #define AES_IEN_DONE (0x1UL << 0)
115 #define _AES_IEN_DONE_SHIFT 0
116 #define _AES_IEN_DONE_MASK 0x1UL
117 #define _AES_IEN_DONE_DEFAULT 0x00000000UL
118 #define AES_IEN_DONE_DEFAULT (_AES_IEN_DONE_DEFAULT << 0)
120 /* Bit fields for AES IF */
121 #define _AES_IF_RESETVALUE 0x00000000UL
122 #define _AES_IF_MASK 0x00000001UL
123 #define AES_IF_DONE (0x1UL << 0)
124 #define _AES_IF_DONE_SHIFT 0
125 #define _AES_IF_DONE_MASK 0x1UL
126 #define _AES_IF_DONE_DEFAULT 0x00000000UL
127 #define AES_IF_DONE_DEFAULT (_AES_IF_DONE_DEFAULT << 0)
129 /* Bit fields for AES IFS */
130 #define _AES_IFS_RESETVALUE 0x00000000UL
131 #define _AES_IFS_MASK 0x00000001UL
132 #define AES_IFS_DONE (0x1UL << 0)
133 #define _AES_IFS_DONE_SHIFT 0
134 #define _AES_IFS_DONE_MASK 0x1UL
135 #define _AES_IFS_DONE_DEFAULT 0x00000000UL
136 #define AES_IFS_DONE_DEFAULT (_AES_IFS_DONE_DEFAULT << 0)
138 /* Bit fields for AES IFC */
139 #define _AES_IFC_RESETVALUE 0x00000000UL
140 #define _AES_IFC_MASK 0x00000001UL
141 #define AES_IFC_DONE (0x1UL << 0)
142 #define _AES_IFC_DONE_SHIFT 0
143 #define _AES_IFC_DONE_MASK 0x1UL
144 #define _AES_IFC_DONE_DEFAULT 0x00000000UL
145 #define AES_IFC_DONE_DEFAULT (_AES_IFC_DONE_DEFAULT << 0)
147 /* Bit fields for AES DATA */
148 #define _AES_DATA_RESETVALUE 0x00000000UL
149 #define _AES_DATA_MASK 0xFFFFFFFFUL
150 #define _AES_DATA_DATA_SHIFT 0
151 #define _AES_DATA_DATA_MASK 0xFFFFFFFFUL
152 #define _AES_DATA_DATA_DEFAULT 0x00000000UL
153 #define AES_DATA_DATA_DEFAULT (_AES_DATA_DATA_DEFAULT << 0)
155 /* Bit fields for AES XORDATA */
156 #define _AES_XORDATA_RESETVALUE 0x00000000UL
157 #define _AES_XORDATA_MASK 0xFFFFFFFFUL
158 #define _AES_XORDATA_XORDATA_SHIFT 0
159 #define _AES_XORDATA_XORDATA_MASK 0xFFFFFFFFUL
160 #define _AES_XORDATA_XORDATA_DEFAULT 0x00000000UL
161 #define AES_XORDATA_XORDATA_DEFAULT (_AES_XORDATA_XORDATA_DEFAULT << 0)
163 /* Bit fields for AES KEYLA */
164 #define _AES_KEYLA_RESETVALUE 0x00000000UL
165 #define _AES_KEYLA_MASK 0xFFFFFFFFUL
166 #define _AES_KEYLA_KEYLA_SHIFT 0
167 #define _AES_KEYLA_KEYLA_MASK 0xFFFFFFFFUL
168 #define _AES_KEYLA_KEYLA_DEFAULT 0x00000000UL
169 #define AES_KEYLA_KEYLA_DEFAULT (_AES_KEYLA_KEYLA_DEFAULT << 0)
171 /* Bit fields for AES KEYLB */
172 #define _AES_KEYLB_RESETVALUE 0x00000000UL
173 #define _AES_KEYLB_MASK 0xFFFFFFFFUL
174 #define _AES_KEYLB_KEYLB_SHIFT 0
175 #define _AES_KEYLB_KEYLB_MASK 0xFFFFFFFFUL
176 #define _AES_KEYLB_KEYLB_DEFAULT 0x00000000UL
177 #define AES_KEYLB_KEYLB_DEFAULT (_AES_KEYLB_KEYLB_DEFAULT << 0)
179 /* Bit fields for AES KEYLC */
180 #define _AES_KEYLC_RESETVALUE 0x00000000UL
181 #define _AES_KEYLC_MASK 0xFFFFFFFFUL
182 #define _AES_KEYLC_KEYLC_SHIFT 0
183 #define _AES_KEYLC_KEYLC_MASK 0xFFFFFFFFUL
184 #define _AES_KEYLC_KEYLC_DEFAULT 0x00000000UL
185 #define AES_KEYLC_KEYLC_DEFAULT (_AES_KEYLC_KEYLC_DEFAULT << 0)
187 /* Bit fields for AES KEYLD */
188 #define _AES_KEYLD_RESETVALUE 0x00000000UL
189 #define _AES_KEYLD_MASK 0xFFFFFFFFUL
190 #define _AES_KEYLD_KEYLD_SHIFT 0
191 #define _AES_KEYLD_KEYLD_MASK 0xFFFFFFFFUL
192 #define _AES_KEYLD_KEYLD_DEFAULT 0x00000000UL
193 #define AES_KEYLD_KEYLD_DEFAULT (_AES_KEYLD_KEYLD_DEFAULT << 0)
__IOM uint32_t IFC
Definition: efm32hg_aes.h:49
__IOM uint32_t KEYLD
Definition: efm32hg_aes.h:56
__IOM uint32_t CMD
Definition: efm32hg_aes.h:44
__IOM uint32_t IFS
Definition: efm32hg_aes.h:48
__IM uint32_t IF
Definition: efm32hg_aes.h:47
__IOM uint32_t KEYLC
Definition: efm32hg_aes.h:55
__IOM uint32_t KEYLA
Definition: efm32hg_aes.h:53
__IOM uint32_t DATA
Definition: efm32hg_aes.h:50
__IOM uint32_t IEN
Definition: efm32hg_aes.h:46
__IOM uint32_t KEYLB
Definition: efm32hg_aes.h:54
__IOM uint32_t CTRL
Definition: efm32hg_aes.h:43
__IOM uint32_t XORDATA
Definition: efm32hg_aes.h:51
__IM uint32_t STATUS
Definition: efm32hg_aes.h:45