sam3x8e-pac 0.1.6-dev

Peripheral Access Crate (PAC) for the Atmel SAM3X8E.
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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
#[doc = "Static Memory Controller"]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Smc {
    ptr: *mut u8,
}
unsafe impl Send for Smc {}
unsafe impl Sync for Smc {}
impl Smc {
    #[inline(always)]
    pub const unsafe fn from_ptr(ptr: *mut ()) -> Self {
        Self { ptr: ptr as _ }
    }
    #[inline(always)]
    pub const fn as_ptr(&self) -> *mut () {
        self.ptr as _
    }
    #[doc = "SMC NFC Configuration Register"]
    #[inline(always)]
    pub const fn cfg(self) -> crate::common::Reg<regs::Cfg, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0usize) as _) }
    }
    #[doc = "SMC NFC Control Register"]
    #[inline(always)]
    pub const fn ctrl(self) -> crate::common::Reg<regs::Ctrl, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x04usize) as _) }
    }
    #[doc = "SMC NFC Status Register"]
    #[inline(always)]
    pub const fn sr(self) -> crate::common::Reg<regs::Sr, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x08usize) as _) }
    }
    #[doc = "SMC NFC Interrupt Enable Register"]
    #[inline(always)]
    pub const fn ier(self) -> crate::common::Reg<regs::Ier, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0cusize) as _) }
    }
    #[doc = "SMC NFC Interrupt Disable Register"]
    #[inline(always)]
    pub const fn idr(self) -> crate::common::Reg<regs::Idr, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x10usize) as _) }
    }
    #[doc = "SMC NFC Interrupt Mask Register"]
    #[inline(always)]
    pub const fn imr(self) -> crate::common::Reg<regs::Imr, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x14usize) as _) }
    }
    #[doc = "SMC NFC Address Cycle Zero Register"]
    #[inline(always)]
    pub const fn addr(self) -> crate::common::Reg<regs::Addr, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x18usize) as _) }
    }
    #[doc = "SMC Bank Address Register"]
    #[inline(always)]
    pub const fn bank(self) -> crate::common::Reg<regs::Bank, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x1cusize) as _) }
    }
    #[doc = "SMC ECC Control Register"]
    #[inline(always)]
    pub const fn ecc_ctrl(self) -> crate::common::Reg<regs::EccCtrl, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x20usize) as _) }
    }
    #[doc = "SMC ECC Mode Register"]
    #[inline(always)]
    pub const fn ecc_md(self) -> crate::common::Reg<regs::EccMd, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x24usize) as _) }
    }
    #[doc = "SMC ECC Status 1 Register"]
    #[inline(always)]
    pub const fn ecc_sr1(self) -> crate::common::Reg<regs::EccSr1, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x28usize) as _) }
    }
    #[doc = "SMC ECC Parity 0 Register"]
    #[inline(always)]
    pub const fn ecc_pr0(self) -> crate::common::Reg<regs::EccPr0, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x2cusize) as _) }
    }
    #[doc = "SMC ECC Parity 0 Register"]
    #[inline(always)]
    pub const fn ecc_pr0_w8bit(self) -> crate::common::Reg<regs::EccPr0W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x2cusize) as _) }
    }
    #[doc = "SMC ECC Parity 0 Register"]
    #[inline(always)]
    pub const fn ecc_pr0_w9bit(self) -> crate::common::Reg<regs::EccPr0W9bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x2cusize) as _) }
    }
    #[doc = "SMC ECC parity 1 Register"]
    #[inline(always)]
    pub const fn ecc_pr1(self) -> crate::common::Reg<regs::EccPr1, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x30usize) as _) }
    }
    #[doc = "SMC ECC parity 1 Register"]
    #[inline(always)]
    pub const fn ecc_pr1_w8bit(self) -> crate::common::Reg<regs::EccPr1W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x30usize) as _) }
    }
    #[doc = "SMC ECC parity 1 Register"]
    #[inline(always)]
    pub const fn ecc_pr1_w9bit(self) -> crate::common::Reg<regs::EccPr1W9bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x30usize) as _) }
    }
    #[doc = "SMC ECC status 2 Register"]
    #[inline(always)]
    pub const fn ecc_sr2(self) -> crate::common::Reg<regs::EccSr2, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x34usize) as _) }
    }
    #[doc = "SMC ECC parity 2 Register"]
    #[inline(always)]
    pub const fn ecc_pr2(self) -> crate::common::Reg<regs::EccPr2, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x38usize) as _) }
    }
    #[doc = "SMC ECC parity 2 Register"]
    #[inline(always)]
    pub const fn ecc_pr2_w8bit(self) -> crate::common::Reg<regs::EccPr2W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x38usize) as _) }
    }
    #[doc = "SMC ECC parity 3 Register"]
    #[inline(always)]
    pub const fn ecc_pr3(self) -> crate::common::Reg<regs::EccPr3, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x3cusize) as _) }
    }
    #[doc = "SMC ECC parity 3 Register"]
    #[inline(always)]
    pub const fn ecc_pr3_w8bit(self) -> crate::common::Reg<regs::EccPr3W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x3cusize) as _) }
    }
    #[doc = "SMC ECC parity 4 Register"]
    #[inline(always)]
    pub const fn ecc_pr4(self) -> crate::common::Reg<regs::EccPr4, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x40usize) as _) }
    }
    #[doc = "SMC ECC parity 4 Register"]
    #[inline(always)]
    pub const fn ecc_pr4_w8bit(self) -> crate::common::Reg<regs::EccPr4W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x40usize) as _) }
    }
    #[doc = "SMC ECC parity 5 Register"]
    #[inline(always)]
    pub const fn ecc_pr5(self) -> crate::common::Reg<regs::EccPr5, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x44usize) as _) }
    }
    #[doc = "SMC ECC parity 5 Register"]
    #[inline(always)]
    pub const fn ecc_pr5_w8bit(self) -> crate::common::Reg<regs::EccPr5W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x44usize) as _) }
    }
    #[doc = "SMC ECC parity 6 Register"]
    #[inline(always)]
    pub const fn ecc_pr6(self) -> crate::common::Reg<regs::EccPr6, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x48usize) as _) }
    }
    #[doc = "SMC ECC parity 6 Register"]
    #[inline(always)]
    pub const fn ecc_pr6_w8bit(self) -> crate::common::Reg<regs::EccPr6W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x48usize) as _) }
    }
    #[doc = "SMC ECC parity 7 Register"]
    #[inline(always)]
    pub const fn ecc_pr7(self) -> crate::common::Reg<regs::EccPr7, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x4cusize) as _) }
    }
    #[doc = "SMC ECC parity 7 Register"]
    #[inline(always)]
    pub const fn ecc_pr7_w8bit(self) -> crate::common::Reg<regs::EccPr7W8bit, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x4cusize) as _) }
    }
    #[doc = "SMC ECC parity 8 Register"]
    #[inline(always)]
    pub const fn ecc_pr8(self) -> crate::common::Reg<regs::EccPr8, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x50usize) as _) }
    }
    #[doc = "SMC ECC parity 9 Register"]
    #[inline(always)]
    pub const fn ecc_pr9(self) -> crate::common::Reg<regs::EccPr9, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x54usize) as _) }
    }
    #[doc = "SMC ECC parity 10 Register"]
    #[inline(always)]
    pub const fn ecc_pr10(self) -> crate::common::Reg<regs::EccPr10, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x58usize) as _) }
    }
    #[doc = "SMC ECC parity 11 Register"]
    #[inline(always)]
    pub const fn ecc_pr11(self) -> crate::common::Reg<regs::EccPr11, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x5cusize) as _) }
    }
    #[doc = "SMC ECC parity 12 Register"]
    #[inline(always)]
    pub const fn ecc_pr12(self) -> crate::common::Reg<regs::EccPr12, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x60usize) as _) }
    }
    #[doc = "SMC ECC parity 13 Register"]
    #[inline(always)]
    pub const fn ecc_pr13(self) -> crate::common::Reg<regs::EccPr13, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x64usize) as _) }
    }
    #[doc = "SMC ECC parity 14 Register"]
    #[inline(always)]
    pub const fn ecc_pr14(self) -> crate::common::Reg<regs::EccPr14, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x68usize) as _) }
    }
    #[doc = "SMC ECC parity 15 Register"]
    #[inline(always)]
    pub const fn ecc_pr15(self) -> crate::common::Reg<regs::EccPr15, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x6cusize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 0)"]
    #[inline(always)]
    pub const fn setup0(self) -> crate::common::Reg<regs::Setup0, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x70usize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 0)"]
    #[inline(always)]
    pub const fn pulse0(self) -> crate::common::Reg<regs::Pulse0, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x74usize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 0)"]
    #[inline(always)]
    pub const fn cycle0(self) -> crate::common::Reg<regs::Cycle0, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x78usize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 0)"]
    #[inline(always)]
    pub const fn timings0(self) -> crate::common::Reg<regs::Timings0, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x7cusize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 0)"]
    #[inline(always)]
    pub const fn mode0(self) -> crate::common::Reg<regs::Mode0, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x80usize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 1)"]
    #[inline(always)]
    pub const fn setup1(self) -> crate::common::Reg<regs::Setup1, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x84usize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 1)"]
    #[inline(always)]
    pub const fn pulse1(self) -> crate::common::Reg<regs::Pulse1, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x88usize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 1)"]
    #[inline(always)]
    pub const fn cycle1(self) -> crate::common::Reg<regs::Cycle1, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x8cusize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 1)"]
    #[inline(always)]
    pub const fn timings1(self) -> crate::common::Reg<regs::Timings1, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x90usize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 1)"]
    #[inline(always)]
    pub const fn mode1(self) -> crate::common::Reg<regs::Mode1, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x94usize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 2)"]
    #[inline(always)]
    pub const fn setup2(self) -> crate::common::Reg<regs::Setup2, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x98usize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 2)"]
    #[inline(always)]
    pub const fn pulse2(self) -> crate::common::Reg<regs::Pulse2, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x9cusize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 2)"]
    #[inline(always)]
    pub const fn cycle2(self) -> crate::common::Reg<regs::Cycle2, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xa0usize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 2)"]
    #[inline(always)]
    pub const fn timings2(self) -> crate::common::Reg<regs::Timings2, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xa4usize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 2)"]
    #[inline(always)]
    pub const fn mode2(self) -> crate::common::Reg<regs::Mode2, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xa8usize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 3)"]
    #[inline(always)]
    pub const fn setup3(self) -> crate::common::Reg<regs::Setup3, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xacusize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 3)"]
    #[inline(always)]
    pub const fn pulse3(self) -> crate::common::Reg<regs::Pulse3, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xb0usize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 3)"]
    #[inline(always)]
    pub const fn cycle3(self) -> crate::common::Reg<regs::Cycle3, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xb4usize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 3)"]
    #[inline(always)]
    pub const fn timings3(self) -> crate::common::Reg<regs::Timings3, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xb8usize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 3)"]
    #[inline(always)]
    pub const fn mode3(self) -> crate::common::Reg<regs::Mode3, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xbcusize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 4)"]
    #[inline(always)]
    pub const fn setup4(self) -> crate::common::Reg<regs::Setup4, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xc0usize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 4)"]
    #[inline(always)]
    pub const fn pulse4(self) -> crate::common::Reg<regs::Pulse4, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xc4usize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 4)"]
    #[inline(always)]
    pub const fn cycle4(self) -> crate::common::Reg<regs::Cycle4, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xc8usize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 4)"]
    #[inline(always)]
    pub const fn timings4(self) -> crate::common::Reg<regs::Timings4, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xccusize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 4)"]
    #[inline(always)]
    pub const fn mode4(self) -> crate::common::Reg<regs::Mode4, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xd0usize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 5)"]
    #[inline(always)]
    pub const fn setup5(self) -> crate::common::Reg<regs::Setup5, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xd4usize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 5)"]
    #[inline(always)]
    pub const fn pulse5(self) -> crate::common::Reg<regs::Pulse5, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xd8usize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 5)"]
    #[inline(always)]
    pub const fn cycle5(self) -> crate::common::Reg<regs::Cycle5, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xdcusize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 5)"]
    #[inline(always)]
    pub const fn timings5(self) -> crate::common::Reg<regs::Timings5, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xe0usize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 5)"]
    #[inline(always)]
    pub const fn mode5(self) -> crate::common::Reg<regs::Mode5, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xe4usize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 6)"]
    #[inline(always)]
    pub const fn setup6(self) -> crate::common::Reg<regs::Setup6, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xe8usize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 6)"]
    #[inline(always)]
    pub const fn pulse6(self) -> crate::common::Reg<regs::Pulse6, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xecusize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 6)"]
    #[inline(always)]
    pub const fn cycle6(self) -> crate::common::Reg<regs::Cycle6, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xf0usize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 6)"]
    #[inline(always)]
    pub const fn timings6(self) -> crate::common::Reg<regs::Timings6, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xf4usize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 6)"]
    #[inline(always)]
    pub const fn mode6(self) -> crate::common::Reg<regs::Mode6, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xf8usize) as _) }
    }
    #[doc = "SMC Setup Register (CS_number = 7)"]
    #[inline(always)]
    pub const fn setup7(self) -> crate::common::Reg<regs::Setup7, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0xfcusize) as _) }
    }
    #[doc = "SMC Pulse Register (CS_number = 7)"]
    #[inline(always)]
    pub const fn pulse7(self) -> crate::common::Reg<regs::Pulse7, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0100usize) as _) }
    }
    #[doc = "SMC Cycle Register (CS_number = 7)"]
    #[inline(always)]
    pub const fn cycle7(self) -> crate::common::Reg<regs::Cycle7, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0104usize) as _) }
    }
    #[doc = "SMC Timings Register (CS_number = 7)"]
    #[inline(always)]
    pub const fn timings7(self) -> crate::common::Reg<regs::Timings7, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0108usize) as _) }
    }
    #[doc = "SMC Mode Register (CS_number = 7)"]
    #[inline(always)]
    pub const fn mode7(self) -> crate::common::Reg<regs::Mode7, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x010cusize) as _) }
    }
    #[doc = "SMC OCMS Register"]
    #[inline(always)]
    pub const fn ocms(self) -> crate::common::Reg<regs::Ocms, crate::common::RW> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0110usize) as _) }
    }
    #[doc = "SMC OCMS KEY1 Register"]
    #[inline(always)]
    pub const fn key1(self) -> crate::common::Reg<regs::Key1, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0114usize) as _) }
    }
    #[doc = "SMC OCMS KEY2 Register"]
    #[inline(always)]
    pub const fn key2(self) -> crate::common::Reg<regs::Key2, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x0118usize) as _) }
    }
    #[doc = "Write Protection Control Register"]
    #[inline(always)]
    pub const fn wpcr(self) -> crate::common::Reg<regs::Wpcr, crate::common::W> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x01e4usize) as _) }
    }
    #[doc = "Write Protection Status Register"]
    #[inline(always)]
    pub const fn wpsr(self) -> crate::common::Reg<regs::Wpsr, crate::common::R> {
        unsafe { crate::common::Reg::from_ptr(self.ptr.wrapping_add(0x01e8usize) as _) }
    }
}
pub mod regs;
pub mod vals;