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
#[doc = "Register `HOSTCTRL1` reader"]
pub struct R(crate::R<HOSTCTRL1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<HOSTCTRL1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<HOSTCTRL1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<HOSTCTRL1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `HOSTCTRL1` writer"]
pub struct W(crate::W<HOSTCTRL1_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<HOSTCTRL1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<HOSTCTRL1_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<HOSTCTRL1_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `LEDCTRL` reader - LED Control"]
pub type LEDCTRL_R = crate::BitReader<bool>;
#[doc = "Field `LEDCTRL` writer - LED Control"]
pub type LEDCTRL_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `DATTRANWD` reader - Data Transfer Width 1-bit or 4-bit Mode"]
pub type DATTRANWD_R = crate::BitReader<bool>;
#[doc = "Field `DATTRANWD` writer - Data Transfer Width 1-bit or 4-bit Mode"]
pub type DATTRANWD_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `HSEN` reader - High Speed Enable"]
pub type HSEN_R = crate::BitReader<bool>;
#[doc = "Field `HSEN` writer - High Speed Enable"]
pub type HSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `DMASEL` reader - DMA Select"]
pub type DMASEL_R = crate::FieldReader<u8, DMASEL_A>;
#[doc = "DMA Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum DMASEL_A {
    #[doc = "0: SDMA selected"]
    SDMA = 0,
    #[doc = "1: 32-bit ADMA1 selected"]
    ADMA1 = 1,
    #[doc = "2: 32-bit ADMA2 selected"]
    ADMA2 = 2,
    #[doc = "3: 64-bit ADMA2 selected"]
    _64BITADMA2 = 3,
}
impl From<DMASEL_A> for u8 {
    #[inline(always)]
    fn from(variant: DMASEL_A) -> Self {
        variant as _
    }
}
impl DMASEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DMASEL_A {
        match self.bits {
            0 => DMASEL_A::SDMA,
            1 => DMASEL_A::ADMA1,
            2 => DMASEL_A::ADMA2,
            3 => DMASEL_A::_64BITADMA2,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `SDMA`"]
    #[inline(always)]
    pub fn is_sdma(&self) -> bool {
        *self == DMASEL_A::SDMA
    }
    #[doc = "Checks if the value of the field is `ADMA1`"]
    #[inline(always)]
    pub fn is_adma1(&self) -> bool {
        *self == DMASEL_A::ADMA1
    }
    #[doc = "Checks if the value of the field is `ADMA2`"]
    #[inline(always)]
    pub fn is_adma2(&self) -> bool {
        *self == DMASEL_A::ADMA2
    }
    #[doc = "Checks if the value of the field is `_64BITADMA2`"]
    #[inline(always)]
    pub fn is_64bitadma2(&self) -> bool {
        *self == DMASEL_A::_64BITADMA2
    }
}
#[doc = "Field `DMASEL` writer - DMA Select"]
pub type DMASEL_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, HOSTCTRL1_SPEC, u8, DMASEL_A, 2, O>;
impl<'a, const O: u8> DMASEL_W<'a, O> {
    #[doc = "SDMA selected"]
    #[inline(always)]
    pub fn sdma(self) -> &'a mut W {
        self.variant(DMASEL_A::SDMA)
    }
    #[doc = "32-bit ADMA1 selected"]
    #[inline(always)]
    pub fn adma1(self) -> &'a mut W {
        self.variant(DMASEL_A::ADMA1)
    }
    #[doc = "32-bit ADMA2 selected"]
    #[inline(always)]
    pub fn adma2(self) -> &'a mut W {
        self.variant(DMASEL_A::ADMA2)
    }
    #[doc = "64-bit ADMA2 selected"]
    #[inline(always)]
    pub fn _64bitadma2(self) -> &'a mut W {
        self.variant(DMASEL_A::_64BITADMA2)
    }
}
#[doc = "Field `EXTDATTRANWD` reader - Extended Data Transfer Width"]
pub type EXTDATTRANWD_R = crate::BitReader<bool>;
#[doc = "Field `EXTDATTRANWD` writer - Extended Data Transfer Width"]
pub type EXTDATTRANWD_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `CDTSTLVL` reader - Card Detect Test Level"]
pub type CDTSTLVL_R = crate::BitReader<bool>;
#[doc = "Field `CDTSTLVL` writer - Card Detect Test Level"]
pub type CDTSTLVL_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `CDSIGDET` reader - Card Detetct Signal Detection"]
pub type CDSIGDET_R = crate::BitReader<bool>;
#[doc = "Field `CDSIGDET` writer - Card Detetct Signal Detection"]
pub type CDSIGDET_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `SDBUSPOWER` reader - SD Bus Power"]
pub type SDBUSPOWER_R = crate::BitReader<bool>;
#[doc = "Field `SDBUSPOWER` writer - SD Bus Power"]
pub type SDBUSPOWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `SDBUSVOLTSEL` reader - SD Bus Voltage Select"]
pub type SDBUSVOLTSEL_R = crate::FieldReader<u8, SDBUSVOLTSEL_A>;
#[doc = "SD Bus Voltage Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SDBUSVOLTSEL_A {
    #[doc = "5: Select 1.8V"]
    _1P8V = 5,
    #[doc = "6: Select 3.0V"]
    _3P0V = 6,
    #[doc = "7: Select 3.3V"]
    _3P3V = 7,
}
impl From<SDBUSVOLTSEL_A> for u8 {
    #[inline(always)]
    fn from(variant: SDBUSVOLTSEL_A) -> Self {
        variant as _
    }
}
impl SDBUSVOLTSEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<SDBUSVOLTSEL_A> {
        match self.bits {
            5 => Some(SDBUSVOLTSEL_A::_1P8V),
            6 => Some(SDBUSVOLTSEL_A::_3P0V),
            7 => Some(SDBUSVOLTSEL_A::_3P3V),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `_1P8V`"]
    #[inline(always)]
    pub fn is_1p8v(&self) -> bool {
        *self == SDBUSVOLTSEL_A::_1P8V
    }
    #[doc = "Checks if the value of the field is `_3P0V`"]
    #[inline(always)]
    pub fn is_3p0v(&self) -> bool {
        *self == SDBUSVOLTSEL_A::_3P0V
    }
    #[doc = "Checks if the value of the field is `_3P3V`"]
    #[inline(always)]
    pub fn is_3p3v(&self) -> bool {
        *self == SDBUSVOLTSEL_A::_3P3V
    }
}
#[doc = "Field `SDBUSVOLTSEL` writer - SD Bus Voltage Select"]
pub type SDBUSVOLTSEL_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, HOSTCTRL1_SPEC, u8, SDBUSVOLTSEL_A, 3, O>;
impl<'a, const O: u8> SDBUSVOLTSEL_W<'a, O> {
    #[doc = "Select 1.8V"]
    #[inline(always)]
    pub fn _1p8v(self) -> &'a mut W {
        self.variant(SDBUSVOLTSEL_A::_1P8V)
    }
    #[doc = "Select 3.0V"]
    #[inline(always)]
    pub fn _3p0v(self) -> &'a mut W {
        self.variant(SDBUSVOLTSEL_A::_3P0V)
    }
    #[doc = "Select 3.3V"]
    #[inline(always)]
    pub fn _3p3v(self) -> &'a mut W {
        self.variant(SDBUSVOLTSEL_A::_3P3V)
    }
}
#[doc = "Field `HRDRST` reader - Hardware Reset Signal"]
pub type HRDRST_R = crate::BitReader<bool>;
#[doc = "Field `HRDRST` writer - Hardware Reset Signal"]
pub type HRDRST_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `STOPATBLKGAPREQ` reader - Stop at Block Gap Request"]
pub type STOPATBLKGAPREQ_R = crate::BitReader<bool>;
#[doc = "Field `STOPATBLKGAPREQ` writer - Stop at Block Gap Request"]
pub type STOPATBLKGAPREQ_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `CONTINUEREQ` reader - Continue Request"]
pub type CONTINUEREQ_R = crate::BitReader<bool>;
#[doc = "Field `CONTINUEREQ` writer - Continue Request"]
pub type CONTINUEREQ_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `RDWAITCTRL` reader - Read Wait Control"]
pub type RDWAITCTRL_R = crate::BitReader<bool>;
#[doc = "Field `RDWAITCTRL` writer - Read Wait Control"]
pub type RDWAITCTRL_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `INTATBLKGAP` reader - Interrupt at Block Gap"]
pub type INTATBLKGAP_R = crate::BitReader<bool>;
#[doc = "Field `INTATBLKGAP` writer - Interrupt at Block Gap"]
pub type INTATBLKGAP_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `SPIMODE` reader - SPI Mode Enable"]
pub type SPIMODE_R = crate::BitReader<bool>;
#[doc = "Field `SPIMODE` writer - SPI Mode Enable"]
pub type SPIMODE_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `BOOTEN` reader - Boot Enable"]
pub type BOOTEN_R = crate::BitReader<bool>;
#[doc = "Field `BOOTEN` writer - Boot Enable"]
pub type BOOTEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `ALTBOOTEN` reader - Alternate Boot Enable"]
pub type ALTBOOTEN_R = crate::BitReader<bool>;
#[doc = "Field `ALTBOOTEN` writer - Alternate Boot Enable"]
pub type ALTBOOTEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `BOOTACKCHK` reader - Boot Ack Check"]
pub type BOOTACKCHK_R = crate::BitReader<bool>;
#[doc = "Field `BOOTACKCHK` writer - Boot Ack Check"]
pub type BOOTACKCHK_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `WKUPEVNTENONCARDINT` reader - Wakeup Event Enable on Card Interrupt"]
pub type WKUPEVNTENONCARDINT_R = crate::BitReader<bool>;
#[doc = "Field `WKUPEVNTENONCARDINT` writer - Wakeup Event Enable on Card Interrupt"]
pub type WKUPEVNTENONCARDINT_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `WKUPEVNTENONCINS` reader - Wakeup Event Enable on SD Card Insertion"]
pub type WKUPEVNTENONCINS_R = crate::BitReader<bool>;
#[doc = "Field `WKUPEVNTENONCINS` writer - Wakeup Event Enable on SD Card Insertion"]
pub type WKUPEVNTENONCINS_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
#[doc = "Field `WKUPEVNTENONCRM` reader - Wakeup Event Enable on SD Card Removal"]
pub type WKUPEVNTENONCRM_R = crate::BitReader<bool>;
#[doc = "Field `WKUPEVNTENONCRM` writer - Wakeup Event Enable on SD Card Removal"]
pub type WKUPEVNTENONCRM_W<'a, const O: u8> = crate::BitWriter<'a, u32, HOSTCTRL1_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0 - LED Control"]
    #[inline(always)]
    pub fn ledctrl(&self) -> LEDCTRL_R {
        LEDCTRL_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Data Transfer Width 1-bit or 4-bit Mode"]
    #[inline(always)]
    pub fn dattranwd(&self) -> DATTRANWD_R {
        DATTRANWD_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - High Speed Enable"]
    #[inline(always)]
    pub fn hsen(&self) -> HSEN_R {
        HSEN_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bits 3:4 - DMA Select"]
    #[inline(always)]
    pub fn dmasel(&self) -> DMASEL_R {
        DMASEL_R::new(((self.bits >> 3) & 3) as u8)
    }
    #[doc = "Bit 5 - Extended Data Transfer Width"]
    #[inline(always)]
    pub fn extdattranwd(&self) -> EXTDATTRANWD_R {
        EXTDATTRANWD_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Card Detect Test Level"]
    #[inline(always)]
    pub fn cdtstlvl(&self) -> CDTSTLVL_R {
        CDTSTLVL_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Card Detetct Signal Detection"]
    #[inline(always)]
    pub fn cdsigdet(&self) -> CDSIGDET_R {
        CDSIGDET_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - SD Bus Power"]
    #[inline(always)]
    pub fn sdbuspower(&self) -> SDBUSPOWER_R {
        SDBUSPOWER_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bits 9:11 - SD Bus Voltage Select"]
    #[inline(always)]
    pub fn sdbusvoltsel(&self) -> SDBUSVOLTSEL_R {
        SDBUSVOLTSEL_R::new(((self.bits >> 9) & 7) as u8)
    }
    #[doc = "Bit 12 - Hardware Reset Signal"]
    #[inline(always)]
    pub fn hrdrst(&self) -> HRDRST_R {
        HRDRST_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 16 - Stop at Block Gap Request"]
    #[inline(always)]
    pub fn stopatblkgapreq(&self) -> STOPATBLKGAPREQ_R {
        STOPATBLKGAPREQ_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Continue Request"]
    #[inline(always)]
    pub fn continuereq(&self) -> CONTINUEREQ_R {
        CONTINUEREQ_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Read Wait Control"]
    #[inline(always)]
    pub fn rdwaitctrl(&self) -> RDWAITCTRL_R {
        RDWAITCTRL_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Interrupt at Block Gap"]
    #[inline(always)]
    pub fn intatblkgap(&self) -> INTATBLKGAP_R {
        INTATBLKGAP_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - SPI Mode Enable"]
    #[inline(always)]
    pub fn spimode(&self) -> SPIMODE_R {
        SPIMODE_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Boot Enable"]
    #[inline(always)]
    pub fn booten(&self) -> BOOTEN_R {
        BOOTEN_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Alternate Boot Enable"]
    #[inline(always)]
    pub fn altbooten(&self) -> ALTBOOTEN_R {
        ALTBOOTEN_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Boot Ack Check"]
    #[inline(always)]
    pub fn bootackchk(&self) -> BOOTACKCHK_R {
        BOOTACKCHK_R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Wakeup Event Enable on Card Interrupt"]
    #[inline(always)]
    pub fn wkupevntenoncardint(&self) -> WKUPEVNTENONCARDINT_R {
        WKUPEVNTENONCARDINT_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Wakeup Event Enable on SD Card Insertion"]
    #[inline(always)]
    pub fn wkupevntenoncins(&self) -> WKUPEVNTENONCINS_R {
        WKUPEVNTENONCINS_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Wakeup Event Enable on SD Card Removal"]
    #[inline(always)]
    pub fn wkupevntenoncrm(&self) -> WKUPEVNTENONCRM_R {
        WKUPEVNTENONCRM_R::new(((self.bits >> 26) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - LED Control"]
    #[inline(always)]
    #[must_use]
    pub fn ledctrl(&mut self) -> LEDCTRL_W<0> {
        LEDCTRL_W::new(self)
    }
    #[doc = "Bit 1 - Data Transfer Width 1-bit or 4-bit Mode"]
    #[inline(always)]
    #[must_use]
    pub fn dattranwd(&mut self) -> DATTRANWD_W<1> {
        DATTRANWD_W::new(self)
    }
    #[doc = "Bit 2 - High Speed Enable"]
    #[inline(always)]
    #[must_use]
    pub fn hsen(&mut self) -> HSEN_W<2> {
        HSEN_W::new(self)
    }
    #[doc = "Bits 3:4 - DMA Select"]
    #[inline(always)]
    #[must_use]
    pub fn dmasel(&mut self) -> DMASEL_W<3> {
        DMASEL_W::new(self)
    }
    #[doc = "Bit 5 - Extended Data Transfer Width"]
    #[inline(always)]
    #[must_use]
    pub fn extdattranwd(&mut self) -> EXTDATTRANWD_W<5> {
        EXTDATTRANWD_W::new(self)
    }
    #[doc = "Bit 6 - Card Detect Test Level"]
    #[inline(always)]
    #[must_use]
    pub fn cdtstlvl(&mut self) -> CDTSTLVL_W<6> {
        CDTSTLVL_W::new(self)
    }
    #[doc = "Bit 7 - Card Detetct Signal Detection"]
    #[inline(always)]
    #[must_use]
    pub fn cdsigdet(&mut self) -> CDSIGDET_W<7> {
        CDSIGDET_W::new(self)
    }
    #[doc = "Bit 8 - SD Bus Power"]
    #[inline(always)]
    #[must_use]
    pub fn sdbuspower(&mut self) -> SDBUSPOWER_W<8> {
        SDBUSPOWER_W::new(self)
    }
    #[doc = "Bits 9:11 - SD Bus Voltage Select"]
    #[inline(always)]
    #[must_use]
    pub fn sdbusvoltsel(&mut self) -> SDBUSVOLTSEL_W<9> {
        SDBUSVOLTSEL_W::new(self)
    }
    #[doc = "Bit 12 - Hardware Reset Signal"]
    #[inline(always)]
    #[must_use]
    pub fn hrdrst(&mut self) -> HRDRST_W<12> {
        HRDRST_W::new(self)
    }
    #[doc = "Bit 16 - Stop at Block Gap Request"]
    #[inline(always)]
    #[must_use]
    pub fn stopatblkgapreq(&mut self) -> STOPATBLKGAPREQ_W<16> {
        STOPATBLKGAPREQ_W::new(self)
    }
    #[doc = "Bit 17 - Continue Request"]
    #[inline(always)]
    #[must_use]
    pub fn continuereq(&mut self) -> CONTINUEREQ_W<17> {
        CONTINUEREQ_W::new(self)
    }
    #[doc = "Bit 18 - Read Wait Control"]
    #[inline(always)]
    #[must_use]
    pub fn rdwaitctrl(&mut self) -> RDWAITCTRL_W<18> {
        RDWAITCTRL_W::new(self)
    }
    #[doc = "Bit 19 - Interrupt at Block Gap"]
    #[inline(always)]
    #[must_use]
    pub fn intatblkgap(&mut self) -> INTATBLKGAP_W<19> {
        INTATBLKGAP_W::new(self)
    }
    #[doc = "Bit 20 - SPI Mode Enable"]
    #[inline(always)]
    #[must_use]
    pub fn spimode(&mut self) -> SPIMODE_W<20> {
        SPIMODE_W::new(self)
    }
    #[doc = "Bit 21 - Boot Enable"]
    #[inline(always)]
    #[must_use]
    pub fn booten(&mut self) -> BOOTEN_W<21> {
        BOOTEN_W::new(self)
    }
    #[doc = "Bit 22 - Alternate Boot Enable"]
    #[inline(always)]
    #[must_use]
    pub fn altbooten(&mut self) -> ALTBOOTEN_W<22> {
        ALTBOOTEN_W::new(self)
    }
    #[doc = "Bit 23 - Boot Ack Check"]
    #[inline(always)]
    #[must_use]
    pub fn bootackchk(&mut self) -> BOOTACKCHK_W<23> {
        BOOTACKCHK_W::new(self)
    }
    #[doc = "Bit 24 - Wakeup Event Enable on Card Interrupt"]
    #[inline(always)]
    #[must_use]
    pub fn wkupevntenoncardint(&mut self) -> WKUPEVNTENONCARDINT_W<24> {
        WKUPEVNTENONCARDINT_W::new(self)
    }
    #[doc = "Bit 25 - Wakeup Event Enable on SD Card Insertion"]
    #[inline(always)]
    #[must_use]
    pub fn wkupevntenoncins(&mut self) -> WKUPEVNTENONCINS_W<25> {
        WKUPEVNTENONCINS_W::new(self)
    }
    #[doc = "Bit 26 - Wakeup Event Enable on SD Card Removal"]
    #[inline(always)]
    #[must_use]
    pub fn wkupevntenoncrm(&mut self) -> WKUPEVNTENONCRM_W<26> {
        WKUPEVNTENONCRM_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Host Control1, Power, Block Gap and Wakeup-up Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [hostctrl1](index.html) module"]
pub struct HOSTCTRL1_SPEC;
impl crate::RegisterSpec for HOSTCTRL1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [hostctrl1::R](R) reader structure"]
impl crate::Readable for HOSTCTRL1_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [hostctrl1::W](W) writer structure"]
impl crate::Writable for HOSTCTRL1_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets HOSTCTRL1 to value 0x0080_0000"]
impl crate::Resettable for HOSTCTRL1_SPEC {
    const RESET_VALUE: Self::Ux = 0x0080_0000;
}