efm32gg12b410_pac/usart1/
input.rs

1#[doc = "Register `INPUT` reader"]
2pub struct R(crate::R<INPUT_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<INPUT_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<INPUT_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<INPUT_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `INPUT` writer"]
17pub struct W(crate::W<INPUT_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<INPUT_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<INPUT_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<INPUT_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "RX PRS Channel Select\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39#[repr(u8)]
40pub enum RXPRSSEL_A {
41    #[doc = "0: PRS Channel 0 selected"]
42    PRSCH0 = 0,
43    #[doc = "1: PRS Channel 1 selected"]
44    PRSCH1 = 1,
45    #[doc = "2: PRS Channel 2 selected"]
46    PRSCH2 = 2,
47    #[doc = "3: PRS Channel 3 selected"]
48    PRSCH3 = 3,
49    #[doc = "4: PRS Channel 4 selected"]
50    PRSCH4 = 4,
51    #[doc = "5: PRS Channel 5 selected"]
52    PRSCH5 = 5,
53    #[doc = "6: PRS Channel 6 selected"]
54    PRSCH6 = 6,
55    #[doc = "7: PRS Channel 7 selected"]
56    PRSCH7 = 7,
57    #[doc = "8: PRS Channel 8 selected"]
58    PRSCH8 = 8,
59    #[doc = "9: PRS Channel 9 selected"]
60    PRSCH9 = 9,
61    #[doc = "10: PRS Channel 10 selected"]
62    PRSCH10 = 10,
63    #[doc = "11: PRS Channel 11 selected"]
64    PRSCH11 = 11,
65    #[doc = "12: PRS Channel 12 selected"]
66    PRSCH12 = 12,
67    #[doc = "13: PRS Channel 13 selected"]
68    PRSCH13 = 13,
69    #[doc = "14: PRS Channel 14 selected"]
70    PRSCH14 = 14,
71    #[doc = "15: PRS Channel 15 selected"]
72    PRSCH15 = 15,
73}
74impl From<RXPRSSEL_A> for u8 {
75    #[inline(always)]
76    fn from(variant: RXPRSSEL_A) -> Self {
77        variant as _
78    }
79}
80#[doc = "Field `RXPRSSEL` reader - RX PRS Channel Select"]
81pub type RXPRSSEL_R = crate::FieldReader<u8, RXPRSSEL_A>;
82impl RXPRSSEL_R {
83    #[doc = "Get enumerated values variant"]
84    #[inline(always)]
85    pub fn variant(&self) -> RXPRSSEL_A {
86        match self.bits {
87            0 => RXPRSSEL_A::PRSCH0,
88            1 => RXPRSSEL_A::PRSCH1,
89            2 => RXPRSSEL_A::PRSCH2,
90            3 => RXPRSSEL_A::PRSCH3,
91            4 => RXPRSSEL_A::PRSCH4,
92            5 => RXPRSSEL_A::PRSCH5,
93            6 => RXPRSSEL_A::PRSCH6,
94            7 => RXPRSSEL_A::PRSCH7,
95            8 => RXPRSSEL_A::PRSCH8,
96            9 => RXPRSSEL_A::PRSCH9,
97            10 => RXPRSSEL_A::PRSCH10,
98            11 => RXPRSSEL_A::PRSCH11,
99            12 => RXPRSSEL_A::PRSCH12,
100            13 => RXPRSSEL_A::PRSCH13,
101            14 => RXPRSSEL_A::PRSCH14,
102            15 => RXPRSSEL_A::PRSCH15,
103            _ => unreachable!(),
104        }
105    }
106    #[doc = "Checks if the value of the field is `PRSCH0`"]
107    #[inline(always)]
108    pub fn is_prsch0(&self) -> bool {
109        *self == RXPRSSEL_A::PRSCH0
110    }
111    #[doc = "Checks if the value of the field is `PRSCH1`"]
112    #[inline(always)]
113    pub fn is_prsch1(&self) -> bool {
114        *self == RXPRSSEL_A::PRSCH1
115    }
116    #[doc = "Checks if the value of the field is `PRSCH2`"]
117    #[inline(always)]
118    pub fn is_prsch2(&self) -> bool {
119        *self == RXPRSSEL_A::PRSCH2
120    }
121    #[doc = "Checks if the value of the field is `PRSCH3`"]
122    #[inline(always)]
123    pub fn is_prsch3(&self) -> bool {
124        *self == RXPRSSEL_A::PRSCH3
125    }
126    #[doc = "Checks if the value of the field is `PRSCH4`"]
127    #[inline(always)]
128    pub fn is_prsch4(&self) -> bool {
129        *self == RXPRSSEL_A::PRSCH4
130    }
131    #[doc = "Checks if the value of the field is `PRSCH5`"]
132    #[inline(always)]
133    pub fn is_prsch5(&self) -> bool {
134        *self == RXPRSSEL_A::PRSCH5
135    }
136    #[doc = "Checks if the value of the field is `PRSCH6`"]
137    #[inline(always)]
138    pub fn is_prsch6(&self) -> bool {
139        *self == RXPRSSEL_A::PRSCH6
140    }
141    #[doc = "Checks if the value of the field is `PRSCH7`"]
142    #[inline(always)]
143    pub fn is_prsch7(&self) -> bool {
144        *self == RXPRSSEL_A::PRSCH7
145    }
146    #[doc = "Checks if the value of the field is `PRSCH8`"]
147    #[inline(always)]
148    pub fn is_prsch8(&self) -> bool {
149        *self == RXPRSSEL_A::PRSCH8
150    }
151    #[doc = "Checks if the value of the field is `PRSCH9`"]
152    #[inline(always)]
153    pub fn is_prsch9(&self) -> bool {
154        *self == RXPRSSEL_A::PRSCH9
155    }
156    #[doc = "Checks if the value of the field is `PRSCH10`"]
157    #[inline(always)]
158    pub fn is_prsch10(&self) -> bool {
159        *self == RXPRSSEL_A::PRSCH10
160    }
161    #[doc = "Checks if the value of the field is `PRSCH11`"]
162    #[inline(always)]
163    pub fn is_prsch11(&self) -> bool {
164        *self == RXPRSSEL_A::PRSCH11
165    }
166    #[doc = "Checks if the value of the field is `PRSCH12`"]
167    #[inline(always)]
168    pub fn is_prsch12(&self) -> bool {
169        *self == RXPRSSEL_A::PRSCH12
170    }
171    #[doc = "Checks if the value of the field is `PRSCH13`"]
172    #[inline(always)]
173    pub fn is_prsch13(&self) -> bool {
174        *self == RXPRSSEL_A::PRSCH13
175    }
176    #[doc = "Checks if the value of the field is `PRSCH14`"]
177    #[inline(always)]
178    pub fn is_prsch14(&self) -> bool {
179        *self == RXPRSSEL_A::PRSCH14
180    }
181    #[doc = "Checks if the value of the field is `PRSCH15`"]
182    #[inline(always)]
183    pub fn is_prsch15(&self) -> bool {
184        *self == RXPRSSEL_A::PRSCH15
185    }
186}
187#[doc = "Field `RXPRSSEL` writer - RX PRS Channel Select"]
188pub type RXPRSSEL_W<'a> = crate::FieldWriterSafe<'a, u32, INPUT_SPEC, u8, RXPRSSEL_A, 4, 0>;
189impl<'a> RXPRSSEL_W<'a> {
190    #[doc = "PRS Channel 0 selected"]
191    #[inline(always)]
192    pub fn prsch0(self) -> &'a mut W {
193        self.variant(RXPRSSEL_A::PRSCH0)
194    }
195    #[doc = "PRS Channel 1 selected"]
196    #[inline(always)]
197    pub fn prsch1(self) -> &'a mut W {
198        self.variant(RXPRSSEL_A::PRSCH1)
199    }
200    #[doc = "PRS Channel 2 selected"]
201    #[inline(always)]
202    pub fn prsch2(self) -> &'a mut W {
203        self.variant(RXPRSSEL_A::PRSCH2)
204    }
205    #[doc = "PRS Channel 3 selected"]
206    #[inline(always)]
207    pub fn prsch3(self) -> &'a mut W {
208        self.variant(RXPRSSEL_A::PRSCH3)
209    }
210    #[doc = "PRS Channel 4 selected"]
211    #[inline(always)]
212    pub fn prsch4(self) -> &'a mut W {
213        self.variant(RXPRSSEL_A::PRSCH4)
214    }
215    #[doc = "PRS Channel 5 selected"]
216    #[inline(always)]
217    pub fn prsch5(self) -> &'a mut W {
218        self.variant(RXPRSSEL_A::PRSCH5)
219    }
220    #[doc = "PRS Channel 6 selected"]
221    #[inline(always)]
222    pub fn prsch6(self) -> &'a mut W {
223        self.variant(RXPRSSEL_A::PRSCH6)
224    }
225    #[doc = "PRS Channel 7 selected"]
226    #[inline(always)]
227    pub fn prsch7(self) -> &'a mut W {
228        self.variant(RXPRSSEL_A::PRSCH7)
229    }
230    #[doc = "PRS Channel 8 selected"]
231    #[inline(always)]
232    pub fn prsch8(self) -> &'a mut W {
233        self.variant(RXPRSSEL_A::PRSCH8)
234    }
235    #[doc = "PRS Channel 9 selected"]
236    #[inline(always)]
237    pub fn prsch9(self) -> &'a mut W {
238        self.variant(RXPRSSEL_A::PRSCH9)
239    }
240    #[doc = "PRS Channel 10 selected"]
241    #[inline(always)]
242    pub fn prsch10(self) -> &'a mut W {
243        self.variant(RXPRSSEL_A::PRSCH10)
244    }
245    #[doc = "PRS Channel 11 selected"]
246    #[inline(always)]
247    pub fn prsch11(self) -> &'a mut W {
248        self.variant(RXPRSSEL_A::PRSCH11)
249    }
250    #[doc = "PRS Channel 12 selected"]
251    #[inline(always)]
252    pub fn prsch12(self) -> &'a mut W {
253        self.variant(RXPRSSEL_A::PRSCH12)
254    }
255    #[doc = "PRS Channel 13 selected"]
256    #[inline(always)]
257    pub fn prsch13(self) -> &'a mut W {
258        self.variant(RXPRSSEL_A::PRSCH13)
259    }
260    #[doc = "PRS Channel 14 selected"]
261    #[inline(always)]
262    pub fn prsch14(self) -> &'a mut W {
263        self.variant(RXPRSSEL_A::PRSCH14)
264    }
265    #[doc = "PRS Channel 15 selected"]
266    #[inline(always)]
267    pub fn prsch15(self) -> &'a mut W {
268        self.variant(RXPRSSEL_A::PRSCH15)
269    }
270}
271#[doc = "Field `RXPRS` reader - PRS RX Enable"]
272pub type RXPRS_R = crate::BitReader<bool>;
273#[doc = "Field `RXPRS` writer - PRS RX Enable"]
274pub type RXPRS_W<'a> = crate::BitWriter<'a, u32, INPUT_SPEC, bool, 7>;
275#[doc = "CLK PRS Channel Select\n\nValue on reset: 0"]
276#[derive(Clone, Copy, Debug, PartialEq)]
277#[repr(u8)]
278pub enum CLKPRSSEL_A {
279    #[doc = "0: PRS Channel 0 selected"]
280    PRSCH0 = 0,
281    #[doc = "1: PRS Channel 1 selected"]
282    PRSCH1 = 1,
283    #[doc = "2: PRS Channel 2 selected"]
284    PRSCH2 = 2,
285    #[doc = "3: PRS Channel 3 selected"]
286    PRSCH3 = 3,
287    #[doc = "4: PRS Channel 4 selected"]
288    PRSCH4 = 4,
289    #[doc = "5: PRS Channel 5 selected"]
290    PRSCH5 = 5,
291    #[doc = "6: PRS Channel 6 selected"]
292    PRSCH6 = 6,
293    #[doc = "7: PRS Channel 7 selected"]
294    PRSCH7 = 7,
295    #[doc = "8: PRS Channel 8 selected"]
296    PRSCH8 = 8,
297    #[doc = "9: PRS Channel 9 selected"]
298    PRSCH9 = 9,
299    #[doc = "10: PRS Channel 10 selected"]
300    PRSCH10 = 10,
301    #[doc = "11: PRS Channel 11 selected"]
302    PRSCH11 = 11,
303    #[doc = "12: PRS Channel 12 selected"]
304    PRSCH12 = 12,
305    #[doc = "13: PRS Channel 13 selected"]
306    PRSCH13 = 13,
307    #[doc = "14: PRS Channel 14 selected"]
308    PRSCH14 = 14,
309    #[doc = "15: PRS Channel 15 selected"]
310    PRSCH15 = 15,
311}
312impl From<CLKPRSSEL_A> for u8 {
313    #[inline(always)]
314    fn from(variant: CLKPRSSEL_A) -> Self {
315        variant as _
316    }
317}
318#[doc = "Field `CLKPRSSEL` reader - CLK PRS Channel Select"]
319pub type CLKPRSSEL_R = crate::FieldReader<u8, CLKPRSSEL_A>;
320impl CLKPRSSEL_R {
321    #[doc = "Get enumerated values variant"]
322    #[inline(always)]
323    pub fn variant(&self) -> CLKPRSSEL_A {
324        match self.bits {
325            0 => CLKPRSSEL_A::PRSCH0,
326            1 => CLKPRSSEL_A::PRSCH1,
327            2 => CLKPRSSEL_A::PRSCH2,
328            3 => CLKPRSSEL_A::PRSCH3,
329            4 => CLKPRSSEL_A::PRSCH4,
330            5 => CLKPRSSEL_A::PRSCH5,
331            6 => CLKPRSSEL_A::PRSCH6,
332            7 => CLKPRSSEL_A::PRSCH7,
333            8 => CLKPRSSEL_A::PRSCH8,
334            9 => CLKPRSSEL_A::PRSCH9,
335            10 => CLKPRSSEL_A::PRSCH10,
336            11 => CLKPRSSEL_A::PRSCH11,
337            12 => CLKPRSSEL_A::PRSCH12,
338            13 => CLKPRSSEL_A::PRSCH13,
339            14 => CLKPRSSEL_A::PRSCH14,
340            15 => CLKPRSSEL_A::PRSCH15,
341            _ => unreachable!(),
342        }
343    }
344    #[doc = "Checks if the value of the field is `PRSCH0`"]
345    #[inline(always)]
346    pub fn is_prsch0(&self) -> bool {
347        *self == CLKPRSSEL_A::PRSCH0
348    }
349    #[doc = "Checks if the value of the field is `PRSCH1`"]
350    #[inline(always)]
351    pub fn is_prsch1(&self) -> bool {
352        *self == CLKPRSSEL_A::PRSCH1
353    }
354    #[doc = "Checks if the value of the field is `PRSCH2`"]
355    #[inline(always)]
356    pub fn is_prsch2(&self) -> bool {
357        *self == CLKPRSSEL_A::PRSCH2
358    }
359    #[doc = "Checks if the value of the field is `PRSCH3`"]
360    #[inline(always)]
361    pub fn is_prsch3(&self) -> bool {
362        *self == CLKPRSSEL_A::PRSCH3
363    }
364    #[doc = "Checks if the value of the field is `PRSCH4`"]
365    #[inline(always)]
366    pub fn is_prsch4(&self) -> bool {
367        *self == CLKPRSSEL_A::PRSCH4
368    }
369    #[doc = "Checks if the value of the field is `PRSCH5`"]
370    #[inline(always)]
371    pub fn is_prsch5(&self) -> bool {
372        *self == CLKPRSSEL_A::PRSCH5
373    }
374    #[doc = "Checks if the value of the field is `PRSCH6`"]
375    #[inline(always)]
376    pub fn is_prsch6(&self) -> bool {
377        *self == CLKPRSSEL_A::PRSCH6
378    }
379    #[doc = "Checks if the value of the field is `PRSCH7`"]
380    #[inline(always)]
381    pub fn is_prsch7(&self) -> bool {
382        *self == CLKPRSSEL_A::PRSCH7
383    }
384    #[doc = "Checks if the value of the field is `PRSCH8`"]
385    #[inline(always)]
386    pub fn is_prsch8(&self) -> bool {
387        *self == CLKPRSSEL_A::PRSCH8
388    }
389    #[doc = "Checks if the value of the field is `PRSCH9`"]
390    #[inline(always)]
391    pub fn is_prsch9(&self) -> bool {
392        *self == CLKPRSSEL_A::PRSCH9
393    }
394    #[doc = "Checks if the value of the field is `PRSCH10`"]
395    #[inline(always)]
396    pub fn is_prsch10(&self) -> bool {
397        *self == CLKPRSSEL_A::PRSCH10
398    }
399    #[doc = "Checks if the value of the field is `PRSCH11`"]
400    #[inline(always)]
401    pub fn is_prsch11(&self) -> bool {
402        *self == CLKPRSSEL_A::PRSCH11
403    }
404    #[doc = "Checks if the value of the field is `PRSCH12`"]
405    #[inline(always)]
406    pub fn is_prsch12(&self) -> bool {
407        *self == CLKPRSSEL_A::PRSCH12
408    }
409    #[doc = "Checks if the value of the field is `PRSCH13`"]
410    #[inline(always)]
411    pub fn is_prsch13(&self) -> bool {
412        *self == CLKPRSSEL_A::PRSCH13
413    }
414    #[doc = "Checks if the value of the field is `PRSCH14`"]
415    #[inline(always)]
416    pub fn is_prsch14(&self) -> bool {
417        *self == CLKPRSSEL_A::PRSCH14
418    }
419    #[doc = "Checks if the value of the field is `PRSCH15`"]
420    #[inline(always)]
421    pub fn is_prsch15(&self) -> bool {
422        *self == CLKPRSSEL_A::PRSCH15
423    }
424}
425#[doc = "Field `CLKPRSSEL` writer - CLK PRS Channel Select"]
426pub type CLKPRSSEL_W<'a> = crate::FieldWriterSafe<'a, u32, INPUT_SPEC, u8, CLKPRSSEL_A, 4, 8>;
427impl<'a> CLKPRSSEL_W<'a> {
428    #[doc = "PRS Channel 0 selected"]
429    #[inline(always)]
430    pub fn prsch0(self) -> &'a mut W {
431        self.variant(CLKPRSSEL_A::PRSCH0)
432    }
433    #[doc = "PRS Channel 1 selected"]
434    #[inline(always)]
435    pub fn prsch1(self) -> &'a mut W {
436        self.variant(CLKPRSSEL_A::PRSCH1)
437    }
438    #[doc = "PRS Channel 2 selected"]
439    #[inline(always)]
440    pub fn prsch2(self) -> &'a mut W {
441        self.variant(CLKPRSSEL_A::PRSCH2)
442    }
443    #[doc = "PRS Channel 3 selected"]
444    #[inline(always)]
445    pub fn prsch3(self) -> &'a mut W {
446        self.variant(CLKPRSSEL_A::PRSCH3)
447    }
448    #[doc = "PRS Channel 4 selected"]
449    #[inline(always)]
450    pub fn prsch4(self) -> &'a mut W {
451        self.variant(CLKPRSSEL_A::PRSCH4)
452    }
453    #[doc = "PRS Channel 5 selected"]
454    #[inline(always)]
455    pub fn prsch5(self) -> &'a mut W {
456        self.variant(CLKPRSSEL_A::PRSCH5)
457    }
458    #[doc = "PRS Channel 6 selected"]
459    #[inline(always)]
460    pub fn prsch6(self) -> &'a mut W {
461        self.variant(CLKPRSSEL_A::PRSCH6)
462    }
463    #[doc = "PRS Channel 7 selected"]
464    #[inline(always)]
465    pub fn prsch7(self) -> &'a mut W {
466        self.variant(CLKPRSSEL_A::PRSCH7)
467    }
468    #[doc = "PRS Channel 8 selected"]
469    #[inline(always)]
470    pub fn prsch8(self) -> &'a mut W {
471        self.variant(CLKPRSSEL_A::PRSCH8)
472    }
473    #[doc = "PRS Channel 9 selected"]
474    #[inline(always)]
475    pub fn prsch9(self) -> &'a mut W {
476        self.variant(CLKPRSSEL_A::PRSCH9)
477    }
478    #[doc = "PRS Channel 10 selected"]
479    #[inline(always)]
480    pub fn prsch10(self) -> &'a mut W {
481        self.variant(CLKPRSSEL_A::PRSCH10)
482    }
483    #[doc = "PRS Channel 11 selected"]
484    #[inline(always)]
485    pub fn prsch11(self) -> &'a mut W {
486        self.variant(CLKPRSSEL_A::PRSCH11)
487    }
488    #[doc = "PRS Channel 12 selected"]
489    #[inline(always)]
490    pub fn prsch12(self) -> &'a mut W {
491        self.variant(CLKPRSSEL_A::PRSCH12)
492    }
493    #[doc = "PRS Channel 13 selected"]
494    #[inline(always)]
495    pub fn prsch13(self) -> &'a mut W {
496        self.variant(CLKPRSSEL_A::PRSCH13)
497    }
498    #[doc = "PRS Channel 14 selected"]
499    #[inline(always)]
500    pub fn prsch14(self) -> &'a mut W {
501        self.variant(CLKPRSSEL_A::PRSCH14)
502    }
503    #[doc = "PRS Channel 15 selected"]
504    #[inline(always)]
505    pub fn prsch15(self) -> &'a mut W {
506        self.variant(CLKPRSSEL_A::PRSCH15)
507    }
508}
509#[doc = "Field `CLKPRS` reader - PRS CLK Enable"]
510pub type CLKPRS_R = crate::BitReader<bool>;
511#[doc = "Field `CLKPRS` writer - PRS CLK Enable"]
512pub type CLKPRS_W<'a> = crate::BitWriter<'a, u32, INPUT_SPEC, bool, 15>;
513impl R {
514    #[doc = "Bits 0:3 - RX PRS Channel Select"]
515    #[inline(always)]
516    pub fn rxprssel(&self) -> RXPRSSEL_R {
517        RXPRSSEL_R::new((self.bits & 0x0f) as u8)
518    }
519    #[doc = "Bit 7 - PRS RX Enable"]
520    #[inline(always)]
521    pub fn rxprs(&self) -> RXPRS_R {
522        RXPRS_R::new(((self.bits >> 7) & 1) != 0)
523    }
524    #[doc = "Bits 8:11 - CLK PRS Channel Select"]
525    #[inline(always)]
526    pub fn clkprssel(&self) -> CLKPRSSEL_R {
527        CLKPRSSEL_R::new(((self.bits >> 8) & 0x0f) as u8)
528    }
529    #[doc = "Bit 15 - PRS CLK Enable"]
530    #[inline(always)]
531    pub fn clkprs(&self) -> CLKPRS_R {
532        CLKPRS_R::new(((self.bits >> 15) & 1) != 0)
533    }
534}
535impl W {
536    #[doc = "Bits 0:3 - RX PRS Channel Select"]
537    #[inline(always)]
538    pub fn rxprssel(&mut self) -> RXPRSSEL_W {
539        RXPRSSEL_W::new(self)
540    }
541    #[doc = "Bit 7 - PRS RX Enable"]
542    #[inline(always)]
543    pub fn rxprs(&mut self) -> RXPRS_W {
544        RXPRS_W::new(self)
545    }
546    #[doc = "Bits 8:11 - CLK PRS Channel Select"]
547    #[inline(always)]
548    pub fn clkprssel(&mut self) -> CLKPRSSEL_W {
549        CLKPRSSEL_W::new(self)
550    }
551    #[doc = "Bit 15 - PRS CLK Enable"]
552    #[inline(always)]
553    pub fn clkprs(&mut self) -> CLKPRS_W {
554        CLKPRS_W::new(self)
555    }
556    #[doc = "Writes raw bits to the register."]
557    #[inline(always)]
558    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
559        self.0.bits(bits);
560        self
561    }
562}
563#[doc = "USART Input Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [input](index.html) module"]
564pub struct INPUT_SPEC;
565impl crate::RegisterSpec for INPUT_SPEC {
566    type Ux = u32;
567}
568#[doc = "`read()` method returns [input::R](R) reader structure"]
569impl crate::Readable for INPUT_SPEC {
570    type Reader = R;
571}
572#[doc = "`write(|w| ..)` method takes [input::W](W) writer structure"]
573impl crate::Writable for INPUT_SPEC {
574    type Writer = W;
575}
576#[doc = "`reset()` method sets INPUT to value 0"]
577impl crate::Resettable for INPUT_SPEC {
578    #[inline(always)]
579    fn reset_value() -> Self::Ux {
580        0
581    }
582}