atsam4ls4c_pac/scif/
ier.rs1#[doc = "Register `IER` writer"]
2pub struct W(crate::W<IER_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IER_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<IER_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IER_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `OSC0RDY` writer - OSC0 Ready"]
23pub type OSC0RDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
24#[doc = "Field `DFLL0LOCKC` writer - DFLL0 Lock Coarse"]
25pub type DFLL0LOCKC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
26#[doc = "Field `DFLL0LOCKF` writer - DFLL0 Lock Fine"]
27pub type DFLL0LOCKF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
28#[doc = "Field `DFLL0RDY` writer - DFLL0 Ready"]
29pub type DFLL0RDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
30#[doc = "Field `DFLL0RCS` writer - DFLL0 Reference Clock Stopped"]
31pub type DFLL0RCS_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
32#[doc = "Field `DFLL0OOB` writer - DFLL0 Out Of Bounds"]
33pub type DFLL0OOB_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
34#[doc = "Field `PLL0LOCK` writer - PLL0 Lock"]
35pub type PLL0LOCK_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
36#[doc = "Field `PLL0LOCKLOST` writer - PLL0 Lock Lost"]
37pub type PLL0LOCKLOST_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
38#[doc = "Field `RCFASTLOCK` writer - RCFAST Lock"]
39pub type RCFASTLOCK_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
40#[doc = "Field `RCFASTLOCKLOST` writer - RCFAST Lock Lost"]
41pub type RCFASTLOCKLOST_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
42#[doc = "Field `AE` writer - Access Error"]
43pub type AE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER_SPEC, bool, O>;
44impl W {
45 #[doc = "Bit 0 - OSC0 Ready"]
46 #[inline(always)]
47 #[must_use]
48 pub fn osc0rdy(&mut self) -> OSC0RDY_W<0> {
49 OSC0RDY_W::new(self)
50 }
51 #[doc = "Bit 1 - DFLL0 Lock Coarse"]
52 #[inline(always)]
53 #[must_use]
54 pub fn dfll0lockc(&mut self) -> DFLL0LOCKC_W<1> {
55 DFLL0LOCKC_W::new(self)
56 }
57 #[doc = "Bit 2 - DFLL0 Lock Fine"]
58 #[inline(always)]
59 #[must_use]
60 pub fn dfll0lockf(&mut self) -> DFLL0LOCKF_W<2> {
61 DFLL0LOCKF_W::new(self)
62 }
63 #[doc = "Bit 3 - DFLL0 Ready"]
64 #[inline(always)]
65 #[must_use]
66 pub fn dfll0rdy(&mut self) -> DFLL0RDY_W<3> {
67 DFLL0RDY_W::new(self)
68 }
69 #[doc = "Bit 4 - DFLL0 Reference Clock Stopped"]
70 #[inline(always)]
71 #[must_use]
72 pub fn dfll0rcs(&mut self) -> DFLL0RCS_W<4> {
73 DFLL0RCS_W::new(self)
74 }
75 #[doc = "Bit 5 - DFLL0 Out Of Bounds"]
76 #[inline(always)]
77 #[must_use]
78 pub fn dfll0oob(&mut self) -> DFLL0OOB_W<5> {
79 DFLL0OOB_W::new(self)
80 }
81 #[doc = "Bit 6 - PLL0 Lock"]
82 #[inline(always)]
83 #[must_use]
84 pub fn pll0lock(&mut self) -> PLL0LOCK_W<6> {
85 PLL0LOCK_W::new(self)
86 }
87 #[doc = "Bit 7 - PLL0 Lock Lost"]
88 #[inline(always)]
89 #[must_use]
90 pub fn pll0locklost(&mut self) -> PLL0LOCKLOST_W<7> {
91 PLL0LOCKLOST_W::new(self)
92 }
93 #[doc = "Bit 13 - RCFAST Lock"]
94 #[inline(always)]
95 #[must_use]
96 pub fn rcfastlock(&mut self) -> RCFASTLOCK_W<13> {
97 RCFASTLOCK_W::new(self)
98 }
99 #[doc = "Bit 14 - RCFAST Lock Lost"]
100 #[inline(always)]
101 #[must_use]
102 pub fn rcfastlocklost(&mut self) -> RCFASTLOCKLOST_W<14> {
103 RCFASTLOCKLOST_W::new(self)
104 }
105 #[doc = "Bit 31 - Access Error"]
106 #[inline(always)]
107 #[must_use]
108 pub fn ae(&mut self) -> AE_W<31> {
109 AE_W::new(self)
110 }
111 #[doc = "Writes raw bits to the register."]
112 #[inline(always)]
113 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
114 self.0.bits(bits);
115 self
116 }
117}
118#[doc = "Interrupt Enable Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ier](index.html) module"]
119pub struct IER_SPEC;
120impl crate::RegisterSpec for IER_SPEC {
121 type Ux = u32;
122}
123#[doc = "`write(|w| ..)` method takes [ier::W](W) writer structure"]
124impl crate::Writable for IER_SPEC {
125 type Writer = W;
126 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
127 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
128}
129#[doc = "`reset()` method sets IER to value 0"]
130impl crate::Resettable for IER_SPEC {
131 const RESET_VALUE: Self::Ux = 0;
132}