EFM32 Gecko Software Documentation
efm32g-doc-5.1.2
Main Page
Modules
Files
Documentation Home
silabs.com
File List
efm32g_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
__IOM uint32_t
KEYHA
;
58
__IOM uint32_t
KEYHB
;
59
__IOM uint32_t
KEYHC
;
60
__IOM uint32_t
KEYHD
;
61
}
AES_TypeDef
;
63
/**************************************************************************/
68
/* Bit fields for AES CTRL */
69
#define _AES_CTRL_RESETVALUE 0x00000000UL
70
#define _AES_CTRL_MASK 0x00000037UL
71
#define AES_CTRL_DECRYPT (0x1UL << 0)
72
#define _AES_CTRL_DECRYPT_SHIFT 0
73
#define _AES_CTRL_DECRYPT_MASK 0x1UL
74
#define _AES_CTRL_DECRYPT_DEFAULT 0x00000000UL
75
#define AES_CTRL_DECRYPT_DEFAULT (_AES_CTRL_DECRYPT_DEFAULT << 0)
76
#define AES_CTRL_AES256 (0x1UL << 1)
77
#define _AES_CTRL_AES256_SHIFT 1
78
#define _AES_CTRL_AES256_MASK 0x2UL
79
#define _AES_CTRL_AES256_DEFAULT 0x00000000UL
80
#define AES_CTRL_AES256_DEFAULT (_AES_CTRL_AES256_DEFAULT << 1)
81
#define AES_CTRL_KEYBUFEN (0x1UL << 2)
82
#define _AES_CTRL_KEYBUFEN_SHIFT 2
83
#define _AES_CTRL_KEYBUFEN_MASK 0x4UL
84
#define _AES_CTRL_KEYBUFEN_DEFAULT 0x00000000UL
85
#define AES_CTRL_KEYBUFEN_DEFAULT (_AES_CTRL_KEYBUFEN_DEFAULT << 2)
86
#define AES_CTRL_DATASTART (0x1UL << 4)
87
#define _AES_CTRL_DATASTART_SHIFT 4
88
#define _AES_CTRL_DATASTART_MASK 0x10UL
89
#define _AES_CTRL_DATASTART_DEFAULT 0x00000000UL
90
#define AES_CTRL_DATASTART_DEFAULT (_AES_CTRL_DATASTART_DEFAULT << 4)
91
#define AES_CTRL_XORSTART (0x1UL << 5)
92
#define _AES_CTRL_XORSTART_SHIFT 5
93
#define _AES_CTRL_XORSTART_MASK 0x20UL
94
#define _AES_CTRL_XORSTART_DEFAULT 0x00000000UL
95
#define AES_CTRL_XORSTART_DEFAULT (_AES_CTRL_XORSTART_DEFAULT << 5)
97
/* Bit fields for AES CMD */
98
#define _AES_CMD_RESETVALUE 0x00000000UL
99
#define _AES_CMD_MASK 0x00000003UL
100
#define AES_CMD_START (0x1UL << 0)
101
#define _AES_CMD_START_SHIFT 0
102
#define _AES_CMD_START_MASK 0x1UL
103
#define _AES_CMD_START_DEFAULT 0x00000000UL
104
#define AES_CMD_START_DEFAULT (_AES_CMD_START_DEFAULT << 0)
105
#define AES_CMD_STOP (0x1UL << 1)
106
#define _AES_CMD_STOP_SHIFT 1
107
#define _AES_CMD_STOP_MASK 0x2UL
108
#define _AES_CMD_STOP_DEFAULT 0x00000000UL
109
#define AES_CMD_STOP_DEFAULT (_AES_CMD_STOP_DEFAULT << 1)
111
/* Bit fields for AES STATUS */
112
#define _AES_STATUS_RESETVALUE 0x00000000UL
113
#define _AES_STATUS_MASK 0x00000001UL
114
#define AES_STATUS_RUNNING (0x1UL << 0)
115
#define _AES_STATUS_RUNNING_SHIFT 0
116
#define _AES_STATUS_RUNNING_MASK 0x1UL
117
#define _AES_STATUS_RUNNING_DEFAULT 0x00000000UL
118
#define AES_STATUS_RUNNING_DEFAULT (_AES_STATUS_RUNNING_DEFAULT << 0)
120
/* Bit fields for AES IEN */
121
#define _AES_IEN_RESETVALUE 0x00000000UL
122
#define _AES_IEN_MASK 0x00000001UL
123
#define AES_IEN_DONE (0x1UL << 0)
124
#define _AES_IEN_DONE_SHIFT 0
125
#define _AES_IEN_DONE_MASK 0x1UL
126
#define _AES_IEN_DONE_DEFAULT 0x00000000UL
127
#define AES_IEN_DONE_DEFAULT (_AES_IEN_DONE_DEFAULT << 0)
129
/* Bit fields for AES IF */
130
#define _AES_IF_RESETVALUE 0x00000000UL
131
#define _AES_IF_MASK 0x00000001UL
132
#define AES_IF_DONE (0x1UL << 0)
133
#define _AES_IF_DONE_SHIFT 0
134
#define _AES_IF_DONE_MASK 0x1UL
135
#define _AES_IF_DONE_DEFAULT 0x00000000UL
136
#define AES_IF_DONE_DEFAULT (_AES_IF_DONE_DEFAULT << 0)
138
/* Bit fields for AES IFS */
139
#define _AES_IFS_RESETVALUE 0x00000000UL
140
#define _AES_IFS_MASK 0x00000001UL
141
#define AES_IFS_DONE (0x1UL << 0)
142
#define _AES_IFS_DONE_SHIFT 0
143
#define _AES_IFS_DONE_MASK 0x1UL
144
#define _AES_IFS_DONE_DEFAULT 0x00000000UL
145
#define AES_IFS_DONE_DEFAULT (_AES_IFS_DONE_DEFAULT << 0)
147
/* Bit fields for AES IFC */
148
#define _AES_IFC_RESETVALUE 0x00000000UL
149
#define _AES_IFC_MASK 0x00000001UL
150
#define AES_IFC_DONE (0x1UL << 0)
151
#define _AES_IFC_DONE_SHIFT 0
152
#define _AES_IFC_DONE_MASK 0x1UL
153
#define _AES_IFC_DONE_DEFAULT 0x00000000UL
154
#define AES_IFC_DONE_DEFAULT (_AES_IFC_DONE_DEFAULT << 0)
156
/* Bit fields for AES DATA */
157
#define _AES_DATA_RESETVALUE 0x00000000UL
158
#define _AES_DATA_MASK 0xFFFFFFFFUL
159
#define _AES_DATA_DATA_SHIFT 0
160
#define _AES_DATA_DATA_MASK 0xFFFFFFFFUL
161
#define _AES_DATA_DATA_DEFAULT 0x00000000UL
162
#define AES_DATA_DATA_DEFAULT (_AES_DATA_DATA_DEFAULT << 0)
164
/* Bit fields for AES XORDATA */
165
#define _AES_XORDATA_RESETVALUE 0x00000000UL
166
#define _AES_XORDATA_MASK 0xFFFFFFFFUL
167
#define _AES_XORDATA_XORDATA_SHIFT 0
168
#define _AES_XORDATA_XORDATA_MASK 0xFFFFFFFFUL
169
#define _AES_XORDATA_XORDATA_DEFAULT 0x00000000UL
170
#define AES_XORDATA_XORDATA_DEFAULT (_AES_XORDATA_XORDATA_DEFAULT << 0)
172
/* Bit fields for AES KEYLA */
173
#define _AES_KEYLA_RESETVALUE 0x00000000UL
174
#define _AES_KEYLA_MASK 0xFFFFFFFFUL
175
#define _AES_KEYLA_KEYLA_SHIFT 0
176
#define _AES_KEYLA_KEYLA_MASK 0xFFFFFFFFUL
177
#define _AES_KEYLA_KEYLA_DEFAULT 0x00000000UL
178
#define AES_KEYLA_KEYLA_DEFAULT (_AES_KEYLA_KEYLA_DEFAULT << 0)
180
/* Bit fields for AES KEYLB */
181
#define _AES_KEYLB_RESETVALUE 0x00000000UL
182
#define _AES_KEYLB_MASK 0xFFFFFFFFUL
183
#define _AES_KEYLB_KEYLB_SHIFT 0
184
#define _AES_KEYLB_KEYLB_MASK 0xFFFFFFFFUL
185
#define _AES_KEYLB_KEYLB_DEFAULT 0x00000000UL
186
#define AES_KEYLB_KEYLB_DEFAULT (_AES_KEYLB_KEYLB_DEFAULT << 0)
188
/* Bit fields for AES KEYLC */
189
#define _AES_KEYLC_RESETVALUE 0x00000000UL
190
#define _AES_KEYLC_MASK 0xFFFFFFFFUL
191
#define _AES_KEYLC_KEYLC_SHIFT 0
192
#define _AES_KEYLC_KEYLC_MASK 0xFFFFFFFFUL
193
#define _AES_KEYLC_KEYLC_DEFAULT 0x00000000UL
194
#define AES_KEYLC_KEYLC_DEFAULT (_AES_KEYLC_KEYLC_DEFAULT << 0)
196
/* Bit fields for AES KEYLD */
197
#define _AES_KEYLD_RESETVALUE 0x00000000UL
198
#define _AES_KEYLD_MASK 0xFFFFFFFFUL
199
#define _AES_KEYLD_KEYLD_SHIFT 0
200
#define _AES_KEYLD_KEYLD_MASK 0xFFFFFFFFUL
201
#define _AES_KEYLD_KEYLD_DEFAULT 0x00000000UL
202
#define AES_KEYLD_KEYLD_DEFAULT (_AES_KEYLD_KEYLD_DEFAULT << 0)
204
/* Bit fields for AES KEYHA */
205
#define _AES_KEYHA_RESETVALUE 0x00000000UL
206
#define _AES_KEYHA_MASK 0xFFFFFFFFUL
207
#define _AES_KEYHA_KEYHA_SHIFT 0
208
#define _AES_KEYHA_KEYHA_MASK 0xFFFFFFFFUL
209
#define _AES_KEYHA_KEYHA_DEFAULT 0x00000000UL
210
#define AES_KEYHA_KEYHA_DEFAULT (_AES_KEYHA_KEYHA_DEFAULT << 0)
212
/* Bit fields for AES KEYHB */
213
#define _AES_KEYHB_RESETVALUE 0x00000000UL
214
#define _AES_KEYHB_MASK 0xFFFFFFFFUL
215
#define _AES_KEYHB_KEYHB_SHIFT 0
216
#define _AES_KEYHB_KEYHB_MASK 0xFFFFFFFFUL
217
#define _AES_KEYHB_KEYHB_DEFAULT 0x00000000UL
218
#define AES_KEYHB_KEYHB_DEFAULT (_AES_KEYHB_KEYHB_DEFAULT << 0)
220
/* Bit fields for AES KEYHC */
221
#define _AES_KEYHC_RESETVALUE 0x00000000UL
222
#define _AES_KEYHC_MASK 0xFFFFFFFFUL
223
#define _AES_KEYHC_KEYHC_SHIFT 0
224
#define _AES_KEYHC_KEYHC_MASK 0xFFFFFFFFUL
225
#define _AES_KEYHC_KEYHC_DEFAULT 0x00000000UL
226
#define AES_KEYHC_KEYHC_DEFAULT (_AES_KEYHC_KEYHC_DEFAULT << 0)
228
/* Bit fields for AES KEYHD */
229
#define _AES_KEYHD_RESETVALUE 0x00000000UL
230
#define _AES_KEYHD_MASK 0xFFFFFFFFUL
231
#define _AES_KEYHD_KEYHD_SHIFT 0
232
#define _AES_KEYHD_KEYHD_MASK 0xFFFFFFFFUL
233
#define _AES_KEYHD_KEYHD_DEFAULT 0x00000000UL
234
#define AES_KEYHD_KEYHD_DEFAULT (_AES_KEYHD_KEYHD_DEFAULT << 0)
AES_TypeDef::KEYHA
__IOM uint32_t KEYHA
Definition:
efm32g_aes.h:57
AES_TypeDef::KEYHB
__IOM uint32_t KEYHB
Definition:
efm32g_aes.h:58
AES_TypeDef::IFC
__IOM uint32_t IFC
Definition:
efm32g_aes.h:49
AES_TypeDef
Definition:
efm32g_aes.h:41
AES_TypeDef::KEYLD
__IOM uint32_t KEYLD
Definition:
efm32g_aes.h:56
AES_TypeDef::CMD
__IOM uint32_t CMD
Definition:
efm32g_aes.h:44
AES_TypeDef::IFS
__IOM uint32_t IFS
Definition:
efm32g_aes.h:48
AES_TypeDef::KEYHC
__IOM uint32_t KEYHC
Definition:
efm32g_aes.h:59
AES_TypeDef::IF
__IM uint32_t IF
Definition:
efm32g_aes.h:47
AES_TypeDef::KEYLC
__IOM uint32_t KEYLC
Definition:
efm32g_aes.h:55
AES_TypeDef::KEYLA
__IOM uint32_t KEYLA
Definition:
efm32g_aes.h:53
AES_TypeDef::DATA
__IOM uint32_t DATA
Definition:
efm32g_aes.h:50
AES_TypeDef::IEN
__IOM uint32_t IEN
Definition:
efm32g_aes.h:46
AES_TypeDef::KEYHD
__IOM uint32_t KEYHD
Definition:
efm32g_aes.h:60
AES_TypeDef::KEYLB
__IOM uint32_t KEYLB
Definition:
efm32g_aes.h:54
AES_TypeDef::CTRL
__IOM uint32_t CTRL
Definition:
efm32g_aes.h:43
AES_TypeDef::XORDATA
__IOM uint32_t XORDATA
Definition:
efm32g_aes.h:51
AES_TypeDef::STATUS
__IM uint32_t STATUS
Definition:
efm32g_aes.h:45
platform
Device
SiliconLabs
EFM32G
Include
efm32g_aes.h
Generated on Thu Mar 9 2017 20:44:29 for EFM32 Gecko Software Documentation by
1.8.10