atsamd51n/sdhc0/
nistr.rs

1#[doc = "Register `NISTR` reader"]
2pub type R = crate::R<NistrSpec>;
3#[doc = "Register `NISTR` writer"]
4pub type W = crate::W<NistrSpec>;
5#[doc = "Command Complete\n\nValue on reset: 0"]
6#[derive(Clone, Copy, Debug, PartialEq, Eq)]
7pub enum Cmdcselect {
8    #[doc = "0: No command complete"]
9    No = 0,
10    #[doc = "1: Command complete"]
11    Yes = 1,
12}
13impl From<Cmdcselect> for bool {
14    #[inline(always)]
15    fn from(variant: Cmdcselect) -> Self {
16        variant as u8 != 0
17    }
18}
19#[doc = "Field `CMDC` reader - Command Complete"]
20pub type CmdcR = crate::BitReader<Cmdcselect>;
21impl CmdcR {
22    #[doc = "Get enumerated values variant"]
23    #[inline(always)]
24    pub const fn variant(&self) -> Cmdcselect {
25        match self.bits {
26            false => Cmdcselect::No,
27            true => Cmdcselect::Yes,
28        }
29    }
30    #[doc = "No command complete"]
31    #[inline(always)]
32    pub fn is_no(&self) -> bool {
33        *self == Cmdcselect::No
34    }
35    #[doc = "Command complete"]
36    #[inline(always)]
37    pub fn is_yes(&self) -> bool {
38        *self == Cmdcselect::Yes
39    }
40}
41#[doc = "Field `CMDC` writer - Command Complete"]
42pub type CmdcW<'a, REG> = crate::BitWriter<'a, REG, Cmdcselect>;
43impl<'a, REG> CmdcW<'a, REG>
44where
45    REG: crate::Writable + crate::RegisterSpec,
46{
47    #[doc = "No command complete"]
48    #[inline(always)]
49    pub fn no(self) -> &'a mut crate::W<REG> {
50        self.variant(Cmdcselect::No)
51    }
52    #[doc = "Command complete"]
53    #[inline(always)]
54    pub fn yes(self) -> &'a mut crate::W<REG> {
55        self.variant(Cmdcselect::Yes)
56    }
57}
58#[doc = "Transfer Complete\n\nValue on reset: 0"]
59#[derive(Clone, Copy, Debug, PartialEq, Eq)]
60pub enum Trfcselect {
61    #[doc = "0: Not complete"]
62    No = 0,
63    #[doc = "1: Command execution is completed"]
64    Yes = 1,
65}
66impl From<Trfcselect> for bool {
67    #[inline(always)]
68    fn from(variant: Trfcselect) -> Self {
69        variant as u8 != 0
70    }
71}
72#[doc = "Field `TRFC` reader - Transfer Complete"]
73pub type TrfcR = crate::BitReader<Trfcselect>;
74impl TrfcR {
75    #[doc = "Get enumerated values variant"]
76    #[inline(always)]
77    pub const fn variant(&self) -> Trfcselect {
78        match self.bits {
79            false => Trfcselect::No,
80            true => Trfcselect::Yes,
81        }
82    }
83    #[doc = "Not complete"]
84    #[inline(always)]
85    pub fn is_no(&self) -> bool {
86        *self == Trfcselect::No
87    }
88    #[doc = "Command execution is completed"]
89    #[inline(always)]
90    pub fn is_yes(&self) -> bool {
91        *self == Trfcselect::Yes
92    }
93}
94#[doc = "Field `TRFC` writer - Transfer Complete"]
95pub type TrfcW<'a, REG> = crate::BitWriter<'a, REG, Trfcselect>;
96impl<'a, REG> TrfcW<'a, REG>
97where
98    REG: crate::Writable + crate::RegisterSpec,
99{
100    #[doc = "Not complete"]
101    #[inline(always)]
102    pub fn no(self) -> &'a mut crate::W<REG> {
103        self.variant(Trfcselect::No)
104    }
105    #[doc = "Command execution is completed"]
106    #[inline(always)]
107    pub fn yes(self) -> &'a mut crate::W<REG> {
108        self.variant(Trfcselect::Yes)
109    }
110}
111#[doc = "Block Gap Event\n\nValue on reset: 0"]
112#[derive(Clone, Copy, Debug, PartialEq, Eq)]
113pub enum Blkgeselect {
114    #[doc = "0: No Block Gap Event"]
115    No = 0,
116    #[doc = "1: Transaction stopped at block gap"]
117    Stop = 1,
118}
119impl From<Blkgeselect> for bool {
120    #[inline(always)]
121    fn from(variant: Blkgeselect) -> Self {
122        variant as u8 != 0
123    }
124}
125#[doc = "Field `BLKGE` reader - Block Gap Event"]
126pub type BlkgeR = crate::BitReader<Blkgeselect>;
127impl BlkgeR {
128    #[doc = "Get enumerated values variant"]
129    #[inline(always)]
130    pub const fn variant(&self) -> Blkgeselect {
131        match self.bits {
132            false => Blkgeselect::No,
133            true => Blkgeselect::Stop,
134        }
135    }
136    #[doc = "No Block Gap Event"]
137    #[inline(always)]
138    pub fn is_no(&self) -> bool {
139        *self == Blkgeselect::No
140    }
141    #[doc = "Transaction stopped at block gap"]
142    #[inline(always)]
143    pub fn is_stop(&self) -> bool {
144        *self == Blkgeselect::Stop
145    }
146}
147#[doc = "Field `BLKGE` writer - Block Gap Event"]
148pub type BlkgeW<'a, REG> = crate::BitWriter<'a, REG, Blkgeselect>;
149impl<'a, REG> BlkgeW<'a, REG>
150where
151    REG: crate::Writable + crate::RegisterSpec,
152{
153    #[doc = "No Block Gap Event"]
154    #[inline(always)]
155    pub fn no(self) -> &'a mut crate::W<REG> {
156        self.variant(Blkgeselect::No)
157    }
158    #[doc = "Transaction stopped at block gap"]
159    #[inline(always)]
160    pub fn stop(self) -> &'a mut crate::W<REG> {
161        self.variant(Blkgeselect::Stop)
162    }
163}
164#[doc = "DMA Interrupt\n\nValue on reset: 0"]
165#[derive(Clone, Copy, Debug, PartialEq, Eq)]
166pub enum Dmaintselect {
167    #[doc = "0: No DMA Interrupt"]
168    No = 0,
169    #[doc = "1: DMA Interrupt is generated"]
170    Yes = 1,
171}
172impl From<Dmaintselect> for bool {
173    #[inline(always)]
174    fn from(variant: Dmaintselect) -> Self {
175        variant as u8 != 0
176    }
177}
178#[doc = "Field `DMAINT` reader - DMA Interrupt"]
179pub type DmaintR = crate::BitReader<Dmaintselect>;
180impl DmaintR {
181    #[doc = "Get enumerated values variant"]
182    #[inline(always)]
183    pub const fn variant(&self) -> Dmaintselect {
184        match self.bits {
185            false => Dmaintselect::No,
186            true => Dmaintselect::Yes,
187        }
188    }
189    #[doc = "No DMA Interrupt"]
190    #[inline(always)]
191    pub fn is_no(&self) -> bool {
192        *self == Dmaintselect::No
193    }
194    #[doc = "DMA Interrupt is generated"]
195    #[inline(always)]
196    pub fn is_yes(&self) -> bool {
197        *self == Dmaintselect::Yes
198    }
199}
200#[doc = "Field `DMAINT` writer - DMA Interrupt"]
201pub type DmaintW<'a, REG> = crate::BitWriter<'a, REG, Dmaintselect>;
202impl<'a, REG> DmaintW<'a, REG>
203where
204    REG: crate::Writable + crate::RegisterSpec,
205{
206    #[doc = "No DMA Interrupt"]
207    #[inline(always)]
208    pub fn no(self) -> &'a mut crate::W<REG> {
209        self.variant(Dmaintselect::No)
210    }
211    #[doc = "DMA Interrupt is generated"]
212    #[inline(always)]
213    pub fn yes(self) -> &'a mut crate::W<REG> {
214        self.variant(Dmaintselect::Yes)
215    }
216}
217#[doc = "Buffer Write Ready\n\nValue on reset: 0"]
218#[derive(Clone, Copy, Debug, PartialEq, Eq)]
219pub enum Bwrrdyselect {
220    #[doc = "0: Not ready to write buffer"]
221    No = 0,
222    #[doc = "1: Ready to write buffer"]
223    Yes = 1,
224}
225impl From<Bwrrdyselect> for bool {
226    #[inline(always)]
227    fn from(variant: Bwrrdyselect) -> Self {
228        variant as u8 != 0
229    }
230}
231#[doc = "Field `BWRRDY` reader - Buffer Write Ready"]
232pub type BwrrdyR = crate::BitReader<Bwrrdyselect>;
233impl BwrrdyR {
234    #[doc = "Get enumerated values variant"]
235    #[inline(always)]
236    pub const fn variant(&self) -> Bwrrdyselect {
237        match self.bits {
238            false => Bwrrdyselect::No,
239            true => Bwrrdyselect::Yes,
240        }
241    }
242    #[doc = "Not ready to write buffer"]
243    #[inline(always)]
244    pub fn is_no(&self) -> bool {
245        *self == Bwrrdyselect::No
246    }
247    #[doc = "Ready to write buffer"]
248    #[inline(always)]
249    pub fn is_yes(&self) -> bool {
250        *self == Bwrrdyselect::Yes
251    }
252}
253#[doc = "Field `BWRRDY` writer - Buffer Write Ready"]
254pub type BwrrdyW<'a, REG> = crate::BitWriter<'a, REG, Bwrrdyselect>;
255impl<'a, REG> BwrrdyW<'a, REG>
256where
257    REG: crate::Writable + crate::RegisterSpec,
258{
259    #[doc = "Not ready to write buffer"]
260    #[inline(always)]
261    pub fn no(self) -> &'a mut crate::W<REG> {
262        self.variant(Bwrrdyselect::No)
263    }
264    #[doc = "Ready to write buffer"]
265    #[inline(always)]
266    pub fn yes(self) -> &'a mut crate::W<REG> {
267        self.variant(Bwrrdyselect::Yes)
268    }
269}
270#[doc = "Buffer Read Ready\n\nValue on reset: 0"]
271#[derive(Clone, Copy, Debug, PartialEq, Eq)]
272pub enum Brdrdyselect {
273    #[doc = "0: Not ready to read buffer"]
274    No = 0,
275    #[doc = "1: Ready to read buffer"]
276    Yes = 1,
277}
278impl From<Brdrdyselect> for bool {
279    #[inline(always)]
280    fn from(variant: Brdrdyselect) -> Self {
281        variant as u8 != 0
282    }
283}
284#[doc = "Field `BRDRDY` reader - Buffer Read Ready"]
285pub type BrdrdyR = crate::BitReader<Brdrdyselect>;
286impl BrdrdyR {
287    #[doc = "Get enumerated values variant"]
288    #[inline(always)]
289    pub const fn variant(&self) -> Brdrdyselect {
290        match self.bits {
291            false => Brdrdyselect::No,
292            true => Brdrdyselect::Yes,
293        }
294    }
295    #[doc = "Not ready to read buffer"]
296    #[inline(always)]
297    pub fn is_no(&self) -> bool {
298        *self == Brdrdyselect::No
299    }
300    #[doc = "Ready to read buffer"]
301    #[inline(always)]
302    pub fn is_yes(&self) -> bool {
303        *self == Brdrdyselect::Yes
304    }
305}
306#[doc = "Field `BRDRDY` writer - Buffer Read Ready"]
307pub type BrdrdyW<'a, REG> = crate::BitWriter<'a, REG, Brdrdyselect>;
308impl<'a, REG> BrdrdyW<'a, REG>
309where
310    REG: crate::Writable + crate::RegisterSpec,
311{
312    #[doc = "Not ready to read buffer"]
313    #[inline(always)]
314    pub fn no(self) -> &'a mut crate::W<REG> {
315        self.variant(Brdrdyselect::No)
316    }
317    #[doc = "Ready to read buffer"]
318    #[inline(always)]
319    pub fn yes(self) -> &'a mut crate::W<REG> {
320        self.variant(Brdrdyselect::Yes)
321    }
322}
323#[doc = "Card Insertion\n\nValue on reset: 0"]
324#[derive(Clone, Copy, Debug, PartialEq, Eq)]
325pub enum Cinsselect {
326    #[doc = "0: Card state stable or Debouncing"]
327    No = 0,
328    #[doc = "1: Card inserted"]
329    Yes = 1,
330}
331impl From<Cinsselect> for bool {
332    #[inline(always)]
333    fn from(variant: Cinsselect) -> Self {
334        variant as u8 != 0
335    }
336}
337#[doc = "Field `CINS` reader - Card Insertion"]
338pub type CinsR = crate::BitReader<Cinsselect>;
339impl CinsR {
340    #[doc = "Get enumerated values variant"]
341    #[inline(always)]
342    pub const fn variant(&self) -> Cinsselect {
343        match self.bits {
344            false => Cinsselect::No,
345            true => Cinsselect::Yes,
346        }
347    }
348    #[doc = "Card state stable or Debouncing"]
349    #[inline(always)]
350    pub fn is_no(&self) -> bool {
351        *self == Cinsselect::No
352    }
353    #[doc = "Card inserted"]
354    #[inline(always)]
355    pub fn is_yes(&self) -> bool {
356        *self == Cinsselect::Yes
357    }
358}
359#[doc = "Field `CINS` writer - Card Insertion"]
360pub type CinsW<'a, REG> = crate::BitWriter<'a, REG, Cinsselect>;
361impl<'a, REG> CinsW<'a, REG>
362where
363    REG: crate::Writable + crate::RegisterSpec,
364{
365    #[doc = "Card state stable or Debouncing"]
366    #[inline(always)]
367    pub fn no(self) -> &'a mut crate::W<REG> {
368        self.variant(Cinsselect::No)
369    }
370    #[doc = "Card inserted"]
371    #[inline(always)]
372    pub fn yes(self) -> &'a mut crate::W<REG> {
373        self.variant(Cinsselect::Yes)
374    }
375}
376#[doc = "Card Removal\n\nValue on reset: 0"]
377#[derive(Clone, Copy, Debug, PartialEq, Eq)]
378pub enum Cremselect {
379    #[doc = "0: Card state stable or Debouncing"]
380    No = 0,
381    #[doc = "1: Card Removed"]
382    Yes = 1,
383}
384impl From<Cremselect> for bool {
385    #[inline(always)]
386    fn from(variant: Cremselect) -> Self {
387        variant as u8 != 0
388    }
389}
390#[doc = "Field `CREM` reader - Card Removal"]
391pub type CremR = crate::BitReader<Cremselect>;
392impl CremR {
393    #[doc = "Get enumerated values variant"]
394    #[inline(always)]
395    pub const fn variant(&self) -> Cremselect {
396        match self.bits {
397            false => Cremselect::No,
398            true => Cremselect::Yes,
399        }
400    }
401    #[doc = "Card state stable or Debouncing"]
402    #[inline(always)]
403    pub fn is_no(&self) -> bool {
404        *self == Cremselect::No
405    }
406    #[doc = "Card Removed"]
407    #[inline(always)]
408    pub fn is_yes(&self) -> bool {
409        *self == Cremselect::Yes
410    }
411}
412#[doc = "Field `CREM` writer - Card Removal"]
413pub type CremW<'a, REG> = crate::BitWriter<'a, REG, Cremselect>;
414impl<'a, REG> CremW<'a, REG>
415where
416    REG: crate::Writable + crate::RegisterSpec,
417{
418    #[doc = "Card state stable or Debouncing"]
419    #[inline(always)]
420    pub fn no(self) -> &'a mut crate::W<REG> {
421        self.variant(Cremselect::No)
422    }
423    #[doc = "Card Removed"]
424    #[inline(always)]
425    pub fn yes(self) -> &'a mut crate::W<REG> {
426        self.variant(Cremselect::Yes)
427    }
428}
429#[doc = "Card Interrupt\n\nValue on reset: 0"]
430#[derive(Clone, Copy, Debug, PartialEq, Eq)]
431pub enum Cintselect {
432    #[doc = "0: No Card Interrupt"]
433    No = 0,
434    #[doc = "1: Generate Card Interrupt"]
435    Yes = 1,
436}
437impl From<Cintselect> for bool {
438    #[inline(always)]
439    fn from(variant: Cintselect) -> Self {
440        variant as u8 != 0
441    }
442}
443#[doc = "Field `CINT` reader - Card Interrupt"]
444pub type CintR = crate::BitReader<Cintselect>;
445impl CintR {
446    #[doc = "Get enumerated values variant"]
447    #[inline(always)]
448    pub const fn variant(&self) -> Cintselect {
449        match self.bits {
450            false => Cintselect::No,
451            true => Cintselect::Yes,
452        }
453    }
454    #[doc = "No Card Interrupt"]
455    #[inline(always)]
456    pub fn is_no(&self) -> bool {
457        *self == Cintselect::No
458    }
459    #[doc = "Generate Card Interrupt"]
460    #[inline(always)]
461    pub fn is_yes(&self) -> bool {
462        *self == Cintselect::Yes
463    }
464}
465#[doc = "Field `CINT` writer - Card Interrupt"]
466pub type CintW<'a, REG> = crate::BitWriter<'a, REG, Cintselect>;
467impl<'a, REG> CintW<'a, REG>
468where
469    REG: crate::Writable + crate::RegisterSpec,
470{
471    #[doc = "No Card Interrupt"]
472    #[inline(always)]
473    pub fn no(self) -> &'a mut crate::W<REG> {
474        self.variant(Cintselect::No)
475    }
476    #[doc = "Generate Card Interrupt"]
477    #[inline(always)]
478    pub fn yes(self) -> &'a mut crate::W<REG> {
479        self.variant(Cintselect::Yes)
480    }
481}
482#[doc = "Error Interrupt\n\nValue on reset: 0"]
483#[derive(Clone, Copy, Debug, PartialEq, Eq)]
484pub enum Errintselect {
485    #[doc = "0: No Error"]
486    No = 0,
487    #[doc = "1: Error"]
488    Yes = 1,
489}
490impl From<Errintselect> for bool {
491    #[inline(always)]
492    fn from(variant: Errintselect) -> Self {
493        variant as u8 != 0
494    }
495}
496#[doc = "Field `ERRINT` reader - Error Interrupt"]
497pub type ErrintR = crate::BitReader<Errintselect>;
498impl ErrintR {
499    #[doc = "Get enumerated values variant"]
500    #[inline(always)]
501    pub const fn variant(&self) -> Errintselect {
502        match self.bits {
503            false => Errintselect::No,
504            true => Errintselect::Yes,
505        }
506    }
507    #[doc = "No Error"]
508    #[inline(always)]
509    pub fn is_no(&self) -> bool {
510        *self == Errintselect::No
511    }
512    #[doc = "Error"]
513    #[inline(always)]
514    pub fn is_yes(&self) -> bool {
515        *self == Errintselect::Yes
516    }
517}
518#[doc = "Field `ERRINT` writer - Error Interrupt"]
519pub type ErrintW<'a, REG> = crate::BitWriter<'a, REG, Errintselect>;
520impl<'a, REG> ErrintW<'a, REG>
521where
522    REG: crate::Writable + crate::RegisterSpec,
523{
524    #[doc = "No Error"]
525    #[inline(always)]
526    pub fn no(self) -> &'a mut crate::W<REG> {
527        self.variant(Errintselect::No)
528    }
529    #[doc = "Error"]
530    #[inline(always)]
531    pub fn yes(self) -> &'a mut crate::W<REG> {
532        self.variant(Errintselect::Yes)
533    }
534}
535impl R {
536    #[doc = "Bit 0 - Command Complete"]
537    #[inline(always)]
538    pub fn cmdc(&self) -> CmdcR {
539        CmdcR::new((self.bits & 1) != 0)
540    }
541    #[doc = "Bit 1 - Transfer Complete"]
542    #[inline(always)]
543    pub fn trfc(&self) -> TrfcR {
544        TrfcR::new(((self.bits >> 1) & 1) != 0)
545    }
546    #[doc = "Bit 2 - Block Gap Event"]
547    #[inline(always)]
548    pub fn blkge(&self) -> BlkgeR {
549        BlkgeR::new(((self.bits >> 2) & 1) != 0)
550    }
551    #[doc = "Bit 3 - DMA Interrupt"]
552    #[inline(always)]
553    pub fn dmaint(&self) -> DmaintR {
554        DmaintR::new(((self.bits >> 3) & 1) != 0)
555    }
556    #[doc = "Bit 4 - Buffer Write Ready"]
557    #[inline(always)]
558    pub fn bwrrdy(&self) -> BwrrdyR {
559        BwrrdyR::new(((self.bits >> 4) & 1) != 0)
560    }
561    #[doc = "Bit 5 - Buffer Read Ready"]
562    #[inline(always)]
563    pub fn brdrdy(&self) -> BrdrdyR {
564        BrdrdyR::new(((self.bits >> 5) & 1) != 0)
565    }
566    #[doc = "Bit 6 - Card Insertion"]
567    #[inline(always)]
568    pub fn cins(&self) -> CinsR {
569        CinsR::new(((self.bits >> 6) & 1) != 0)
570    }
571    #[doc = "Bit 7 - Card Removal"]
572    #[inline(always)]
573    pub fn crem(&self) -> CremR {
574        CremR::new(((self.bits >> 7) & 1) != 0)
575    }
576    #[doc = "Bit 8 - Card Interrupt"]
577    #[inline(always)]
578    pub fn cint(&self) -> CintR {
579        CintR::new(((self.bits >> 8) & 1) != 0)
580    }
581    #[doc = "Bit 15 - Error Interrupt"]
582    #[inline(always)]
583    pub fn errint(&self) -> ErrintR {
584        ErrintR::new(((self.bits >> 15) & 1) != 0)
585    }
586}
587impl W {
588    #[doc = "Bit 0 - Command Complete"]
589    #[inline(always)]
590    #[must_use]
591    pub fn cmdc(&mut self) -> CmdcW<NistrSpec> {
592        CmdcW::new(self, 0)
593    }
594    #[doc = "Bit 1 - Transfer Complete"]
595    #[inline(always)]
596    #[must_use]
597    pub fn trfc(&mut self) -> TrfcW<NistrSpec> {
598        TrfcW::new(self, 1)
599    }
600    #[doc = "Bit 2 - Block Gap Event"]
601    #[inline(always)]
602    #[must_use]
603    pub fn blkge(&mut self) -> BlkgeW<NistrSpec> {
604        BlkgeW::new(self, 2)
605    }
606    #[doc = "Bit 3 - DMA Interrupt"]
607    #[inline(always)]
608    #[must_use]
609    pub fn dmaint(&mut self) -> DmaintW<NistrSpec> {
610        DmaintW::new(self, 3)
611    }
612    #[doc = "Bit 4 - Buffer Write Ready"]
613    #[inline(always)]
614    #[must_use]
615    pub fn bwrrdy(&mut self) -> BwrrdyW<NistrSpec> {
616        BwrrdyW::new(self, 4)
617    }
618    #[doc = "Bit 5 - Buffer Read Ready"]
619    #[inline(always)]
620    #[must_use]
621    pub fn brdrdy(&mut self) -> BrdrdyW<NistrSpec> {
622        BrdrdyW::new(self, 5)
623    }
624    #[doc = "Bit 6 - Card Insertion"]
625    #[inline(always)]
626    #[must_use]
627    pub fn cins(&mut self) -> CinsW<NistrSpec> {
628        CinsW::new(self, 6)
629    }
630    #[doc = "Bit 7 - Card Removal"]
631    #[inline(always)]
632    #[must_use]
633    pub fn crem(&mut self) -> CremW<NistrSpec> {
634        CremW::new(self, 7)
635    }
636    #[doc = "Bit 8 - Card Interrupt"]
637    #[inline(always)]
638    #[must_use]
639    pub fn cint(&mut self) -> CintW<NistrSpec> {
640        CintW::new(self, 8)
641    }
642    #[doc = "Bit 15 - Error Interrupt"]
643    #[inline(always)]
644    #[must_use]
645    pub fn errint(&mut self) -> ErrintW<NistrSpec> {
646        ErrintW::new(self, 15)
647    }
648}
649#[doc = "Normal Interrupt Status\n\nYou can [`read`](crate::Reg::read) this register and get [`nistr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nistr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
650pub struct NistrSpec;
651impl crate::RegisterSpec for NistrSpec {
652    type Ux = u16;
653}
654#[doc = "`read()` method returns [`nistr::R`](R) reader structure"]
655impl crate::Readable for NistrSpec {}
656#[doc = "`write(|w| ..)` method takes [`nistr::W`](W) writer structure"]
657impl crate::Writable for NistrSpec {
658    type Safety = crate::Unsafe;
659    const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
660    const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
661}
662#[doc = "`reset()` method sets NISTR to value 0"]
663impl crate::Resettable for NistrSpec {
664    const RESET_VALUE: u16 = 0;
665}