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
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
#[doc = "Register `SMHC_STATUS` reader"]
pub struct R(crate::R<SMHC_STATUS_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<SMHC_STATUS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<SMHC_STATUS_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<SMHC_STATUS_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `DMA_REQ` reader - DMA Request"]
pub struct DMA_REQ_R(crate::FieldReader<bool, bool>);
impl DMA_REQ_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
DMA_REQ_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DMA_REQ_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FIFO_LEVEL` reader - FIFO Level"]
pub struct FIFO_LEVEL_R(crate::FieldReader<u16, u16>);
impl FIFO_LEVEL_R {
#[inline(always)]
pub(crate) fn new(bits: u16) -> Self {
FIFO_LEVEL_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FIFO_LEVEL_R {
type Target = crate::FieldReader<u16, u16>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RESP_IDX` reader - Response Index"]
pub struct RESP_IDX_R(crate::FieldReader<u8, u8>);
impl RESP_IDX_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
RESP_IDX_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RESP_IDX_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FSM_BUSY` reader - Data FSM Busy"]
pub struct FSM_BUSY_R(crate::FieldReader<bool, bool>);
impl FSM_BUSY_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
FSM_BUSY_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FSM_BUSY_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Card Data Busy\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CARD_BUSY_A {
#[doc = "0: Card data is not busy"]
NOT_BUSY = 0,
#[doc = "1: Card data is busy"]
BUSY = 1,
}
impl From<CARD_BUSY_A> for bool {
#[inline(always)]
fn from(variant: CARD_BUSY_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CARD_BUSY` reader - Card Data Busy"]
pub struct CARD_BUSY_R(crate::FieldReader<bool, CARD_BUSY_A>);
impl CARD_BUSY_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
CARD_BUSY_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CARD_BUSY_A {
match self.bits {
false => CARD_BUSY_A::NOT_BUSY,
true => CARD_BUSY_A::BUSY,
}
}
#[doc = "Checks if the value of the field is `NOT_BUSY`"]
#[inline(always)]
pub fn is_not_busy(&self) -> bool {
**self == CARD_BUSY_A::NOT_BUSY
}
#[doc = "Checks if the value of the field is `BUSY`"]
#[inline(always)]
pub fn is_busy(&self) -> bool {
**self == CARD_BUSY_A::BUSY
}
}
impl core::ops::Deref for CARD_BUSY_R {
type Target = crate::FieldReader<bool, CARD_BUSY_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Data\\[3\\]
Statuss\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CARD_PRESENT_A {
#[doc = "0: The card is not present"]
NOT_PRESENT = 0,
#[doc = "1: The card is present"]
PRESENT = 1,
}
impl From<CARD_PRESENT_A> for bool {
#[inline(always)]
fn from(variant: CARD_PRESENT_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CARD_PRESENT` reader - Data\\[3\\]
Statuss"]
pub struct CARD_PRESENT_R(crate::FieldReader<bool, CARD_PRESENT_A>);
impl CARD_PRESENT_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
CARD_PRESENT_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CARD_PRESENT_A {
match self.bits {
false => CARD_PRESENT_A::NOT_PRESENT,
true => CARD_PRESENT_A::PRESENT,
}
}
#[doc = "Checks if the value of the field is `NOT_PRESENT`"]
#[inline(always)]
pub fn is_not_present(&self) -> bool {
**self == CARD_PRESENT_A::NOT_PRESENT
}
#[doc = "Checks if the value of the field is `PRESENT`"]
#[inline(always)]
pub fn is_present(&self) -> bool {
**self == CARD_PRESENT_A::PRESENT
}
}
impl core::ops::Deref for CARD_PRESENT_R {
type Target = crate::FieldReader<bool, CARD_PRESENT_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Command FSM States\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum FSM_STA_A {
#[doc = "0: Idle"]
IDLE = 0,
#[doc = "1: Send init sequence"]
SIS = 1,
#[doc = "2: TX CMD start bit"]
TXCSB = 2,
#[doc = "3: TX CMD TX bit"]
TXCTB = 3,
#[doc = "4: TX CMD index + argument"]
TXCIA = 4,
#[doc = "5: TX CMD CRC7"]
TXCC = 5,
#[doc = "6: TX CMD end bit"]
TXCEB = 6,
#[doc = "7: RX response start bit"]
RXRSB = 7,
#[doc = "8: RX response IRQ responses"]
RXRIR = 8,
#[doc = "9: RX response TX bit"]
RXRTB = 9,
#[doc = "10: RX response CMD index"]
RXRCI = 10,
#[doc = "11: RX response data"]
RXRD = 11,
#[doc = "12: RX response CRC7"]
RXRC = 12,
#[doc = "13: RX response end bit"]
RXREB = 13,
#[doc = "14: CMD path wait NCC"]
CPWN = 14,
#[doc = "15: Wait; CMD-to-response turn around"]
WAIT = 15,
}
impl From<FSM_STA_A> for u8 {
#[inline(always)]
fn from(variant: FSM_STA_A) -> Self {
variant as _
}
}
#[doc = "Field `FSM_STA` reader - Command FSM States"]
pub struct FSM_STA_R(crate::FieldReader<u8, FSM_STA_A>);
impl FSM_STA_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
FSM_STA_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FSM_STA_A {
match self.bits {
0 => FSM_STA_A::IDLE,
1 => FSM_STA_A::SIS,
2 => FSM_STA_A::TXCSB,
3 => FSM_STA_A::TXCTB,
4 => FSM_STA_A::TXCIA,
5 => FSM_STA_A::TXCC,
6 => FSM_STA_A::TXCEB,
7 => FSM_STA_A::RXRSB,
8 => FSM_STA_A::RXRIR,
9 => FSM_STA_A::RXRTB,
10 => FSM_STA_A::RXRCI,
11 => FSM_STA_A::RXRD,
12 => FSM_STA_A::RXRC,
13 => FSM_STA_A::RXREB,
14 => FSM_STA_A::CPWN,
15 => FSM_STA_A::WAIT,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `IDLE`"]
#[inline(always)]
pub fn is_idle(&self) -> bool {
**self == FSM_STA_A::IDLE
}
#[doc = "Checks if the value of the field is `SIS`"]
#[inline(always)]
pub fn is_sis(&self) -> bool {
**self == FSM_STA_A::SIS
}
#[doc = "Checks if the value of the field is `TXCSB`"]
#[inline(always)]
pub fn is_txcsb(&self) -> bool {
**self == FSM_STA_A::TXCSB
}
#[doc = "Checks if the value of the field is `TXCTB`"]
#[inline(always)]
pub fn is_txctb(&self) -> bool {
**self == FSM_STA_A::TXCTB
}
#[doc = "Checks if the value of the field is `TXCIA`"]
#[inline(always)]
pub fn is_txcia(&self) -> bool {
**self == FSM_STA_A::TXCIA
}
#[doc = "Checks if the value of the field is `TXCC`"]
#[inline(always)]
pub fn is_txcc(&self) -> bool {
**self == FSM_STA_A::TXCC
}
#[doc = "Checks if the value of the field is `TXCEB`"]
#[inline(always)]
pub fn is_txceb(&self) -> bool {
**self == FSM_STA_A::TXCEB
}
#[doc = "Checks if the value of the field is `RXRSB`"]
#[inline(always)]
pub fn is_rxrsb(&self) -> bool {
**self == FSM_STA_A::RXRSB
}
#[doc = "Checks if the value of the field is `RXRIR`"]
#[inline(always)]
pub fn is_rxrir(&self) -> bool {
**self == FSM_STA_A::RXRIR
}
#[doc = "Checks if the value of the field is `RXRTB`"]
#[inline(always)]
pub fn is_rxrtb(&self) -> bool {
**self == FSM_STA_A::RXRTB
}
#[doc = "Checks if the value of the field is `RXRCI`"]
#[inline(always)]
pub fn is_rxrci(&self) -> bool {
**self == FSM_STA_A::RXRCI
}
#[doc = "Checks if the value of the field is `RXRD`"]
#[inline(always)]
pub fn is_rxrd(&self) -> bool {
**self == FSM_STA_A::RXRD
}
#[doc = "Checks if the value of the field is `RXRC`"]
#[inline(always)]
pub fn is_rxrc(&self) -> bool {
**self == FSM_STA_A::RXRC
}
#[doc = "Checks if the value of the field is `RXREB`"]
#[inline(always)]
pub fn is_rxreb(&self) -> bool {
**self == FSM_STA_A::RXREB
}
#[doc = "Checks if the value of the field is `CPWN`"]
#[inline(always)]
pub fn is_cpwn(&self) -> bool {
**self == FSM_STA_A::CPWN
}
#[doc = "Checks if the value of the field is `WAIT`"]
#[inline(always)]
pub fn is_wait(&self) -> bool {
**self == FSM_STA_A::WAIT
}
}
impl core::ops::Deref for FSM_STA_R {
type Target = crate::FieldReader<u8, FSM_STA_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "sFIFO Full\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FIFO_FULL_A {
#[doc = "0: FIFO is not full"]
NOT_FULL = 0,
#[doc = "1: FIFO is full"]
FULL = 1,
}
impl From<FIFO_FULL_A> for bool {
#[inline(always)]
fn from(variant: FIFO_FULL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `FIFO_FULL` reader - sFIFO Full"]
pub struct FIFO_FULL_R(crate::FieldReader<bool, FIFO_FULL_A>);
impl FIFO_FULL_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
FIFO_FULL_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FIFO_FULL_A {
match self.bits {
false => FIFO_FULL_A::NOT_FULL,
true => FIFO_FULL_A::FULL,
}
}
#[doc = "Checks if the value of the field is `NOT_FULL`"]
#[inline(always)]
pub fn is_not_full(&self) -> bool {
**self == FIFO_FULL_A::NOT_FULL
}
#[doc = "Checks if the value of the field is `FULL`"]
#[inline(always)]
pub fn is_full(&self) -> bool {
**self == FIFO_FULL_A::FULL
}
}
impl core::ops::Deref for FIFO_FULL_R {
type Target = crate::FieldReader<bool, FIFO_FULL_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "FIFO Empty\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FIFO_EMPTY_A {
#[doc = "0: FIFO is not empty"]
NOT_SEMPTY = 0,
#[doc = "1: FIFO is empty"]
EMPTY = 1,
}
impl From<FIFO_EMPTY_A> for bool {
#[inline(always)]
fn from(variant: FIFO_EMPTY_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `FIFO_EMPTY` reader - FIFO Empty"]
pub struct FIFO_EMPTY_R(crate::FieldReader<bool, FIFO_EMPTY_A>);
impl FIFO_EMPTY_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
FIFO_EMPTY_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FIFO_EMPTY_A {
match self.bits {
false => FIFO_EMPTY_A::NOT_SEMPTY,
true => FIFO_EMPTY_A::EMPTY,
}
}
#[doc = "Checks if the value of the field is `NOT_SEMPTY`"]
#[inline(always)]
pub fn is_not_sempty(&self) -> bool {
**self == FIFO_EMPTY_A::NOT_SEMPTY
}
#[doc = "Checks if the value of the field is `EMPTY`"]
#[inline(always)]
pub fn is_empty(&self) -> bool {
**self == FIFO_EMPTY_A::EMPTY
}
}
impl core::ops::Deref for FIFO_EMPTY_R {
type Target = crate::FieldReader<bool, FIFO_EMPTY_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "FIFO TX Water Level Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FIFO_TX_LEVEL_A {
#[doc = "0: FIFO does not reach the transmit trigger level"]
NOT_REACH = 0,
#[doc = "1: FIFO reaches the transmit trigger level"]
REACH = 1,
}
impl From<FIFO_TX_LEVEL_A> for bool {
#[inline(always)]
fn from(variant: FIFO_TX_LEVEL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `FIFO_TX_LEVEL` reader - FIFO TX Water Level Flag"]
pub struct FIFO_TX_LEVEL_R(crate::FieldReader<bool, FIFO_TX_LEVEL_A>);
impl FIFO_TX_LEVEL_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
FIFO_TX_LEVEL_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FIFO_TX_LEVEL_A {
match self.bits {
false => FIFO_TX_LEVEL_A::NOT_REACH,
true => FIFO_TX_LEVEL_A::REACH,
}
}
#[doc = "Checks if the value of the field is `NOT_REACH`"]
#[inline(always)]
pub fn is_not_reach(&self) -> bool {
**self == FIFO_TX_LEVEL_A::NOT_REACH
}
#[doc = "Checks if the value of the field is `REACH`"]
#[inline(always)]
pub fn is_reach(&self) -> bool {
**self == FIFO_TX_LEVEL_A::REACH
}
}
impl core::ops::Deref for FIFO_TX_LEVEL_R {
type Target = crate::FieldReader<bool, FIFO_TX_LEVEL_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "FIFO RX Water Level Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FIFO_RX_LEVEL_A {
#[doc = "0: FIFO does not reach the receive trigger level"]
NOT_REACH = 0,
#[doc = "1: FIFO reaches the receive trigger level"]
REACH = 1,
}
impl From<FIFO_RX_LEVEL_A> for bool {
#[inline(always)]
fn from(variant: FIFO_RX_LEVEL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `FIFO_RX_LEVEL` reader - FIFO RX Water Level Flag"]
pub struct FIFO_RX_LEVEL_R(crate::FieldReader<bool, FIFO_RX_LEVEL_A>);
impl FIFO_RX_LEVEL_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
FIFO_RX_LEVEL_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FIFO_RX_LEVEL_A {
match self.bits {
false => FIFO_RX_LEVEL_A::NOT_REACH,
true => FIFO_RX_LEVEL_A::REACH,
}
}
#[doc = "Checks if the value of the field is `NOT_REACH`"]
#[inline(always)]
pub fn is_not_reach(&self) -> bool {
**self == FIFO_RX_LEVEL_A::NOT_REACH
}
#[doc = "Checks if the value of the field is `REACH`"]
#[inline(always)]
pub fn is_reach(&self) -> bool {
**self == FIFO_RX_LEVEL_A::REACH
}
}
impl core::ops::Deref for FIFO_RX_LEVEL_R {
type Target = crate::FieldReader<bool, FIFO_RX_LEVEL_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bit 31 - DMA Request"]
#[inline(always)]
pub fn dma_req(&self) -> DMA_REQ_R {
DMA_REQ_R::new(((self.bits >> 31) & 0x01) != 0)
}
#[doc = "Bits 17:25 - FIFO Level"]
#[inline(always)]
pub fn fifo_level(&self) -> FIFO_LEVEL_R {
FIFO_LEVEL_R::new(((self.bits >> 17) & 0x01ff) as u16)
}
#[doc = "Bits 11:16 - Response Index"]
#[inline(always)]
pub fn resp_idx(&self) -> RESP_IDX_R {
RESP_IDX_R::new(((self.bits >> 11) & 0x3f) as u8)
}
#[doc = "Bit 10 - Data FSM Busy"]
#[inline(always)]
pub fn fsm_busy(&self) -> FSM_BUSY_R {
FSM_BUSY_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9 - Card Data Busy"]
#[inline(always)]
pub fn card_busy(&self) -> CARD_BUSY_R {
CARD_BUSY_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8 - Data\\[3\\]
Statuss"]
#[inline(always)]
pub fn card_present(&self) -> CARD_PRESENT_R {
CARD_PRESENT_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bits 4:7 - Command FSM States"]
#[inline(always)]
pub fn fsm_sta(&self) -> FSM_STA_R {
FSM_STA_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[doc = "Bit 3 - sFIFO Full"]
#[inline(always)]
pub fn fifo_full(&self) -> FIFO_FULL_R {
FIFO_FULL_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2 - FIFO Empty"]
#[inline(always)]
pub fn fifo_empty(&self) -> FIFO_EMPTY_R {
FIFO_EMPTY_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - FIFO TX Water Level Flag"]
#[inline(always)]
pub fn fifo_tx_level(&self) -> FIFO_TX_LEVEL_R {
FIFO_TX_LEVEL_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - FIFO RX Water Level Flag"]
#[inline(always)]
pub fn fifo_rx_level(&self) -> FIFO_RX_LEVEL_R {
FIFO_RX_LEVEL_R::new((self.bits & 0x01) != 0)
}
}
#[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [smhc_status](index.html) module"]
pub struct SMHC_STATUS_SPEC;
impl crate::RegisterSpec for SMHC_STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [smhc_status::R](R) reader structure"]
impl crate::Readable for SMHC_STATUS_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets SMHC_STATUS to value 0"]
impl crate::Resettable for SMHC_STATUS_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}