atsamd21g/eic/
evctrl.rs

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
#[doc = "Register `EVCTRL` reader"]
pub type R = crate::R<EvctrlSpec>;
#[doc = "Register `EVCTRL` writer"]
pub type W = crate::W<EvctrlSpec>;
#[doc = "Field `EXTINTEO0` reader - External Interrupt 0 Event Output Enable"]
pub type Extinteo0R = crate::BitReader;
#[doc = "Field `EXTINTEO0` writer - External Interrupt 0 Event Output Enable"]
pub type Extinteo0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO1` reader - External Interrupt 1 Event Output Enable"]
pub type Extinteo1R = crate::BitReader;
#[doc = "Field `EXTINTEO1` writer - External Interrupt 1 Event Output Enable"]
pub type Extinteo1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO2` reader - External Interrupt 2 Event Output Enable"]
pub type Extinteo2R = crate::BitReader;
#[doc = "Field `EXTINTEO2` writer - External Interrupt 2 Event Output Enable"]
pub type Extinteo2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO3` reader - External Interrupt 3 Event Output Enable"]
pub type Extinteo3R = crate::BitReader;
#[doc = "Field `EXTINTEO3` writer - External Interrupt 3 Event Output Enable"]
pub type Extinteo3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO4` reader - External Interrupt 4 Event Output Enable"]
pub type Extinteo4R = crate::BitReader;
#[doc = "Field `EXTINTEO4` writer - External Interrupt 4 Event Output Enable"]
pub type Extinteo4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO5` reader - External Interrupt 5 Event Output Enable"]
pub type Extinteo5R = crate::BitReader;
#[doc = "Field `EXTINTEO5` writer - External Interrupt 5 Event Output Enable"]
pub type Extinteo5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO6` reader - External Interrupt 6 Event Output Enable"]
pub type Extinteo6R = crate::BitReader;
#[doc = "Field `EXTINTEO6` writer - External Interrupt 6 Event Output Enable"]
pub type Extinteo6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO7` reader - External Interrupt 7 Event Output Enable"]
pub type Extinteo7R = crate::BitReader;
#[doc = "Field `EXTINTEO7` writer - External Interrupt 7 Event Output Enable"]
pub type Extinteo7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO8` reader - External Interrupt 8 Event Output Enable"]
pub type Extinteo8R = crate::BitReader;
#[doc = "Field `EXTINTEO8` writer - External Interrupt 8 Event Output Enable"]
pub type Extinteo8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO9` reader - External Interrupt 9 Event Output Enable"]
pub type Extinteo9R = crate::BitReader;
#[doc = "Field `EXTINTEO9` writer - External Interrupt 9 Event Output Enable"]
pub type Extinteo9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO10` reader - External Interrupt 10 Event Output Enable"]
pub type Extinteo10R = crate::BitReader;
#[doc = "Field `EXTINTEO10` writer - External Interrupt 10 Event Output Enable"]
pub type Extinteo10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO11` reader - External Interrupt 11 Event Output Enable"]
pub type Extinteo11R = crate::BitReader;
#[doc = "Field `EXTINTEO11` writer - External Interrupt 11 Event Output Enable"]
pub type Extinteo11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO12` reader - External Interrupt 12 Event Output Enable"]
pub type Extinteo12R = crate::BitReader;
#[doc = "Field `EXTINTEO12` writer - External Interrupt 12 Event Output Enable"]
pub type Extinteo12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO13` reader - External Interrupt 13 Event Output Enable"]
pub type Extinteo13R = crate::BitReader;
#[doc = "Field `EXTINTEO13` writer - External Interrupt 13 Event Output Enable"]
pub type Extinteo13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO14` reader - External Interrupt 14 Event Output Enable"]
pub type Extinteo14R = crate::BitReader;
#[doc = "Field `EXTINTEO14` writer - External Interrupt 14 Event Output Enable"]
pub type Extinteo14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EXTINTEO15` reader - External Interrupt 15 Event Output Enable"]
pub type Extinteo15R = crate::BitReader;
#[doc = "Field `EXTINTEO15` writer - External Interrupt 15 Event Output Enable"]
pub type Extinteo15W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - External Interrupt 0 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo0(&self) -> Extinteo0R {
        Extinteo0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - External Interrupt 1 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo1(&self) -> Extinteo1R {
        Extinteo1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - External Interrupt 2 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo2(&self) -> Extinteo2R {
        Extinteo2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - External Interrupt 3 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo3(&self) -> Extinteo3R {
        Extinteo3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - External Interrupt 4 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo4(&self) -> Extinteo4R {
        Extinteo4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - External Interrupt 5 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo5(&self) -> Extinteo5R {
        Extinteo5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - External Interrupt 6 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo6(&self) -> Extinteo6R {
        Extinteo6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - External Interrupt 7 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo7(&self) -> Extinteo7R {
        Extinteo7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - External Interrupt 8 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo8(&self) -> Extinteo8R {
        Extinteo8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - External Interrupt 9 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo9(&self) -> Extinteo9R {
        Extinteo9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - External Interrupt 10 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo10(&self) -> Extinteo10R {
        Extinteo10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - External Interrupt 11 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo11(&self) -> Extinteo11R {
        Extinteo11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - External Interrupt 12 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo12(&self) -> Extinteo12R {
        Extinteo12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - External Interrupt 13 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo13(&self) -> Extinteo13R {
        Extinteo13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - External Interrupt 14 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo14(&self) -> Extinteo14R {
        Extinteo14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - External Interrupt 15 Event Output Enable"]
    #[inline(always)]
    pub fn extinteo15(&self) -> Extinteo15R {
        Extinteo15R::new(((self.bits >> 15) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - External Interrupt 0 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo0(&mut self) -> Extinteo0W<EvctrlSpec> {
        Extinteo0W::new(self, 0)
    }
    #[doc = "Bit 1 - External Interrupt 1 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo1(&mut self) -> Extinteo1W<EvctrlSpec> {
        Extinteo1W::new(self, 1)
    }
    #[doc = "Bit 2 - External Interrupt 2 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo2(&mut self) -> Extinteo2W<EvctrlSpec> {
        Extinteo2W::new(self, 2)
    }
    #[doc = "Bit 3 - External Interrupt 3 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo3(&mut self) -> Extinteo3W<EvctrlSpec> {
        Extinteo3W::new(self, 3)
    }
    #[doc = "Bit 4 - External Interrupt 4 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo4(&mut self) -> Extinteo4W<EvctrlSpec> {
        Extinteo4W::new(self, 4)
    }
    #[doc = "Bit 5 - External Interrupt 5 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo5(&mut self) -> Extinteo5W<EvctrlSpec> {
        Extinteo5W::new(self, 5)
    }
    #[doc = "Bit 6 - External Interrupt 6 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo6(&mut self) -> Extinteo6W<EvctrlSpec> {
        Extinteo6W::new(self, 6)
    }
    #[doc = "Bit 7 - External Interrupt 7 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo7(&mut self) -> Extinteo7W<EvctrlSpec> {
        Extinteo7W::new(self, 7)
    }
    #[doc = "Bit 8 - External Interrupt 8 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo8(&mut self) -> Extinteo8W<EvctrlSpec> {
        Extinteo8W::new(self, 8)
    }
    #[doc = "Bit 9 - External Interrupt 9 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo9(&mut self) -> Extinteo9W<EvctrlSpec> {
        Extinteo9W::new(self, 9)
    }
    #[doc = "Bit 10 - External Interrupt 10 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo10(&mut self) -> Extinteo10W<EvctrlSpec> {
        Extinteo10W::new(self, 10)
    }
    #[doc = "Bit 11 - External Interrupt 11 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo11(&mut self) -> Extinteo11W<EvctrlSpec> {
        Extinteo11W::new(self, 11)
    }
    #[doc = "Bit 12 - External Interrupt 12 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo12(&mut self) -> Extinteo12W<EvctrlSpec> {
        Extinteo12W::new(self, 12)
    }
    #[doc = "Bit 13 - External Interrupt 13 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo13(&mut self) -> Extinteo13W<EvctrlSpec> {
        Extinteo13W::new(self, 13)
    }
    #[doc = "Bit 14 - External Interrupt 14 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo14(&mut self) -> Extinteo14W<EvctrlSpec> {
        Extinteo14W::new(self, 14)
    }
    #[doc = "Bit 15 - External Interrupt 15 Event Output Enable"]
    #[inline(always)]
    #[must_use]
    pub fn extinteo15(&mut self) -> Extinteo15W<EvctrlSpec> {
        Extinteo15W::new(self, 15)
    }
}
#[doc = "Event Control\n\nYou can [`read`](crate::Reg::read) this register and get [`evctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`evctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EvctrlSpec;
impl crate::RegisterSpec for EvctrlSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`evctrl::R`](R) reader structure"]
impl crate::Readable for EvctrlSpec {}
#[doc = "`write(|w| ..)` method takes [`evctrl::W`](W) writer structure"]
impl crate::Writable for EvctrlSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets EVCTRL to value 0"]
impl crate::Resettable for EvctrlSpec {
    const RESET_VALUE: u32 = 0;
}