mcxa-pac 0.1.1

Peripheral Access Crate for MCXA256 devices
Documentation
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
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
#[doc = "Register `REMAP` reader"]
pub type R = crate::R<RemapSpec>;
#[doc = "Register `REMAP` writer"]
pub type W = crate::W<RemapSpec>;
#[doc = "RAMX0 address remap for CPU System bus\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum Cpu0Sbus {
    #[doc = "0: RAMX0: alias space is disabled."]
    Cpu0Sbus0 = 0,
    #[doc = "1: RAMX0: alias space is enabled. It's linear address space from bottom of system ram. The start address is 0x20000000 + (system ram size - RAMX size)*1024."]
    Cpu0Sbus1 = 1,
}
impl From<Cpu0Sbus> for u8 {
    #[inline(always)]
    fn from(variant: Cpu0Sbus) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for Cpu0Sbus {
    type Ux = u8;
}
impl crate::IsEnum for Cpu0Sbus {}
#[doc = "Field `CPU0_SBUS` reader - RAMX0 address remap for CPU System bus"]
pub type Cpu0SbusR = crate::FieldReader<Cpu0Sbus>;
impl Cpu0SbusR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<Cpu0Sbus> {
        match self.bits {
            0 => Some(Cpu0Sbus::Cpu0Sbus0),
            1 => Some(Cpu0Sbus::Cpu0Sbus1),
            _ => None,
        }
    }
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn is_cpu0_sbus_0(&self) -> bool {
        *self == Cpu0Sbus::Cpu0Sbus0
    }
    #[doc = "RAMX0: alias space is enabled. It's linear address space from bottom of system ram. The start address is 0x20000000 + (system ram size - RAMX size)*1024."]
    #[inline(always)]
    pub fn is_cpu0_sbus_1(&self) -> bool {
        *self == Cpu0Sbus::Cpu0Sbus1
    }
}
#[doc = "Field `CPU0_SBUS` writer - RAMX0 address remap for CPU System bus"]
pub type Cpu0SbusW<'a, REG> = crate::FieldWriter<'a, REG, 2, Cpu0Sbus>;
impl<'a, REG> Cpu0SbusW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn cpu0_sbus_0(self) -> &'a mut crate::W<REG> {
        self.variant(Cpu0Sbus::Cpu0Sbus0)
    }
    #[doc = "RAMX0: alias space is enabled. It's linear address space from bottom of system ram. The start address is 0x20000000 + (system ram size - RAMX size)*1024."]
    #[inline(always)]
    pub fn cpu0_sbus_1(self) -> &'a mut crate::W<REG> {
        self.variant(Cpu0Sbus::Cpu0Sbus1)
    }
}
#[doc = "RAMX0 address remap for SmartDMA D-BUS\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SmartDmaD {
    #[doc = "0: RAMX0: alias space is disabled."]
    SmartDmaD0 = 0,
    #[doc = "1: RAMX0: same alias space as CPU0_SBUS"]
    SmartDmaD1 = 1,
}
impl From<SmartDmaD> for u8 {
    #[inline(always)]
    fn from(variant: SmartDmaD) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SmartDmaD {
    type Ux = u8;
}
impl crate::IsEnum for SmartDmaD {}
#[doc = "Field `SmartDMA_D` reader - RAMX0 address remap for SmartDMA D-BUS"]
pub type SmartDmaDR = crate::FieldReader<SmartDmaD>;
impl SmartDmaDR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<SmartDmaD> {
        match self.bits {
            0 => Some(SmartDmaD::SmartDmaD0),
            1 => Some(SmartDmaD::SmartDmaD1),
            _ => None,
        }
    }
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn is_smart_dma_d_0(&self) -> bool {
        *self == SmartDmaD::SmartDmaD0
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn is_smart_dma_d_1(&self) -> bool {
        *self == SmartDmaD::SmartDmaD1
    }
}
#[doc = "Field `SmartDMA_D` writer - RAMX0 address remap for SmartDMA D-BUS"]
pub type SmartDmaDW<'a, REG> = crate::FieldWriter<'a, REG, 2, SmartDmaD>;
impl<'a, REG> SmartDmaDW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn smart_dma_d_0(self) -> &'a mut crate::W<REG> {
        self.variant(SmartDmaD::SmartDmaD0)
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn smart_dma_d_1(self) -> &'a mut crate::W<REG> {
        self.variant(SmartDmaD::SmartDmaD1)
    }
}
#[doc = "RAMX0 address remap for SmartDMA I-BUS\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SmartDmaI {
    #[doc = "0: RAMX0: alias space is disabled."]
    SmartDmaI0 = 0,
    #[doc = "1: RAMX0: same alias space as CPU0_SBUS"]
    SmartDmaI1 = 1,
}
impl From<SmartDmaI> for u8 {
    #[inline(always)]
    fn from(variant: SmartDmaI) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SmartDmaI {
    type Ux = u8;
}
impl crate::IsEnum for SmartDmaI {}
#[doc = "Field `SmartDMA_I` reader - RAMX0 address remap for SmartDMA I-BUS"]
pub type SmartDmaIR = crate::FieldReader<SmartDmaI>;
impl SmartDmaIR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<SmartDmaI> {
        match self.bits {
            0 => Some(SmartDmaI::SmartDmaI0),
            1 => Some(SmartDmaI::SmartDmaI1),
            _ => None,
        }
    }
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn is_smart_dma_i_0(&self) -> bool {
        *self == SmartDmaI::SmartDmaI0
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn is_smart_dma_i_1(&self) -> bool {
        *self == SmartDmaI::SmartDmaI1
    }
}
#[doc = "Field `SmartDMA_I` writer - RAMX0 address remap for SmartDMA I-BUS"]
pub type SmartDmaIW<'a, REG> = crate::FieldWriter<'a, REG, 2, SmartDmaI>;
impl<'a, REG> SmartDmaIW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn smart_dma_i_0(self) -> &'a mut crate::W<REG> {
        self.variant(SmartDmaI::SmartDmaI0)
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn smart_dma_i_1(self) -> &'a mut crate::W<REG> {
        self.variant(SmartDmaI::SmartDmaI1)
    }
}
#[doc = "RAMX0 address remap for DMA0\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum Dma0 {
    #[doc = "0: RAMX0: alias space is disabled."]
    Dma0_0 = 0,
    #[doc = "1: RAMX0: same alias space as CPU0_SBUS"]
    Dma0_1 = 1,
}
impl From<Dma0> for u8 {
    #[inline(always)]
    fn from(variant: Dma0) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for Dma0 {
    type Ux = u8;
}
impl crate::IsEnum for Dma0 {}
#[doc = "Field `DMA0` reader - RAMX0 address remap for DMA0"]
pub type Dma0R = crate::FieldReader<Dma0>;
impl Dma0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<Dma0> {
        match self.bits {
            0 => Some(Dma0::Dma0_0),
            1 => Some(Dma0::Dma0_1),
            _ => None,
        }
    }
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn is_dma0_0(&self) -> bool {
        *self == Dma0::Dma0_0
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn is_dma0_1(&self) -> bool {
        *self == Dma0::Dma0_1
    }
}
#[doc = "Field `DMA0` writer - RAMX0 address remap for DMA0"]
pub type Dma0W<'a, REG> = crate::FieldWriter<'a, REG, 2, Dma0>;
impl<'a, REG> Dma0W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn dma0_0(self) -> &'a mut crate::W<REG> {
        self.variant(Dma0::Dma0_0)
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn dma0_1(self) -> &'a mut crate::W<REG> {
        self.variant(Dma0::Dma0_1)
    }
}
#[doc = "RAMX0 address remap for PKC\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum Pkc {
    #[doc = "0: RAMX0: alias space is disabled."]
    Pkc0 = 0,
    #[doc = "1: RAMX0: same alias space as CPU0_SBUS"]
    Pkc1 = 1,
}
impl From<Pkc> for u8 {
    #[inline(always)]
    fn from(variant: Pkc) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for Pkc {
    type Ux = u8;
}
impl crate::IsEnum for Pkc {}
#[doc = "Field `PKC` reader - RAMX0 address remap for PKC"]
pub type PkcR = crate::FieldReader<Pkc>;
impl PkcR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<Pkc> {
        match self.bits {
            0 => Some(Pkc::Pkc0),
            1 => Some(Pkc::Pkc1),
            _ => None,
        }
    }
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn is_pkc_0(&self) -> bool {
        *self == Pkc::Pkc0
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn is_pkc_1(&self) -> bool {
        *self == Pkc::Pkc1
    }
}
#[doc = "Field `PKC` writer - RAMX0 address remap for PKC"]
pub type PkcW<'a, REG> = crate::FieldWriter<'a, REG, 2, Pkc>;
impl<'a, REG> PkcW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn pkc_0(self) -> &'a mut crate::W<REG> {
        self.variant(Pkc::Pkc0)
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn pkc_1(self) -> &'a mut crate::W<REG> {
        self.variant(Pkc::Pkc1)
    }
}
#[doc = "RAMX0 address remap for USB0\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum Usb0 {
    #[doc = "0: RAMX0: alias space is disabled."]
    Usb0_0 = 0,
    #[doc = "1: RAMX0: same alias space as CPU0_SBUS"]
    Usb0_1 = 1,
}
impl From<Usb0> for u8 {
    #[inline(always)]
    fn from(variant: Usb0) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for Usb0 {
    type Ux = u8;
}
impl crate::IsEnum for Usb0 {}
#[doc = "Field `USB0` reader - RAMX0 address remap for USB0"]
pub type Usb0R = crate::FieldReader<Usb0>;
impl Usb0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<Usb0> {
        match self.bits {
            0 => Some(Usb0::Usb0_0),
            1 => Some(Usb0::Usb0_1),
            _ => None,
        }
    }
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn is_usb0_0(&self) -> bool {
        *self == Usb0::Usb0_0
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn is_usb0_1(&self) -> bool {
        *self == Usb0::Usb0_1
    }
}
#[doc = "Field `USB0` writer - RAMX0 address remap for USB0"]
pub type Usb0W<'a, REG> = crate::FieldWriter<'a, REG, 2, Usb0>;
impl<'a, REG> Usb0W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "RAMX0: alias space is disabled."]
    #[inline(always)]
    pub fn usb0_0(self) -> &'a mut crate::W<REG> {
        self.variant(Usb0::Usb0_0)
    }
    #[doc = "RAMX0: same alias space as CPU0_SBUS"]
    #[inline(always)]
    pub fn usb0_1(self) -> &'a mut crate::W<REG> {
        self.variant(Usb0::Usb0_1)
    }
}
#[doc = "This 1-bit field provides a mechanism to limit writes to the this register to protect its contents. Once set, this bit remains asserted until a system reset.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Lock {
    #[doc = "0: This register is not locked and can be altered."]
    Lock0 = 0,
    #[doc = "1: This register is locked and cannot be altered until a system reset."]
    Lock1 = 1,
}
impl From<Lock> for bool {
    #[inline(always)]
    fn from(variant: Lock) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `LOCK` reader - This 1-bit field provides a mechanism to limit writes to the this register to protect its contents. Once set, this bit remains asserted until a system reset."]
pub type LockR = crate::BitReader<Lock>;
impl LockR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Lock {
        match self.bits {
            false => Lock::Lock0,
            true => Lock::Lock1,
        }
    }
    #[doc = "This register is not locked and can be altered."]
    #[inline(always)]
    pub fn is_lock_0(&self) -> bool {
        *self == Lock::Lock0
    }
    #[doc = "This register is locked and cannot be altered until a system reset."]
    #[inline(always)]
    pub fn is_lock_1(&self) -> bool {
        *self == Lock::Lock1
    }
}
#[doc = "Field `LOCK` writer - This 1-bit field provides a mechanism to limit writes to the this register to protect its contents. Once set, this bit remains asserted until a system reset."]
pub type LockW<'a, REG> = crate::BitWriter<'a, REG, Lock>;
impl<'a, REG> LockW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "This register is not locked and can be altered."]
    #[inline(always)]
    pub fn lock_0(self) -> &'a mut crate::W<REG> {
        self.variant(Lock::Lock0)
    }
    #[doc = "This register is locked and cannot be altered until a system reset."]
    #[inline(always)]
    pub fn lock_1(self) -> &'a mut crate::W<REG> {
        self.variant(Lock::Lock1)
    }
}
impl R {
    #[doc = "Bits 2:3 - RAMX0 address remap for CPU System bus"]
    #[inline(always)]
    pub fn cpu0_sbus(&self) -> Cpu0SbusR {
        Cpu0SbusR::new(((self.bits >> 2) & 3) as u8)
    }
    #[doc = "Bits 4:5 - RAMX0 address remap for SmartDMA D-BUS"]
    #[inline(always)]
    pub fn smart_dma_d(&self) -> SmartDmaDR {
        SmartDmaDR::new(((self.bits >> 4) & 3) as u8)
    }
    #[doc = "Bits 6:7 - RAMX0 address remap for SmartDMA I-BUS"]
    #[inline(always)]
    pub fn smart_dma_i(&self) -> SmartDmaIR {
        SmartDmaIR::new(((self.bits >> 6) & 3) as u8)
    }
    #[doc = "Bits 8:9 - RAMX0 address remap for DMA0"]
    #[inline(always)]
    pub fn dma0(&self) -> Dma0R {
        Dma0R::new(((self.bits >> 8) & 3) as u8)
    }
    #[doc = "Bits 12:13 - RAMX0 address remap for PKC"]
    #[inline(always)]
    pub fn pkc(&self) -> PkcR {
        PkcR::new(((self.bits >> 12) & 3) as u8)
    }
    #[doc = "Bits 24:25 - RAMX0 address remap for USB0"]
    #[inline(always)]
    pub fn usb0(&self) -> Usb0R {
        Usb0R::new(((self.bits >> 24) & 3) as u8)
    }
    #[doc = "Bit 31 - This 1-bit field provides a mechanism to limit writes to the this register to protect its contents. Once set, this bit remains asserted until a system reset."]
    #[inline(always)]
    pub fn lock(&self) -> LockR {
        LockR::new(((self.bits >> 31) & 1) != 0)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("REMAP")
            .field("cpu0_sbus", &self.cpu0_sbus())
            .field("smart_dma_d", &self.smart_dma_d())
            .field("smart_dma_i", &self.smart_dma_i())
            .field("dma0", &self.dma0())
            .field("pkc", &self.pkc())
            .field("usb0", &self.usb0())
            .field("lock", &self.lock())
            .finish()
    }
}
impl W {
    #[doc = "Bits 2:3 - RAMX0 address remap for CPU System bus"]
    #[inline(always)]
    pub fn cpu0_sbus(&mut self) -> Cpu0SbusW<'_, RemapSpec> {
        Cpu0SbusW::new(self, 2)
    }
    #[doc = "Bits 4:5 - RAMX0 address remap for SmartDMA D-BUS"]
    #[inline(always)]
    pub fn smart_dma_d(&mut self) -> SmartDmaDW<'_, RemapSpec> {
        SmartDmaDW::new(self, 4)
    }
    #[doc = "Bits 6:7 - RAMX0 address remap for SmartDMA I-BUS"]
    #[inline(always)]
    pub fn smart_dma_i(&mut self) -> SmartDmaIW<'_, RemapSpec> {
        SmartDmaIW::new(self, 6)
    }
    #[doc = "Bits 8:9 - RAMX0 address remap for DMA0"]
    #[inline(always)]
    pub fn dma0(&mut self) -> Dma0W<'_, RemapSpec> {
        Dma0W::new(self, 8)
    }
    #[doc = "Bits 12:13 - RAMX0 address remap for PKC"]
    #[inline(always)]
    pub fn pkc(&mut self) -> PkcW<'_, RemapSpec> {
        PkcW::new(self, 12)
    }
    #[doc = "Bits 24:25 - RAMX0 address remap for USB0"]
    #[inline(always)]
    pub fn usb0(&mut self) -> Usb0W<'_, RemapSpec> {
        Usb0W::new(self, 24)
    }
    #[doc = "Bit 31 - This 1-bit field provides a mechanism to limit writes to the this register to protect its contents. Once set, this bit remains asserted until a system reset."]
    #[inline(always)]
    pub fn lock(&mut self) -> LockW<'_, RemapSpec> {
        LockW::new(self, 31)
    }
}
#[doc = "AHB Matrix Remap Control\n\nYou can [`read`](crate::Reg::read) this register and get [`remap::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`remap::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RemapSpec;
impl crate::RegisterSpec for RemapSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`remap::R`](R) reader structure"]
impl crate::Readable for RemapSpec {}
#[doc = "`write(|w| ..)` method takes [`remap::W`](W) writer structure"]
impl crate::Writable for RemapSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets REMAP to value 0"]
impl crate::Resettable for RemapSpec {}