efm32pg12b500_pac/usart3/
ifc.rs1#[doc = "Register `IFC` writer"]
2pub struct W(crate::W<IFC_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IFC_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<IFC_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IFC_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `TXC` writer - Clear TXC Interrupt Flag"]
23pub type TXC_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 0>;
24#[doc = "Field `RXFULL` writer - Clear RXFULL Interrupt Flag"]
25pub type RXFULL_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 3>;
26#[doc = "Field `RXOF` writer - Clear RXOF Interrupt Flag"]
27pub type RXOF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 4>;
28#[doc = "Field `RXUF` writer - Clear RXUF Interrupt Flag"]
29pub type RXUF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 5>;
30#[doc = "Field `TXOF` writer - Clear TXOF Interrupt Flag"]
31pub type TXOF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 6>;
32#[doc = "Field `TXUF` writer - Clear TXUF Interrupt Flag"]
33pub type TXUF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 7>;
34#[doc = "Field `PERR` writer - Clear PERR Interrupt Flag"]
35pub type PERR_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 8>;
36#[doc = "Field `FERR` writer - Clear FERR Interrupt Flag"]
37pub type FERR_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 9>;
38#[doc = "Field `MPAF` writer - Clear MPAF Interrupt Flag"]
39pub type MPAF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 10>;
40#[doc = "Field `SSM` writer - Clear SSM Interrupt Flag"]
41pub type SSM_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 11>;
42#[doc = "Field `CCF` writer - Clear CCF Interrupt Flag"]
43pub type CCF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 12>;
44#[doc = "Field `TXIDLE` writer - Clear TXIDLE Interrupt Flag"]
45pub type TXIDLE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 13>;
46#[doc = "Field `TCMP0` writer - Clear TCMP0 Interrupt Flag"]
47pub type TCMP0_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 14>;
48#[doc = "Field `TCMP1` writer - Clear TCMP1 Interrupt Flag"]
49pub type TCMP1_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 15>;
50#[doc = "Field `TCMP2` writer - Clear TCMP2 Interrupt Flag"]
51pub type TCMP2_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 16>;
52impl W {
53 #[doc = "Bit 0 - Clear TXC Interrupt Flag"]
54 #[inline(always)]
55 pub fn txc(&mut self) -> TXC_W {
56 TXC_W::new(self)
57 }
58 #[doc = "Bit 3 - Clear RXFULL Interrupt Flag"]
59 #[inline(always)]
60 pub fn rxfull(&mut self) -> RXFULL_W {
61 RXFULL_W::new(self)
62 }
63 #[doc = "Bit 4 - Clear RXOF Interrupt Flag"]
64 #[inline(always)]
65 pub fn rxof(&mut self) -> RXOF_W {
66 RXOF_W::new(self)
67 }
68 #[doc = "Bit 5 - Clear RXUF Interrupt Flag"]
69 #[inline(always)]
70 pub fn rxuf(&mut self) -> RXUF_W {
71 RXUF_W::new(self)
72 }
73 #[doc = "Bit 6 - Clear TXOF Interrupt Flag"]
74 #[inline(always)]
75 pub fn txof(&mut self) -> TXOF_W {
76 TXOF_W::new(self)
77 }
78 #[doc = "Bit 7 - Clear TXUF Interrupt Flag"]
79 #[inline(always)]
80 pub fn txuf(&mut self) -> TXUF_W {
81 TXUF_W::new(self)
82 }
83 #[doc = "Bit 8 - Clear PERR Interrupt Flag"]
84 #[inline(always)]
85 pub fn perr(&mut self) -> PERR_W {
86 PERR_W::new(self)
87 }
88 #[doc = "Bit 9 - Clear FERR Interrupt Flag"]
89 #[inline(always)]
90 pub fn ferr(&mut self) -> FERR_W {
91 FERR_W::new(self)
92 }
93 #[doc = "Bit 10 - Clear MPAF Interrupt Flag"]
94 #[inline(always)]
95 pub fn mpaf(&mut self) -> MPAF_W {
96 MPAF_W::new(self)
97 }
98 #[doc = "Bit 11 - Clear SSM Interrupt Flag"]
99 #[inline(always)]
100 pub fn ssm(&mut self) -> SSM_W {
101 SSM_W::new(self)
102 }
103 #[doc = "Bit 12 - Clear CCF Interrupt Flag"]
104 #[inline(always)]
105 pub fn ccf(&mut self) -> CCF_W {
106 CCF_W::new(self)
107 }
108 #[doc = "Bit 13 - Clear TXIDLE Interrupt Flag"]
109 #[inline(always)]
110 pub fn txidle(&mut self) -> TXIDLE_W {
111 TXIDLE_W::new(self)
112 }
113 #[doc = "Bit 14 - Clear TCMP0 Interrupt Flag"]
114 #[inline(always)]
115 pub fn tcmp0(&mut self) -> TCMP0_W {
116 TCMP0_W::new(self)
117 }
118 #[doc = "Bit 15 - Clear TCMP1 Interrupt Flag"]
119 #[inline(always)]
120 pub fn tcmp1(&mut self) -> TCMP1_W {
121 TCMP1_W::new(self)
122 }
123 #[doc = "Bit 16 - Clear TCMP2 Interrupt Flag"]
124 #[inline(always)]
125 pub fn tcmp2(&mut self) -> TCMP2_W {
126 TCMP2_W::new(self)
127 }
128 #[doc = "Writes raw bits to the register."]
129 #[inline(always)]
130 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
131 self.0.bits(bits);
132 self
133 }
134}
135#[doc = "Interrupt Flag Clear Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifc](index.html) module"]
136pub struct IFC_SPEC;
137impl crate::RegisterSpec for IFC_SPEC {
138 type Ux = u32;
139}
140#[doc = "`write(|w| ..)` method takes [ifc::W](W) writer structure"]
141impl crate::Writable for IFC_SPEC {
142 type Writer = W;
143}
144#[doc = "`reset()` method sets IFC to value 0"]
145impl crate::Resettable for IFC_SPEC {
146 #[inline(always)]
147 fn reset_value() -> Self::Ux {
148 0
149 }
150}