1#[doc = "Register `IER` reader"]
2pub type R = crate::R<IerSpec>;
3#[doc = "Register `IER` writer"]
4pub type W = crate::W<IerSpec>;
5#[doc = "Field `TMEIE` reader - TMEIE"]
6pub type TmeieR = crate::BitReader;
7#[doc = "Field `TMEIE` writer - TMEIE"]
8pub type TmeieW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FMPIE0` reader - FMPIE0"]
10pub type Fmpie0R = crate::BitReader;
11#[doc = "Field `FMPIE0` writer - FMPIE0"]
12pub type Fmpie0W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `FFIE0` reader - FFIE0"]
14pub type Ffie0R = crate::BitReader;
15#[doc = "Field `FFIE0` writer - FFIE0"]
16pub type Ffie0W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `FOVIE0` reader - FOVIE0"]
18pub type Fovie0R = crate::BitReader;
19#[doc = "Field `FOVIE0` writer - FOVIE0"]
20pub type Fovie0W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `FMPIE1` reader - FMPIE1"]
22pub type Fmpie1R = crate::BitReader;
23#[doc = "Field `FMPIE1` writer - FMPIE1"]
24pub type Fmpie1W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `FFIE1` reader - FFIE1"]
26pub type Ffie1R = crate::BitReader;
27#[doc = "Field `FFIE1` writer - FFIE1"]
28pub type Ffie1W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `FOVIE1` reader - FOVIE1"]
30pub type Fovie1R = crate::BitReader;
31#[doc = "Field `FOVIE1` writer - FOVIE1"]
32pub type Fovie1W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `EWGIE` reader - EWGIE"]
34pub type EwgieR = crate::BitReader;
35#[doc = "Field `EWGIE` writer - EWGIE"]
36pub type EwgieW<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `EPVIE` reader - EPVIE"]
38pub type EpvieR = crate::BitReader;
39#[doc = "Field `EPVIE` writer - EPVIE"]
40pub type EpvieW<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `BOFIE` reader - BOFIE"]
42pub type BofieR = crate::BitReader;
43#[doc = "Field `BOFIE` writer - BOFIE"]
44pub type BofieW<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `LECIE` reader - LECIE"]
46pub type LecieR = crate::BitReader;
47#[doc = "Field `LECIE` writer - LECIE"]
48pub type LecieW<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `ERRIE` reader - ERRIE"]
50pub type ErrieR = crate::BitReader;
51#[doc = "Field `ERRIE` writer - ERRIE"]
52pub type ErrieW<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `WKUIE` reader - WKUIE"]
54pub type WkuieR = crate::BitReader;
55#[doc = "Field `WKUIE` writer - WKUIE"]
56pub type WkuieW<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `SLKIE` reader - SLKIE"]
58pub type SlkieR = crate::BitReader;
59#[doc = "Field `SLKIE` writer - SLKIE"]
60pub type SlkieW<'a, REG> = crate::BitWriter<'a, REG>;
61impl R {
62 #[doc = "Bit 0 - TMEIE"]
63 #[inline(always)]
64 pub fn tmeie(&self) -> TmeieR {
65 TmeieR::new((self.bits & 1) != 0)
66 }
67 #[doc = "Bit 1 - FMPIE0"]
68 #[inline(always)]
69 pub fn fmpie0(&self) -> Fmpie0R {
70 Fmpie0R::new(((self.bits >> 1) & 1) != 0)
71 }
72 #[doc = "Bit 2 - FFIE0"]
73 #[inline(always)]
74 pub fn ffie0(&self) -> Ffie0R {
75 Ffie0R::new(((self.bits >> 2) & 1) != 0)
76 }
77 #[doc = "Bit 3 - FOVIE0"]
78 #[inline(always)]
79 pub fn fovie0(&self) -> Fovie0R {
80 Fovie0R::new(((self.bits >> 3) & 1) != 0)
81 }
82 #[doc = "Bit 4 - FMPIE1"]
83 #[inline(always)]
84 pub fn fmpie1(&self) -> Fmpie1R {
85 Fmpie1R::new(((self.bits >> 4) & 1) != 0)
86 }
87 #[doc = "Bit 5 - FFIE1"]
88 #[inline(always)]
89 pub fn ffie1(&self) -> Ffie1R {
90 Ffie1R::new(((self.bits >> 5) & 1) != 0)
91 }
92 #[doc = "Bit 6 - FOVIE1"]
93 #[inline(always)]
94 pub fn fovie1(&self) -> Fovie1R {
95 Fovie1R::new(((self.bits >> 6) & 1) != 0)
96 }
97 #[doc = "Bit 8 - EWGIE"]
98 #[inline(always)]
99 pub fn ewgie(&self) -> EwgieR {
100 EwgieR::new(((self.bits >> 8) & 1) != 0)
101 }
102 #[doc = "Bit 9 - EPVIE"]
103 #[inline(always)]
104 pub fn epvie(&self) -> EpvieR {
105 EpvieR::new(((self.bits >> 9) & 1) != 0)
106 }
107 #[doc = "Bit 10 - BOFIE"]
108 #[inline(always)]
109 pub fn bofie(&self) -> BofieR {
110 BofieR::new(((self.bits >> 10) & 1) != 0)
111 }
112 #[doc = "Bit 11 - LECIE"]
113 #[inline(always)]
114 pub fn lecie(&self) -> LecieR {
115 LecieR::new(((self.bits >> 11) & 1) != 0)
116 }
117 #[doc = "Bit 15 - ERRIE"]
118 #[inline(always)]
119 pub fn errie(&self) -> ErrieR {
120 ErrieR::new(((self.bits >> 15) & 1) != 0)
121 }
122 #[doc = "Bit 16 - WKUIE"]
123 #[inline(always)]
124 pub fn wkuie(&self) -> WkuieR {
125 WkuieR::new(((self.bits >> 16) & 1) != 0)
126 }
127 #[doc = "Bit 17 - SLKIE"]
128 #[inline(always)]
129 pub fn slkie(&self) -> SlkieR {
130 SlkieR::new(((self.bits >> 17) & 1) != 0)
131 }
132}
133impl W {
134 #[doc = "Bit 0 - TMEIE"]
135 #[inline(always)]
136 pub fn tmeie(&mut self) -> TmeieW<IerSpec> {
137 TmeieW::new(self, 0)
138 }
139 #[doc = "Bit 1 - FMPIE0"]
140 #[inline(always)]
141 pub fn fmpie0(&mut self) -> Fmpie0W<IerSpec> {
142 Fmpie0W::new(self, 1)
143 }
144 #[doc = "Bit 2 - FFIE0"]
145 #[inline(always)]
146 pub fn ffie0(&mut self) -> Ffie0W<IerSpec> {
147 Ffie0W::new(self, 2)
148 }
149 #[doc = "Bit 3 - FOVIE0"]
150 #[inline(always)]
151 pub fn fovie0(&mut self) -> Fovie0W<IerSpec> {
152 Fovie0W::new(self, 3)
153 }
154 #[doc = "Bit 4 - FMPIE1"]
155 #[inline(always)]
156 pub fn fmpie1(&mut self) -> Fmpie1W<IerSpec> {
157 Fmpie1W::new(self, 4)
158 }
159 #[doc = "Bit 5 - FFIE1"]
160 #[inline(always)]
161 pub fn ffie1(&mut self) -> Ffie1W<IerSpec> {
162 Ffie1W::new(self, 5)
163 }
164 #[doc = "Bit 6 - FOVIE1"]
165 #[inline(always)]
166 pub fn fovie1(&mut self) -> Fovie1W<IerSpec> {
167 Fovie1W::new(self, 6)
168 }
169 #[doc = "Bit 8 - EWGIE"]
170 #[inline(always)]
171 pub fn ewgie(&mut self) -> EwgieW<IerSpec> {
172 EwgieW::new(self, 8)
173 }
174 #[doc = "Bit 9 - EPVIE"]
175 #[inline(always)]
176 pub fn epvie(&mut self) -> EpvieW<IerSpec> {
177 EpvieW::new(self, 9)
178 }
179 #[doc = "Bit 10 - BOFIE"]
180 #[inline(always)]
181 pub fn bofie(&mut self) -> BofieW<IerSpec> {
182 BofieW::new(self, 10)
183 }
184 #[doc = "Bit 11 - LECIE"]
185 #[inline(always)]
186 pub fn lecie(&mut self) -> LecieW<IerSpec> {
187 LecieW::new(self, 11)
188 }
189 #[doc = "Bit 15 - ERRIE"]
190 #[inline(always)]
191 pub fn errie(&mut self) -> ErrieW<IerSpec> {
192 ErrieW::new(self, 15)
193 }
194 #[doc = "Bit 16 - WKUIE"]
195 #[inline(always)]
196 pub fn wkuie(&mut self) -> WkuieW<IerSpec> {
197 WkuieW::new(self, 16)
198 }
199 #[doc = "Bit 17 - SLKIE"]
200 #[inline(always)]
201 pub fn slkie(&mut self) -> SlkieW<IerSpec> {
202 SlkieW::new(self, 17)
203 }
204}
205#[doc = "interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
206pub struct IerSpec;
207impl crate::RegisterSpec for IerSpec {
208 type Ux = u32;
209}
210#[doc = "`read()` method returns [`ier::R`](R) reader structure"]
211impl crate::Readable for IerSpec {}
212#[doc = "`write(|w| ..)` method takes [`ier::W`](W) writer structure"]
213impl crate::Writable for IerSpec {
214 type Safety = crate::Unsafe;
215}
216#[doc = "`reset()` method sets IER to value 0"]
217impl crate::Resettable for IerSpec {}