atsamd51p/evsys/
swevt.rs

1#[doc = "Register `SWEVT` writer"]
2pub type W = crate::W<SwevtSpec>;
3#[doc = "Field `CHANNEL0` writer - Channel 0 Software Selection"]
4pub type Channel0W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `CHANNEL1` writer - Channel 1 Software Selection"]
6pub type Channel1W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `CHANNEL2` writer - Channel 2 Software Selection"]
8pub type Channel2W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CHANNEL3` writer - Channel 3 Software Selection"]
10pub type Channel3W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `CHANNEL4` writer - Channel 4 Software Selection"]
12pub type Channel4W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `CHANNEL5` writer - Channel 5 Software Selection"]
14pub type Channel5W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `CHANNEL6` writer - Channel 6 Software Selection"]
16pub type Channel6W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `CHANNEL7` writer - Channel 7 Software Selection"]
18pub type Channel7W<'a, REG> = crate::BitWriter<'a, REG>;
19#[doc = "Field `CHANNEL8` writer - Channel 8 Software Selection"]
20pub type Channel8W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `CHANNEL9` writer - Channel 9 Software Selection"]
22pub type Channel9W<'a, REG> = crate::BitWriter<'a, REG>;
23#[doc = "Field `CHANNEL10` writer - Channel 10 Software Selection"]
24pub type Channel10W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `CHANNEL11` writer - Channel 11 Software Selection"]
26pub type Channel11W<'a, REG> = crate::BitWriter<'a, REG>;
27#[doc = "Field `CHANNEL12` writer - Channel 12 Software Selection"]
28pub type Channel12W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `CHANNEL13` writer - Channel 13 Software Selection"]
30pub type Channel13W<'a, REG> = crate::BitWriter<'a, REG>;
31#[doc = "Field `CHANNEL14` writer - Channel 14 Software Selection"]
32pub type Channel14W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `CHANNEL15` writer - Channel 15 Software Selection"]
34pub type Channel15W<'a, REG> = crate::BitWriter<'a, REG>;
35#[doc = "Field `CHANNEL16` writer - Channel 16 Software Selection"]
36pub type Channel16W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `CHANNEL17` writer - Channel 17 Software Selection"]
38pub type Channel17W<'a, REG> = crate::BitWriter<'a, REG>;
39#[doc = "Field `CHANNEL18` writer - Channel 18 Software Selection"]
40pub type Channel18W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `CHANNEL19` writer - Channel 19 Software Selection"]
42pub type Channel19W<'a, REG> = crate::BitWriter<'a, REG>;
43#[doc = "Field `CHANNEL20` writer - Channel 20 Software Selection"]
44pub type Channel20W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `CHANNEL21` writer - Channel 21 Software Selection"]
46pub type Channel21W<'a, REG> = crate::BitWriter<'a, REG>;
47#[doc = "Field `CHANNEL22` writer - Channel 22 Software Selection"]
48pub type Channel22W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `CHANNEL23` writer - Channel 23 Software Selection"]
50pub type Channel23W<'a, REG> = crate::BitWriter<'a, REG>;
51#[doc = "Field `CHANNEL24` writer - Channel 24 Software Selection"]
52pub type Channel24W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `CHANNEL25` writer - Channel 25 Software Selection"]
54pub type Channel25W<'a, REG> = crate::BitWriter<'a, REG>;
55#[doc = "Field `CHANNEL26` writer - Channel 26 Software Selection"]
56pub type Channel26W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `CHANNEL27` writer - Channel 27 Software Selection"]
58pub type Channel27W<'a, REG> = crate::BitWriter<'a, REG>;
59#[doc = "Field `CHANNEL28` writer - Channel 28 Software Selection"]
60pub type Channel28W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `CHANNEL29` writer - Channel 29 Software Selection"]
62pub type Channel29W<'a, REG> = crate::BitWriter<'a, REG>;
63#[doc = "Field `CHANNEL30` writer - Channel 30 Software Selection"]
64pub type Channel30W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `CHANNEL31` writer - Channel 31 Software Selection"]
66pub type Channel31W<'a, REG> = crate::BitWriter<'a, REG>;
67impl W {
68    #[doc = "Bit 0 - Channel 0 Software Selection"]
69    #[inline(always)]
70    #[must_use]
71    pub fn channel0(&mut self) -> Channel0W<SwevtSpec> {
72        Channel0W::new(self, 0)
73    }
74    #[doc = "Bit 1 - Channel 1 Software Selection"]
75    #[inline(always)]
76    #[must_use]
77    pub fn channel1(&mut self) -> Channel1W<SwevtSpec> {
78        Channel1W::new(self, 1)
79    }
80    #[doc = "Bit 2 - Channel 2 Software Selection"]
81    #[inline(always)]
82    #[must_use]
83    pub fn channel2(&mut self) -> Channel2W<SwevtSpec> {
84        Channel2W::new(self, 2)
85    }
86    #[doc = "Bit 3 - Channel 3 Software Selection"]
87    #[inline(always)]
88    #[must_use]
89    pub fn channel3(&mut self) -> Channel3W<SwevtSpec> {
90        Channel3W::new(self, 3)
91    }
92    #[doc = "Bit 4 - Channel 4 Software Selection"]
93    #[inline(always)]
94    #[must_use]
95    pub fn channel4(&mut self) -> Channel4W<SwevtSpec> {
96        Channel4W::new(self, 4)
97    }
98    #[doc = "Bit 5 - Channel 5 Software Selection"]
99    #[inline(always)]
100    #[must_use]
101    pub fn channel5(&mut self) -> Channel5W<SwevtSpec> {
102        Channel5W::new(self, 5)
103    }
104    #[doc = "Bit 6 - Channel 6 Software Selection"]
105    #[inline(always)]
106    #[must_use]
107    pub fn channel6(&mut self) -> Channel6W<SwevtSpec> {
108        Channel6W::new(self, 6)
109    }
110    #[doc = "Bit 7 - Channel 7 Software Selection"]
111    #[inline(always)]
112    #[must_use]
113    pub fn channel7(&mut self) -> Channel7W<SwevtSpec> {
114        Channel7W::new(self, 7)
115    }
116    #[doc = "Bit 8 - Channel 8 Software Selection"]
117    #[inline(always)]
118    #[must_use]
119    pub fn channel8(&mut self) -> Channel8W<SwevtSpec> {
120        Channel8W::new(self, 8)
121    }
122    #[doc = "Bit 9 - Channel 9 Software Selection"]
123    #[inline(always)]
124    #[must_use]
125    pub fn channel9(&mut self) -> Channel9W<SwevtSpec> {
126        Channel9W::new(self, 9)
127    }
128    #[doc = "Bit 10 - Channel 10 Software Selection"]
129    #[inline(always)]
130    #[must_use]
131    pub fn channel10(&mut self) -> Channel10W<SwevtSpec> {
132        Channel10W::new(self, 10)
133    }
134    #[doc = "Bit 11 - Channel 11 Software Selection"]
135    #[inline(always)]
136    #[must_use]
137    pub fn channel11(&mut self) -> Channel11W<SwevtSpec> {
138        Channel11W::new(self, 11)
139    }
140    #[doc = "Bit 12 - Channel 12 Software Selection"]
141    #[inline(always)]
142    #[must_use]
143    pub fn channel12(&mut self) -> Channel12W<SwevtSpec> {
144        Channel12W::new(self, 12)
145    }
146    #[doc = "Bit 13 - Channel 13 Software Selection"]
147    #[inline(always)]
148    #[must_use]
149    pub fn channel13(&mut self) -> Channel13W<SwevtSpec> {
150        Channel13W::new(self, 13)
151    }
152    #[doc = "Bit 14 - Channel 14 Software Selection"]
153    #[inline(always)]
154    #[must_use]
155    pub fn channel14(&mut self) -> Channel14W<SwevtSpec> {
156        Channel14W::new(self, 14)
157    }
158    #[doc = "Bit 15 - Channel 15 Software Selection"]
159    #[inline(always)]
160    #[must_use]
161    pub fn channel15(&mut self) -> Channel15W<SwevtSpec> {
162        Channel15W::new(self, 15)
163    }
164    #[doc = "Bit 16 - Channel 16 Software Selection"]
165    #[inline(always)]
166    #[must_use]
167    pub fn channel16(&mut self) -> Channel16W<SwevtSpec> {
168        Channel16W::new(self, 16)
169    }
170    #[doc = "Bit 17 - Channel 17 Software Selection"]
171    #[inline(always)]
172    #[must_use]
173    pub fn channel17(&mut self) -> Channel17W<SwevtSpec> {
174        Channel17W::new(self, 17)
175    }
176    #[doc = "Bit 18 - Channel 18 Software Selection"]
177    #[inline(always)]
178    #[must_use]
179    pub fn channel18(&mut self) -> Channel18W<SwevtSpec> {
180        Channel18W::new(self, 18)
181    }
182    #[doc = "Bit 19 - Channel 19 Software Selection"]
183    #[inline(always)]
184    #[must_use]
185    pub fn channel19(&mut self) -> Channel19W<SwevtSpec> {
186        Channel19W::new(self, 19)
187    }
188    #[doc = "Bit 20 - Channel 20 Software Selection"]
189    #[inline(always)]
190    #[must_use]
191    pub fn channel20(&mut self) -> Channel20W<SwevtSpec> {
192        Channel20W::new(self, 20)
193    }
194    #[doc = "Bit 21 - Channel 21 Software Selection"]
195    #[inline(always)]
196    #[must_use]
197    pub fn channel21(&mut self) -> Channel21W<SwevtSpec> {
198        Channel21W::new(self, 21)
199    }
200    #[doc = "Bit 22 - Channel 22 Software Selection"]
201    #[inline(always)]
202    #[must_use]
203    pub fn channel22(&mut self) -> Channel22W<SwevtSpec> {
204        Channel22W::new(self, 22)
205    }
206    #[doc = "Bit 23 - Channel 23 Software Selection"]
207    #[inline(always)]
208    #[must_use]
209    pub fn channel23(&mut self) -> Channel23W<SwevtSpec> {
210        Channel23W::new(self, 23)
211    }
212    #[doc = "Bit 24 - Channel 24 Software Selection"]
213    #[inline(always)]
214    #[must_use]
215    pub fn channel24(&mut self) -> Channel24W<SwevtSpec> {
216        Channel24W::new(self, 24)
217    }
218    #[doc = "Bit 25 - Channel 25 Software Selection"]
219    #[inline(always)]
220    #[must_use]
221    pub fn channel25(&mut self) -> Channel25W<SwevtSpec> {
222        Channel25W::new(self, 25)
223    }
224    #[doc = "Bit 26 - Channel 26 Software Selection"]
225    #[inline(always)]
226    #[must_use]
227    pub fn channel26(&mut self) -> Channel26W<SwevtSpec> {
228        Channel26W::new(self, 26)
229    }
230    #[doc = "Bit 27 - Channel 27 Software Selection"]
231    #[inline(always)]
232    #[must_use]
233    pub fn channel27(&mut self) -> Channel27W<SwevtSpec> {
234        Channel27W::new(self, 27)
235    }
236    #[doc = "Bit 28 - Channel 28 Software Selection"]
237    #[inline(always)]
238    #[must_use]
239    pub fn channel28(&mut self) -> Channel28W<SwevtSpec> {
240        Channel28W::new(self, 28)
241    }
242    #[doc = "Bit 29 - Channel 29 Software Selection"]
243    #[inline(always)]
244    #[must_use]
245    pub fn channel29(&mut self) -> Channel29W<SwevtSpec> {
246        Channel29W::new(self, 29)
247    }
248    #[doc = "Bit 30 - Channel 30 Software Selection"]
249    #[inline(always)]
250    #[must_use]
251    pub fn channel30(&mut self) -> Channel30W<SwevtSpec> {
252        Channel30W::new(self, 30)
253    }
254    #[doc = "Bit 31 - Channel 31 Software Selection"]
255    #[inline(always)]
256    #[must_use]
257    pub fn channel31(&mut self) -> Channel31W<SwevtSpec> {
258        Channel31W::new(self, 31)
259    }
260}
261#[doc = "Software Event\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swevt::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
262pub struct SwevtSpec;
263impl crate::RegisterSpec for SwevtSpec {
264    type Ux = u32;
265}
266#[doc = "`write(|w| ..)` method takes [`swevt::W`](W) writer structure"]
267impl crate::Writable for SwevtSpec {
268    type Safety = crate::Unsafe;
269    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
270    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
271}
272#[doc = "`reset()` method sets SWEVT to value 0"]
273impl crate::Resettable for SwevtSpec {
274    const RESET_VALUE: u32 = 0;
275}