1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - DMA Channel 0 Control"]
    pub dmach0ctl: DMACH0CTL,
    #[doc = "0x04 - DMA Channel 0 External Address"]
    pub dmach0extaddr: DMACH0EXTADDR,
    _reserved0: [u8; 4usize],
    #[doc = "0x0c - DMA Channel 0 Length"]
    pub dmach0len: DMACH0LEN,
    _reserved1: [u8; 8usize],
    #[doc = "0x18 - DMA Controller Status"]
    pub dmastat: DMASTAT,
    #[doc = "0x1c - DMA Controller Software Reset"]
    pub dmaswreset: DMASWRESET,
    #[doc = "0x20 - DMA Channel 1 Control"]
    pub dmach1ctl: DMACH1CTL,
    #[doc = "0x24 - DMA Channel 1 External Address"]
    pub dmach1extaddr: DMACH1EXTADDR,
    _reserved2: [u8; 4usize],
    #[doc = "0x2c - DMA Channel 1 Length"]
    pub dmach1len: DMACH1LEN,
    _reserved3: [u8; 72usize],
    #[doc = "0x78 - DMA Controller Master Configuration"]
    pub dmabuscfg: DMABUSCFG,
    #[doc = "0x7c - DMA Controller Port Error"]
    pub dmaporterr: DMAPORTERR,
    _reserved4: [u8; 124usize],
    #[doc = "0xfc - DMA Controller Version"]
    pub dmahwver: DMAHWVER,
    _reserved5: [u8; 768usize],
    #[doc = "0x400 - Key Write Area"]
    pub keywritearea: KEYWRITEAREA,
    #[doc = "0x404 - Key Written Area Status This register shows which areas of the key store RAM contain valid written keys. When a new key needs to be written to the key store, on a location that is already occupied by a valid key, this key area must be cleared first. This can be done by writing this register before the new key is written to the key store memory. Attempting to write to a key area that already contains a valid key is not allowed and will result in an error."]
    pub keywrittenarea: KEYWRITTENAREA,
    #[doc = "0x408 - Key Size This register defines the size of the keys that are written with DMA."]
    pub keysize: KEYSIZE,
    #[doc = "0x40c - Key Read Area"]
    pub keyreadarea: KEYREADAREA,
    _reserved6: [u8; 240usize],
    #[doc = "0x500 - Clear AES_KEY2/GHASH Key"]
    pub aeskey2: AESKEY2,
    _reserved7: [u8; 12usize],
    #[doc = "0x510 - Clear AES_KEY3"]
    pub aeskey3: AESKEY3,
    _reserved8: [u8; 44usize],
    #[doc = "0x540 - AES Initialization Vector"]
    pub aesiv: AESIV,
    _reserved9: [u8; 12usize],
    #[doc = "0x550 - AES Input/Output Buffer Control"]
    pub aesctl: AESCTL,
    #[doc = "0x554 - Crypto Data Length LSW"]
    pub aesdatalen0: AESDATALEN0,
    #[doc = "0x558 - Crypto Data Length MSW"]
    pub aesdatalen1: AESDATALEN1,
    #[doc = "0x55c - AES Authentication Length"]
    pub aesauthlen: AESAUTHLEN,
    #[doc = "0x560 - Data Input/Output"]
    pub aesdataout0: AESDATAOUT0,
    #[doc = "0x564 - AES Data Input/Output 3"]
    pub aesdataout1: AESDATAOUT1,
    #[doc = "0x568 - AES Data Input/Output 2"]
    pub aesdataout2: AESDATAOUT2,
    #[doc = "0x56c - AES Data Input/Output 3"]
    pub aesdataout3: AESDATAOUT3,
    #[doc = "0x570 - AES Tag Output"]
    pub aestagout: AESTAGOUT,
    _reserved10: [u8; 396usize],
    #[doc = "0x700 - Master Algorithm Select This register configures the internal destination of the DMA controller."]
    pub algsel: ALGSEL,
    #[doc = "0x704 - Master Protection Control"]
    pub dmaprotctl: DMAPROTCTL,
    _reserved11: [u8; 56usize],
    #[doc = "0x740 - Software Reset"]
    pub swreset: SWRESET,
    _reserved12: [u8; 60usize],
    #[doc = "0x780 - Control Interrupt Configuration"]
    pub irqtype: IRQTYPE,
    #[doc = "0x784 - Interrupt Enable"]
    pub irqen: IRQEN,
    #[doc = "0x788 - Interrupt Clear"]
    pub irqclr: IRQCLR,
    #[doc = "0x78c - Interrupt Set"]
    pub irqset: IRQSET,
    #[doc = "0x790 - Interrupt Status"]
    pub irqstat: IRQSTAT,
    _reserved13: [u8; 104usize],
    #[doc = "0x7fc - CTRL Module Version"]
    pub hwver: HWVER,
}
#[doc = "DMA Channel 0 Control"]
pub struct DMACH0CTL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Channel 0 Control"]
pub mod dmach0ctl;
#[doc = "DMA Channel 0 External Address"]
pub struct DMACH0EXTADDR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Channel 0 External Address"]
pub mod dmach0extaddr;
#[doc = "DMA Channel 0 Length"]
pub struct DMACH0LEN {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Channel 0 Length"]
pub mod dmach0len;
#[doc = "DMA Controller Status"]
pub struct DMASTAT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Controller Status"]
pub mod dmastat;
#[doc = "DMA Controller Software Reset"]
pub struct DMASWRESET {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Controller Software Reset"]
pub mod dmaswreset;
#[doc = "DMA Channel 1 Control"]
pub struct DMACH1CTL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Channel 1 Control"]
pub mod dmach1ctl;
#[doc = "DMA Channel 1 External Address"]
pub struct DMACH1EXTADDR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Channel 1 External Address"]
pub mod dmach1extaddr;
#[doc = "DMA Channel 1 Length"]
pub struct DMACH1LEN {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Channel 1 Length"]
pub mod dmach1len;
#[doc = "DMA Controller Master Configuration"]
pub struct DMABUSCFG {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Controller Master Configuration"]
pub mod dmabuscfg;
#[doc = "DMA Controller Port Error"]
pub struct DMAPORTERR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Controller Port Error"]
pub mod dmaporterr;
#[doc = "DMA Controller Version"]
pub struct DMAHWVER {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "DMA Controller Version"]
pub mod dmahwver;
#[doc = "Key Write Area"]
pub struct KEYWRITEAREA {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Key Write Area"]
pub mod keywritearea;
#[doc = "Key Written Area Status This register shows which areas of the key store RAM contain valid written keys. When a new key needs to be written to the key store, on a location that is already occupied by a valid key, this key area must be cleared first. This can be done by writing this register before the new key is written to the key store memory. Attempting to write to a key area that already contains a valid key is not allowed and will result in an error."]
pub struct KEYWRITTENAREA {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Key Written Area Status This register shows which areas of the key store RAM contain valid written keys. When a new key needs to be written to the key store, on a location that is already occupied by a valid key, this key area must be cleared first. This can be done by writing this register before the new key is written to the key store memory. Attempting to write to a key area that already contains a valid key is not allowed and will result in an error."]
pub mod keywrittenarea;
#[doc = "Key Size This register defines the size of the keys that are written with DMA."]
pub struct KEYSIZE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Key Size This register defines the size of the keys that are written with DMA."]
pub mod keysize;
#[doc = "Key Read Area"]
pub struct KEYREADAREA {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Key Read Area"]
pub mod keyreadarea;
#[doc = "Clear AES_KEY2/GHASH Key"]
pub struct AESKEY2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Clear AES_KEY2/GHASH Key"]
pub mod aeskey2;
#[doc = "Clear AES_KEY3"]
pub struct AESKEY3 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Clear AES_KEY3"]
pub mod aeskey3;
#[doc = "AES Initialization Vector"]
pub struct AESIV {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Initialization Vector"]
pub mod aesiv;
#[doc = "AES Input/Output Buffer Control"]
pub struct AESCTL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Input/Output Buffer Control"]
pub mod aesctl;
#[doc = "Crypto Data Length LSW"]
pub struct AESDATALEN0 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Crypto Data Length LSW"]
pub mod aesdatalen0;
#[doc = "Crypto Data Length MSW"]
pub struct AESDATALEN1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Crypto Data Length MSW"]
pub mod aesdatalen1;
#[doc = "AES Authentication Length"]
pub struct AESAUTHLEN {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Authentication Length"]
pub mod aesauthlen;
#[doc = "Data Input/Output"]
pub struct AESDATAOUT0 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Data Input/Output"]
pub mod aesdataout0;
#[doc = "AES Data Input/Output 0"]
pub struct AESDATAIN0 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Data Input/Output 0"]
pub mod aesdatain0;
#[doc = "AES Data Input/Output 3"]
pub struct AESDATAOUT1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Data Input/Output 3"]
pub mod aesdataout1;
#[doc = "AES Data Input/Output 1"]
pub struct AESDATAIN1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Data Input/Output 1"]
pub mod aesdatain1;
#[doc = "AES Data Input/Output 2"]
pub struct AESDATAOUT2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Data Input/Output 2"]
pub mod aesdataout2;
#[doc = "AES Data Input/Output 2"]
pub struct AESDATAIN2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Data Input/Output 2"]
pub mod aesdatain2;
#[doc = "AES Data Input/Output 3"]
pub struct AESDATAOUT3 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Data Input/Output 3"]
pub mod aesdataout3;
#[doc = "Data Input/Output"]
pub struct AESDATAIN3 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Data Input/Output"]
pub mod aesdatain3;
#[doc = "AES Tag Output"]
pub struct AESTAGOUT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "AES Tag Output"]
pub mod aestagout;
#[doc = "Master Algorithm Select This register configures the internal destination of the DMA controller."]
pub struct ALGSEL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Master Algorithm Select This register configures the internal destination of the DMA controller."]
pub mod algsel;
#[doc = "Master Protection Control"]
pub struct DMAPROTCTL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Master Protection Control"]
pub mod dmaprotctl;
#[doc = "Software Reset"]
pub struct SWRESET {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Software Reset"]
pub mod swreset;
#[doc = "Control Interrupt Configuration"]
pub struct IRQTYPE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Control Interrupt Configuration"]
pub mod irqtype;
#[doc = "Interrupt Enable"]
pub struct IRQEN {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt Enable"]
pub mod irqen;
#[doc = "Interrupt Clear"]
pub struct IRQCLR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt Clear"]
pub mod irqclr;
#[doc = "Interrupt Set"]
pub struct IRQSET {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt Set"]
pub mod irqset;
#[doc = "Interrupt Status"]
pub struct IRQSTAT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt Status"]
pub mod irqstat;
#[doc = "CTRL Module Version"]
pub struct HWVER {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "CTRL Module Version"]
pub mod hwver;