stm32f3_staging/stm32f303/tsc/
ioscr.rs

1///Register `IOSCR` reader
2pub type R = crate::R<IOSCRrs>;
3///Register `IOSCR` writer
4pub type W = crate::W<IOSCRrs>;
5///Field `G1_IO1` reader - G1_IO1 sampling mode
6pub type G1_IO1_R = crate::BitReader;
7///Field `G1_IO1` writer - G1_IO1 sampling mode
8pub type G1_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
9///Field `G1_IO2` reader - G1_IO2 sampling mode
10pub type G1_IO2_R = crate::BitReader;
11///Field `G1_IO2` writer - G1_IO2 sampling mode
12pub type G1_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
13///Field `G1_IO3` reader - G1_IO3 sampling mode
14pub type G1_IO3_R = crate::BitReader;
15///Field `G1_IO3` writer - G1_IO3 sampling mode
16pub type G1_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
17///Field `G1_IO4` reader - G1_IO4 sampling mode
18pub type G1_IO4_R = crate::BitReader;
19///Field `G1_IO4` writer - G1_IO4 sampling mode
20pub type G1_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
21///Field `G2_IO1` reader - G2_IO1 sampling mode
22pub type G2_IO1_R = crate::BitReader;
23///Field `G2_IO1` writer - G2_IO1 sampling mode
24pub type G2_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
25///Field `G2_IO2` reader - G2_IO2 sampling mode
26pub type G2_IO2_R = crate::BitReader;
27///Field `G2_IO2` writer - G2_IO2 sampling mode
28pub type G2_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
29///Field `G2_IO3` reader - G2_IO3 sampling mode
30pub type G2_IO3_R = crate::BitReader;
31///Field `G2_IO3` writer - G2_IO3 sampling mode
32pub type G2_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
33///Field `G2_IO4` reader - G2_IO4 sampling mode
34pub type G2_IO4_R = crate::BitReader;
35///Field `G2_IO4` writer - G2_IO4 sampling mode
36pub type G2_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
37///Field `G3_IO1` reader - G3_IO1 sampling mode
38pub type G3_IO1_R = crate::BitReader;
39///Field `G3_IO1` writer - G3_IO1 sampling mode
40pub type G3_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
41///Field `G3_IO2` reader - G3_IO2 sampling mode
42pub type G3_IO2_R = crate::BitReader;
43///Field `G3_IO2` writer - G3_IO2 sampling mode
44pub type G3_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
45///Field `G3_IO3` reader - G3_IO3 sampling mode
46pub type G3_IO3_R = crate::BitReader;
47///Field `G3_IO3` writer - G3_IO3 sampling mode
48pub type G3_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
49///Field `G3_IO4` reader - G3_IO4 sampling mode
50pub type G3_IO4_R = crate::BitReader;
51///Field `G3_IO4` writer - G3_IO4 sampling mode
52pub type G3_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
53///Field `G4_IO1` reader - G4_IO1 sampling mode
54pub type G4_IO1_R = crate::BitReader;
55///Field `G4_IO1` writer - G4_IO1 sampling mode
56pub type G4_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
57///Field `G4_IO2` reader - G4_IO2 sampling mode
58pub type G4_IO2_R = crate::BitReader;
59///Field `G4_IO2` writer - G4_IO2 sampling mode
60pub type G4_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
61///Field `G4_IO3` reader - G4_IO3 sampling mode
62pub type G4_IO3_R = crate::BitReader;
63///Field `G4_IO3` writer - G4_IO3 sampling mode
64pub type G4_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
65///Field `G4_IO4` reader - G4_IO4 sampling mode
66pub type G4_IO4_R = crate::BitReader;
67///Field `G4_IO4` writer - G4_IO4 sampling mode
68pub type G4_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
69///Field `G5_IO1` reader - G5_IO1 sampling mode
70pub type G5_IO1_R = crate::BitReader;
71///Field `G5_IO1` writer - G5_IO1 sampling mode
72pub type G5_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
73///Field `G5_IO2` reader - G5_IO2 sampling mode
74pub type G5_IO2_R = crate::BitReader;
75///Field `G5_IO2` writer - G5_IO2 sampling mode
76pub type G5_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
77///Field `G5_IO3` reader - G5_IO3 sampling mode
78pub type G5_IO3_R = crate::BitReader;
79///Field `G5_IO3` writer - G5_IO3 sampling mode
80pub type G5_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
81///Field `G5_IO4` reader - G5_IO4 sampling mode
82pub type G5_IO4_R = crate::BitReader;
83///Field `G5_IO4` writer - G5_IO4 sampling mode
84pub type G5_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
85///Field `G6_IO1` reader - G6_IO1 sampling mode
86pub type G6_IO1_R = crate::BitReader;
87///Field `G6_IO1` writer - G6_IO1 sampling mode
88pub type G6_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
89///Field `G6_IO2` reader - G6_IO2 sampling mode
90pub type G6_IO2_R = crate::BitReader;
91///Field `G6_IO2` writer - G6_IO2 sampling mode
92pub type G6_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
93///Field `G6_IO3` reader - G6_IO3 sampling mode
94pub type G6_IO3_R = crate::BitReader;
95///Field `G6_IO3` writer - G6_IO3 sampling mode
96pub type G6_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
97///Field `G6_IO4` reader - G6_IO4 sampling mode
98pub type G6_IO4_R = crate::BitReader;
99///Field `G6_IO4` writer - G6_IO4 sampling mode
100pub type G6_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
101///Field `G7_IO1` reader - G7_IO1 sampling mode
102pub type G7_IO1_R = crate::BitReader;
103///Field `G7_IO1` writer - G7_IO1 sampling mode
104pub type G7_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
105///Field `G7_IO2` reader - G7_IO2 sampling mode
106pub type G7_IO2_R = crate::BitReader;
107///Field `G7_IO2` writer - G7_IO2 sampling mode
108pub type G7_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
109///Field `G7_IO3` reader - G7_IO3 sampling mode
110pub type G7_IO3_R = crate::BitReader;
111///Field `G7_IO3` writer - G7_IO3 sampling mode
112pub type G7_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
113///Field `G7_IO4` reader - G7_IO4 sampling mode
114pub type G7_IO4_R = crate::BitReader;
115///Field `G7_IO4` writer - G7_IO4 sampling mode
116pub type G7_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
117///Field `G8_IO1` reader - G8_IO1 sampling mode
118pub type G8_IO1_R = crate::BitReader;
119///Field `G8_IO1` writer - G8_IO1 sampling mode
120pub type G8_IO1_W<'a, REG> = crate::BitWriter<'a, REG>;
121///Field `G8_IO2` reader - G8_IO2 sampling mode
122pub type G8_IO2_R = crate::BitReader;
123///Field `G8_IO2` writer - G8_IO2 sampling mode
124pub type G8_IO2_W<'a, REG> = crate::BitWriter<'a, REG>;
125///Field `G8_IO3` reader - G8_IO3 sampling mode
126pub type G8_IO3_R = crate::BitReader;
127///Field `G8_IO3` writer - G8_IO3 sampling mode
128pub type G8_IO3_W<'a, REG> = crate::BitWriter<'a, REG>;
129///Field `G8_IO4` reader - G8_IO4 sampling mode
130pub type G8_IO4_R = crate::BitReader;
131///Field `G8_IO4` writer - G8_IO4 sampling mode
132pub type G8_IO4_W<'a, REG> = crate::BitWriter<'a, REG>;
133impl R {
134    ///Bit 0 - G1_IO1 sampling mode
135    #[inline(always)]
136    pub fn g1_io1(&self) -> G1_IO1_R {
137        G1_IO1_R::new((self.bits & 1) != 0)
138    }
139    ///Bit 1 - G1_IO2 sampling mode
140    #[inline(always)]
141    pub fn g1_io2(&self) -> G1_IO2_R {
142        G1_IO2_R::new(((self.bits >> 1) & 1) != 0)
143    }
144    ///Bit 2 - G1_IO3 sampling mode
145    #[inline(always)]
146    pub fn g1_io3(&self) -> G1_IO3_R {
147        G1_IO3_R::new(((self.bits >> 2) & 1) != 0)
148    }
149    ///Bit 3 - G1_IO4 sampling mode
150    #[inline(always)]
151    pub fn g1_io4(&self) -> G1_IO4_R {
152        G1_IO4_R::new(((self.bits >> 3) & 1) != 0)
153    }
154    ///Bit 4 - G2_IO1 sampling mode
155    #[inline(always)]
156    pub fn g2_io1(&self) -> G2_IO1_R {
157        G2_IO1_R::new(((self.bits >> 4) & 1) != 0)
158    }
159    ///Bit 5 - G2_IO2 sampling mode
160    #[inline(always)]
161    pub fn g2_io2(&self) -> G2_IO2_R {
162        G2_IO2_R::new(((self.bits >> 5) & 1) != 0)
163    }
164    ///Bit 6 - G2_IO3 sampling mode
165    #[inline(always)]
166    pub fn g2_io3(&self) -> G2_IO3_R {
167        G2_IO3_R::new(((self.bits >> 6) & 1) != 0)
168    }
169    ///Bit 7 - G2_IO4 sampling mode
170    #[inline(always)]
171    pub fn g2_io4(&self) -> G2_IO4_R {
172        G2_IO4_R::new(((self.bits >> 7) & 1) != 0)
173    }
174    ///Bit 8 - G3_IO1 sampling mode
175    #[inline(always)]
176    pub fn g3_io1(&self) -> G3_IO1_R {
177        G3_IO1_R::new(((self.bits >> 8) & 1) != 0)
178    }
179    ///Bit 9 - G3_IO2 sampling mode
180    #[inline(always)]
181    pub fn g3_io2(&self) -> G3_IO2_R {
182        G3_IO2_R::new(((self.bits >> 9) & 1) != 0)
183    }
184    ///Bit 10 - G3_IO3 sampling mode
185    #[inline(always)]
186    pub fn g3_io3(&self) -> G3_IO3_R {
187        G3_IO3_R::new(((self.bits >> 10) & 1) != 0)
188    }
189    ///Bit 11 - G3_IO4 sampling mode
190    #[inline(always)]
191    pub fn g3_io4(&self) -> G3_IO4_R {
192        G3_IO4_R::new(((self.bits >> 11) & 1) != 0)
193    }
194    ///Bit 12 - G4_IO1 sampling mode
195    #[inline(always)]
196    pub fn g4_io1(&self) -> G4_IO1_R {
197        G4_IO1_R::new(((self.bits >> 12) & 1) != 0)
198    }
199    ///Bit 13 - G4_IO2 sampling mode
200    #[inline(always)]
201    pub fn g4_io2(&self) -> G4_IO2_R {
202        G4_IO2_R::new(((self.bits >> 13) & 1) != 0)
203    }
204    ///Bit 14 - G4_IO3 sampling mode
205    #[inline(always)]
206    pub fn g4_io3(&self) -> G4_IO3_R {
207        G4_IO3_R::new(((self.bits >> 14) & 1) != 0)
208    }
209    ///Bit 15 - G4_IO4 sampling mode
210    #[inline(always)]
211    pub fn g4_io4(&self) -> G4_IO4_R {
212        G4_IO4_R::new(((self.bits >> 15) & 1) != 0)
213    }
214    ///Bit 16 - G5_IO1 sampling mode
215    #[inline(always)]
216    pub fn g5_io1(&self) -> G5_IO1_R {
217        G5_IO1_R::new(((self.bits >> 16) & 1) != 0)
218    }
219    ///Bit 17 - G5_IO2 sampling mode
220    #[inline(always)]
221    pub fn g5_io2(&self) -> G5_IO2_R {
222        G5_IO2_R::new(((self.bits >> 17) & 1) != 0)
223    }
224    ///Bit 18 - G5_IO3 sampling mode
225    #[inline(always)]
226    pub fn g5_io3(&self) -> G5_IO3_R {
227        G5_IO3_R::new(((self.bits >> 18) & 1) != 0)
228    }
229    ///Bit 19 - G5_IO4 sampling mode
230    #[inline(always)]
231    pub fn g5_io4(&self) -> G5_IO4_R {
232        G5_IO4_R::new(((self.bits >> 19) & 1) != 0)
233    }
234    ///Bit 20 - G6_IO1 sampling mode
235    #[inline(always)]
236    pub fn g6_io1(&self) -> G6_IO1_R {
237        G6_IO1_R::new(((self.bits >> 20) & 1) != 0)
238    }
239    ///Bit 21 - G6_IO2 sampling mode
240    #[inline(always)]
241    pub fn g6_io2(&self) -> G6_IO2_R {
242        G6_IO2_R::new(((self.bits >> 21) & 1) != 0)
243    }
244    ///Bit 22 - G6_IO3 sampling mode
245    #[inline(always)]
246    pub fn g6_io3(&self) -> G6_IO3_R {
247        G6_IO3_R::new(((self.bits >> 22) & 1) != 0)
248    }
249    ///Bit 23 - G6_IO4 sampling mode
250    #[inline(always)]
251    pub fn g6_io4(&self) -> G6_IO4_R {
252        G6_IO4_R::new(((self.bits >> 23) & 1) != 0)
253    }
254    ///Bit 24 - G7_IO1 sampling mode
255    #[inline(always)]
256    pub fn g7_io1(&self) -> G7_IO1_R {
257        G7_IO1_R::new(((self.bits >> 24) & 1) != 0)
258    }
259    ///Bit 25 - G7_IO2 sampling mode
260    #[inline(always)]
261    pub fn g7_io2(&self) -> G7_IO2_R {
262        G7_IO2_R::new(((self.bits >> 25) & 1) != 0)
263    }
264    ///Bit 26 - G7_IO3 sampling mode
265    #[inline(always)]
266    pub fn g7_io3(&self) -> G7_IO3_R {
267        G7_IO3_R::new(((self.bits >> 26) & 1) != 0)
268    }
269    ///Bit 27 - G7_IO4 sampling mode
270    #[inline(always)]
271    pub fn g7_io4(&self) -> G7_IO4_R {
272        G7_IO4_R::new(((self.bits >> 27) & 1) != 0)
273    }
274    ///Bit 28 - G8_IO1 sampling mode
275    #[inline(always)]
276    pub fn g8_io1(&self) -> G8_IO1_R {
277        G8_IO1_R::new(((self.bits >> 28) & 1) != 0)
278    }
279    ///Bit 29 - G8_IO2 sampling mode
280    #[inline(always)]
281    pub fn g8_io2(&self) -> G8_IO2_R {
282        G8_IO2_R::new(((self.bits >> 29) & 1) != 0)
283    }
284    ///Bit 30 - G8_IO3 sampling mode
285    #[inline(always)]
286    pub fn g8_io3(&self) -> G8_IO3_R {
287        G8_IO3_R::new(((self.bits >> 30) & 1) != 0)
288    }
289    ///Bit 31 - G8_IO4 sampling mode
290    #[inline(always)]
291    pub fn g8_io4(&self) -> G8_IO4_R {
292        G8_IO4_R::new(((self.bits >> 31) & 1) != 0)
293    }
294}
295impl core::fmt::Debug for R {
296    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
297        f.debug_struct("IOSCR")
298            .field("g1_io1", &self.g1_io1())
299            .field("g1_io2", &self.g1_io2())
300            .field("g1_io3", &self.g1_io3())
301            .field("g1_io4", &self.g1_io4())
302            .field("g2_io1", &self.g2_io1())
303            .field("g2_io2", &self.g2_io2())
304            .field("g2_io3", &self.g2_io3())
305            .field("g2_io4", &self.g2_io4())
306            .field("g3_io1", &self.g3_io1())
307            .field("g3_io2", &self.g3_io2())
308            .field("g3_io3", &self.g3_io3())
309            .field("g3_io4", &self.g3_io4())
310            .field("g4_io1", &self.g4_io1())
311            .field("g4_io2", &self.g4_io2())
312            .field("g4_io3", &self.g4_io3())
313            .field("g4_io4", &self.g4_io4())
314            .field("g5_io1", &self.g5_io1())
315            .field("g5_io2", &self.g5_io2())
316            .field("g5_io3", &self.g5_io3())
317            .field("g5_io4", &self.g5_io4())
318            .field("g6_io1", &self.g6_io1())
319            .field("g6_io2", &self.g6_io2())
320            .field("g6_io3", &self.g6_io3())
321            .field("g6_io4", &self.g6_io4())
322            .field("g7_io1", &self.g7_io1())
323            .field("g7_io2", &self.g7_io2())
324            .field("g7_io3", &self.g7_io3())
325            .field("g7_io4", &self.g7_io4())
326            .field("g8_io1", &self.g8_io1())
327            .field("g8_io2", &self.g8_io2())
328            .field("g8_io3", &self.g8_io3())
329            .field("g8_io4", &self.g8_io4())
330            .finish()
331    }
332}
333impl W {
334    ///Bit 0 - G1_IO1 sampling mode
335    #[inline(always)]
336    pub fn g1_io1(&mut self) -> G1_IO1_W<IOSCRrs> {
337        G1_IO1_W::new(self, 0)
338    }
339    ///Bit 1 - G1_IO2 sampling mode
340    #[inline(always)]
341    pub fn g1_io2(&mut self) -> G1_IO2_W<IOSCRrs> {
342        G1_IO2_W::new(self, 1)
343    }
344    ///Bit 2 - G1_IO3 sampling mode
345    #[inline(always)]
346    pub fn g1_io3(&mut self) -> G1_IO3_W<IOSCRrs> {
347        G1_IO3_W::new(self, 2)
348    }
349    ///Bit 3 - G1_IO4 sampling mode
350    #[inline(always)]
351    pub fn g1_io4(&mut self) -> G1_IO4_W<IOSCRrs> {
352        G1_IO4_W::new(self, 3)
353    }
354    ///Bit 4 - G2_IO1 sampling mode
355    #[inline(always)]
356    pub fn g2_io1(&mut self) -> G2_IO1_W<IOSCRrs> {
357        G2_IO1_W::new(self, 4)
358    }
359    ///Bit 5 - G2_IO2 sampling mode
360    #[inline(always)]
361    pub fn g2_io2(&mut self) -> G2_IO2_W<IOSCRrs> {
362        G2_IO2_W::new(self, 5)
363    }
364    ///Bit 6 - G2_IO3 sampling mode
365    #[inline(always)]
366    pub fn g2_io3(&mut self) -> G2_IO3_W<IOSCRrs> {
367        G2_IO3_W::new(self, 6)
368    }
369    ///Bit 7 - G2_IO4 sampling mode
370    #[inline(always)]
371    pub fn g2_io4(&mut self) -> G2_IO4_W<IOSCRrs> {
372        G2_IO4_W::new(self, 7)
373    }
374    ///Bit 8 - G3_IO1 sampling mode
375    #[inline(always)]
376    pub fn g3_io1(&mut self) -> G3_IO1_W<IOSCRrs> {
377        G3_IO1_W::new(self, 8)
378    }
379    ///Bit 9 - G3_IO2 sampling mode
380    #[inline(always)]
381    pub fn g3_io2(&mut self) -> G3_IO2_W<IOSCRrs> {
382        G3_IO2_W::new(self, 9)
383    }
384    ///Bit 10 - G3_IO3 sampling mode
385    #[inline(always)]
386    pub fn g3_io3(&mut self) -> G3_IO3_W<IOSCRrs> {
387        G3_IO3_W::new(self, 10)
388    }
389    ///Bit 11 - G3_IO4 sampling mode
390    #[inline(always)]
391    pub fn g3_io4(&mut self) -> G3_IO4_W<IOSCRrs> {
392        G3_IO4_W::new(self, 11)
393    }
394    ///Bit 12 - G4_IO1 sampling mode
395    #[inline(always)]
396    pub fn g4_io1(&mut self) -> G4_IO1_W<IOSCRrs> {
397        G4_IO1_W::new(self, 12)
398    }
399    ///Bit 13 - G4_IO2 sampling mode
400    #[inline(always)]
401    pub fn g4_io2(&mut self) -> G4_IO2_W<IOSCRrs> {
402        G4_IO2_W::new(self, 13)
403    }
404    ///Bit 14 - G4_IO3 sampling mode
405    #[inline(always)]
406    pub fn g4_io3(&mut self) -> G4_IO3_W<IOSCRrs> {
407        G4_IO3_W::new(self, 14)
408    }
409    ///Bit 15 - G4_IO4 sampling mode
410    #[inline(always)]
411    pub fn g4_io4(&mut self) -> G4_IO4_W<IOSCRrs> {
412        G4_IO4_W::new(self, 15)
413    }
414    ///Bit 16 - G5_IO1 sampling mode
415    #[inline(always)]
416    pub fn g5_io1(&mut self) -> G5_IO1_W<IOSCRrs> {
417        G5_IO1_W::new(self, 16)
418    }
419    ///Bit 17 - G5_IO2 sampling mode
420    #[inline(always)]
421    pub fn g5_io2(&mut self) -> G5_IO2_W<IOSCRrs> {
422        G5_IO2_W::new(self, 17)
423    }
424    ///Bit 18 - G5_IO3 sampling mode
425    #[inline(always)]
426    pub fn g5_io3(&mut self) -> G5_IO3_W<IOSCRrs> {
427        G5_IO3_W::new(self, 18)
428    }
429    ///Bit 19 - G5_IO4 sampling mode
430    #[inline(always)]
431    pub fn g5_io4(&mut self) -> G5_IO4_W<IOSCRrs> {
432        G5_IO4_W::new(self, 19)
433    }
434    ///Bit 20 - G6_IO1 sampling mode
435    #[inline(always)]
436    pub fn g6_io1(&mut self) -> G6_IO1_W<IOSCRrs> {
437        G6_IO1_W::new(self, 20)
438    }
439    ///Bit 21 - G6_IO2 sampling mode
440    #[inline(always)]
441    pub fn g6_io2(&mut self) -> G6_IO2_W<IOSCRrs> {
442        G6_IO2_W::new(self, 21)
443    }
444    ///Bit 22 - G6_IO3 sampling mode
445    #[inline(always)]
446    pub fn g6_io3(&mut self) -> G6_IO3_W<IOSCRrs> {
447        G6_IO3_W::new(self, 22)
448    }
449    ///Bit 23 - G6_IO4 sampling mode
450    #[inline(always)]
451    pub fn g6_io4(&mut self) -> G6_IO4_W<IOSCRrs> {
452        G6_IO4_W::new(self, 23)
453    }
454    ///Bit 24 - G7_IO1 sampling mode
455    #[inline(always)]
456    pub fn g7_io1(&mut self) -> G7_IO1_W<IOSCRrs> {
457        G7_IO1_W::new(self, 24)
458    }
459    ///Bit 25 - G7_IO2 sampling mode
460    #[inline(always)]
461    pub fn g7_io2(&mut self) -> G7_IO2_W<IOSCRrs> {
462        G7_IO2_W::new(self, 25)
463    }
464    ///Bit 26 - G7_IO3 sampling mode
465    #[inline(always)]
466    pub fn g7_io3(&mut self) -> G7_IO3_W<IOSCRrs> {
467        G7_IO3_W::new(self, 26)
468    }
469    ///Bit 27 - G7_IO4 sampling mode
470    #[inline(always)]
471    pub fn g7_io4(&mut self) -> G7_IO4_W<IOSCRrs> {
472        G7_IO4_W::new(self, 27)
473    }
474    ///Bit 28 - G8_IO1 sampling mode
475    #[inline(always)]
476    pub fn g8_io1(&mut self) -> G8_IO1_W<IOSCRrs> {
477        G8_IO1_W::new(self, 28)
478    }
479    ///Bit 29 - G8_IO2 sampling mode
480    #[inline(always)]
481    pub fn g8_io2(&mut self) -> G8_IO2_W<IOSCRrs> {
482        G8_IO2_W::new(self, 29)
483    }
484    ///Bit 30 - G8_IO3 sampling mode
485    #[inline(always)]
486    pub fn g8_io3(&mut self) -> G8_IO3_W<IOSCRrs> {
487        G8_IO3_W::new(self, 30)
488    }
489    ///Bit 31 - G8_IO4 sampling mode
490    #[inline(always)]
491    pub fn g8_io4(&mut self) -> G8_IO4_W<IOSCRrs> {
492        G8_IO4_W::new(self, 31)
493    }
494}
495/**I/O sampling control register
496
497You can [`read`](crate::Reg::read) this register and get [`ioscr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ioscr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
498
499See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#TSC:IOSCR)*/
500pub struct IOSCRrs;
501impl crate::RegisterSpec for IOSCRrs {
502    type Ux = u32;
503}
504///`read()` method returns [`ioscr::R`](R) reader structure
505impl crate::Readable for IOSCRrs {}
506///`write(|w| ..)` method takes [`ioscr::W`](W) writer structure
507impl crate::Writable for IOSCRrs {
508    type Safety = crate::Unsafe;
509    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
510    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
511}
512///`reset()` method sets IOSCR to value 0
513impl crate::Resettable for IOSCRrs {
514    const RESET_VALUE: u32 = 0;
515}