ra4m2 0.2.0

Peripheral access API for ra4m2 microcontrollers (generated using svd2rust)
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
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
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
#[doc = "Register `FSTATR` reader"]
pub struct R(crate::R<FSTATR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<FSTATR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<FSTATR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<FSTATR_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `FSTATR` writer"]
pub struct W(crate::W<FSTATR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<FSTATR_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<FSTATR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<FSTATR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `FLWEERR` reader - Flash Write/Erase Protect Error Flag"]
pub type FLWEERR_R = crate::BitReader<FLWEERR_A>;
#[doc = "Flash Write/Erase Protect Error Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FLWEERR_A {
    #[doc = "0: An error has not occurred"]
    _0 = 0,
    #[doc = "1: An error has occurred."]
    _1 = 1,
}
impl From<FLWEERR_A> for bool {
    #[inline(always)]
    fn from(variant: FLWEERR_A) -> Self {
        variant as u8 != 0
    }
}
impl FLWEERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> FLWEERR_A {
        match self.bits {
            false => FLWEERR_A::_0,
            true => FLWEERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == FLWEERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == FLWEERR_A::_1
    }
}
#[doc = "Field `PRGSPD` reader - Programming Suspend Status Flag"]
pub type PRGSPD_R = crate::BitReader<PRGSPD_A>;
#[doc = "Programming Suspend Status Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PRGSPD_A {
    #[doc = "0: The flash sequencer is in a state other than those corresponding to the value 1"]
    _0 = 0,
    #[doc = "1: The flash sequencer is in the programming suspension processing state or programming suspended state."]
    _1 = 1,
}
impl From<PRGSPD_A> for bool {
    #[inline(always)]
    fn from(variant: PRGSPD_A) -> Self {
        variant as u8 != 0
    }
}
impl PRGSPD_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> PRGSPD_A {
        match self.bits {
            false => PRGSPD_A::_0,
            true => PRGSPD_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == PRGSPD_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == PRGSPD_A::_1
    }
}
#[doc = "Field `ERSSPD` reader - Erasure Suspend Status Flag"]
pub type ERSSPD_R = crate::BitReader<ERSSPD_A>;
#[doc = "Erasure Suspend Status Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ERSSPD_A {
    #[doc = "0: The flash sequencer is in a state other than those corresponding to the value 1"]
    _0 = 0,
    #[doc = "1: The flash sequencer is in the erasure suspension processing state or the erasure suspended state."]
    _1 = 1,
}
impl From<ERSSPD_A> for bool {
    #[inline(always)]
    fn from(variant: ERSSPD_A) -> Self {
        variant as u8 != 0
    }
}
impl ERSSPD_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERSSPD_A {
        match self.bits {
            false => ERSSPD_A::_0,
            true => ERSSPD_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == ERSSPD_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == ERSSPD_A::_1
    }
}
#[doc = "Field `DBFULL` reader - Data Buffer Full Flag"]
pub type DBFULL_R = crate::BitReader<DBFULL_A>;
#[doc = "Data Buffer Full Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DBFULL_A {
    #[doc = "0: The data buffer is empty"]
    _0 = 0,
    #[doc = "1: The data buffer is full."]
    _1 = 1,
}
impl From<DBFULL_A> for bool {
    #[inline(always)]
    fn from(variant: DBFULL_A) -> Self {
        variant as u8 != 0
    }
}
impl DBFULL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DBFULL_A {
        match self.bits {
            false => DBFULL_A::_0,
            true => DBFULL_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == DBFULL_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == DBFULL_A::_1
    }
}
#[doc = "Field `SUSRDY` reader - Suspend Ready Flag"]
pub type SUSRDY_R = crate::BitReader<SUSRDY_A>;
#[doc = "Suspend Ready Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SUSRDY_A {
    #[doc = "0: The flash sequencer cannot receive P/E suspend commands"]
    _0 = 0,
    #[doc = "1: The flash sequencer can receive P/E suspend commands."]
    _1 = 1,
}
impl From<SUSRDY_A> for bool {
    #[inline(always)]
    fn from(variant: SUSRDY_A) -> Self {
        variant as u8 != 0
    }
}
impl SUSRDY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SUSRDY_A {
        match self.bits {
            false => SUSRDY_A::_0,
            true => SUSRDY_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == SUSRDY_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == SUSRDY_A::_1
    }
}
#[doc = "Field `PRGERR` reader - Programming Error Flag"]
pub type PRGERR_R = crate::BitReader<PRGERR_A>;
#[doc = "Programming Error Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PRGERR_A {
    #[doc = "0: Programming has completed successfully"]
    _0 = 0,
    #[doc = "1: An error has occurred during programming."]
    _1 = 1,
}
impl From<PRGERR_A> for bool {
    #[inline(always)]
    fn from(variant: PRGERR_A) -> Self {
        variant as u8 != 0
    }
}
impl PRGERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> PRGERR_A {
        match self.bits {
            false => PRGERR_A::_0,
            true => PRGERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == PRGERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == PRGERR_A::_1
    }
}
#[doc = "Field `ERSERR` reader - Erasure Error Flag"]
pub type ERSERR_R = crate::BitReader<ERSERR_A>;
#[doc = "Erasure Error Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ERSERR_A {
    #[doc = "0: Erasure has completed successfully"]
    _0 = 0,
    #[doc = "1: An error has occurred during erasure."]
    _1 = 1,
}
impl From<ERSERR_A> for bool {
    #[inline(always)]
    fn from(variant: ERSERR_A) -> Self {
        variant as u8 != 0
    }
}
impl ERSERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERSERR_A {
        match self.bits {
            false => ERSERR_A::_0,
            true => ERSERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == ERSERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == ERSERR_A::_1
    }
}
#[doc = "Field `ILGLERR` reader - Illegal Command Error Flag"]
pub type ILGLERR_R = crate::BitReader<ILGLERR_A>;
#[doc = "Illegal Command Error Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ILGLERR_A {
    #[doc = "0: The flash sequencer has not detected an illegal FACI command or illegal flash memory access"]
    _0 = 0,
    #[doc = "1: The flash sequencer has detected an illegal FACI command or illegal flash memory access."]
    _1 = 1,
}
impl From<ILGLERR_A> for bool {
    #[inline(always)]
    fn from(variant: ILGLERR_A) -> Self {
        variant as u8 != 0
    }
}
impl ILGLERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ILGLERR_A {
        match self.bits {
            false => ILGLERR_A::_0,
            true => ILGLERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == ILGLERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == ILGLERR_A::_1
    }
}
#[doc = "Field `FRDY` reader - Flash Ready Flag"]
pub type FRDY_R = crate::BitReader<FRDY_A>;
#[doc = "Flash Ready Flag\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FRDY_A {
    #[doc = "0: Program, Block Erase, Multi Block Erase, P/E suspend, P/E resume, Forced Stop, Blank Check, or Configuration set command processing is in progress"]
    _0 = 0,
    #[doc = "1: None of the above is in progress."]
    _1 = 1,
}
impl From<FRDY_A> for bool {
    #[inline(always)]
    fn from(variant: FRDY_A) -> Self {
        variant as u8 != 0
    }
}
impl FRDY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> FRDY_A {
        match self.bits {
            false => FRDY_A::_0,
            true => FRDY_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == FRDY_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == FRDY_A::_1
    }
}
#[doc = "Field `OTERR` reader - Other Error"]
pub type OTERR_R = crate::BitReader<OTERR_A>;
#[doc = "Other Error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OTERR_A {
    #[doc = "0: A status clear or forced stop command processing is complete"]
    _0 = 0,
    #[doc = "1: An error has occurred."]
    _1 = 1,
}
impl From<OTERR_A> for bool {
    #[inline(always)]
    fn from(variant: OTERR_A) -> Self {
        variant as u8 != 0
    }
}
impl OTERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> OTERR_A {
        match self.bits {
            false => OTERR_A::_0,
            true => OTERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == OTERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == OTERR_A::_1
    }
}
#[doc = "Field `SECERR` reader - Security Error"]
pub type SECERR_R = crate::BitReader<SECERR_A>;
#[doc = "Security Error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SECERR_A {
    #[doc = "0: A status clear or forced stop command processing is complete"]
    _0 = 0,
    #[doc = "1: An error has occurred."]
    _1 = 1,
}
impl From<SECERR_A> for bool {
    #[inline(always)]
    fn from(variant: SECERR_A) -> Self {
        variant as u8 != 0
    }
}
impl SECERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SECERR_A {
        match self.bits {
            false => SECERR_A::_0,
            true => SECERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == SECERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == SECERR_A::_1
    }
}
#[doc = "Field `SECERR` writer - Security Error"]
pub type SECERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, FSTATR_SPEC, SECERR_A, O>;
impl<'a, const O: u8> SECERR_W<'a, O> {
    #[doc = "A status clear or forced stop command processing is complete"]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(SECERR_A::_0)
    }
    #[doc = "An error has occurred."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(SECERR_A::_1)
    }
}
#[doc = "Field `FESETERR` reader - FENTRY Setting Error"]
pub type FESETERR_R = crate::BitReader<FESETERR_A>;
#[doc = "FENTRY Setting Error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FESETERR_A {
    #[doc = "0: A status clear or forced stop command processing is complete"]
    _0 = 0,
    #[doc = "1: An error has occurred."]
    _1 = 1,
}
impl From<FESETERR_A> for bool {
    #[inline(always)]
    fn from(variant: FESETERR_A) -> Self {
        variant as u8 != 0
    }
}
impl FESETERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> FESETERR_A {
        match self.bits {
            false => FESETERR_A::_0,
            true => FESETERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == FESETERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == FESETERR_A::_1
    }
}
#[doc = "Field `ILGCOMERR` reader - Illegal Command Error"]
pub type ILGCOMERR_R = crate::BitReader<ILGCOMERR_A>;
#[doc = "Illegal Command Error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ILGCOMERR_A {
    #[doc = "0: A status clear or forced stop command processing is complete"]
    _0 = 0,
    #[doc = "1: An error has occurred."]
    _1 = 1,
}
impl From<ILGCOMERR_A> for bool {
    #[inline(always)]
    fn from(variant: ILGCOMERR_A) -> Self {
        variant as u8 != 0
    }
}
impl ILGCOMERR_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ILGCOMERR_A {
        match self.bits {
            false => ILGCOMERR_A::_0,
            true => ILGCOMERR_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == ILGCOMERR_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == ILGCOMERR_A::_1
    }
}
impl R {
    #[doc = "Bit 6 - Flash Write/Erase Protect Error Flag"]
    #[inline(always)]
    pub fn flweerr(&self) -> FLWEERR_R {
        FLWEERR_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 8 - Programming Suspend Status Flag"]
    #[inline(always)]
    pub fn prgspd(&self) -> PRGSPD_R {
        PRGSPD_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Erasure Suspend Status Flag"]
    #[inline(always)]
    pub fn ersspd(&self) -> ERSSPD_R {
        ERSSPD_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Data Buffer Full Flag"]
    #[inline(always)]
    pub fn dbfull(&self) -> DBFULL_R {
        DBFULL_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Suspend Ready Flag"]
    #[inline(always)]
    pub fn susrdy(&self) -> SUSRDY_R {
        SUSRDY_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Programming Error Flag"]
    #[inline(always)]
    pub fn prgerr(&self) -> PRGERR_R {
        PRGERR_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Erasure Error Flag"]
    #[inline(always)]
    pub fn erserr(&self) -> ERSERR_R {
        ERSERR_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Illegal Command Error Flag"]
    #[inline(always)]
    pub fn ilglerr(&self) -> ILGLERR_R {
        ILGLERR_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Flash Ready Flag"]
    #[inline(always)]
    pub fn frdy(&self) -> FRDY_R {
        FRDY_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 20 - Other Error"]
    #[inline(always)]
    pub fn oterr(&self) -> OTERR_R {
        OTERR_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Security Error"]
    #[inline(always)]
    pub fn secerr(&self) -> SECERR_R {
        SECERR_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - FENTRY Setting Error"]
    #[inline(always)]
    pub fn feseterr(&self) -> FESETERR_R {
        FESETERR_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Illegal Command Error"]
    #[inline(always)]
    pub fn ilgcomerr(&self) -> ILGCOMERR_R {
        ILGCOMERR_R::new(((self.bits >> 23) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 21 - Security Error"]
    #[inline(always)]
    #[must_use]
    pub fn secerr(&mut self) -> SECERR_W<21> {
        SECERR_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 = "Flash Status 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 [fstatr](index.html) module"]
pub struct FSTATR_SPEC;
impl crate::RegisterSpec for FSTATR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [fstatr::R](R) reader structure"]
impl crate::Readable for FSTATR_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [fstatr::W](W) writer structure"]
impl crate::Writable for FSTATR_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 FSTATR to value 0x8000"]
impl crate::Resettable for FSTATR_SPEC {
    const RESET_VALUE: Self::Ux = 0x8000;
}