1pub type W = crate::W<IFCRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum CGIF1 {
9 Clear = 1,
11}
12impl From<CGIF1> for bool {
13 #[inline(always)]
14 fn from(variant: CGIF1) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type CGIF_W<'a, REG> = crate::BitWriter<'a, REG, CGIF1>;
20impl<'a, REG> CGIF_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn clear(self) -> &'a mut crate::W<REG> {
27 self.variant(CGIF1::Clear)
28 }
29}
30#[cfg_attr(feature = "defmt", derive(defmt::Format))]
34#[derive(Clone, Copy, Debug, PartialEq, Eq)]
35pub enum CTCIF1 {
36 Clear = 1,
38}
39impl From<CTCIF1> for bool {
40 #[inline(always)]
41 fn from(variant: CTCIF1) -> Self {
42 variant as u8 != 0
43 }
44}
45pub type CTCIF_W<'a, REG> = crate::BitWriter<'a, REG, CTCIF1>;
47impl<'a, REG> CTCIF_W<'a, REG>
48where
49 REG: crate::Writable + crate::RegisterSpec,
50{
51 #[inline(always)]
53 pub fn clear(self) -> &'a mut crate::W<REG> {
54 self.variant(CTCIF1::Clear)
55 }
56}
57#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum CHTIF1 {
63 Clear = 1,
65}
66impl From<CHTIF1> for bool {
67 #[inline(always)]
68 fn from(variant: CHTIF1) -> Self {
69 variant as u8 != 0
70 }
71}
72pub type CHTIF_W<'a, REG> = crate::BitWriter<'a, REG, CHTIF1>;
74impl<'a, REG> CHTIF_W<'a, REG>
75where
76 REG: crate::Writable + crate::RegisterSpec,
77{
78 #[inline(always)]
80 pub fn clear(self) -> &'a mut crate::W<REG> {
81 self.variant(CHTIF1::Clear)
82 }
83}
84#[cfg_attr(feature = "defmt", derive(defmt::Format))]
88#[derive(Clone, Copy, Debug, PartialEq, Eq)]
89pub enum CTEIF1 {
90 Clear = 1,
92}
93impl From<CTEIF1> for bool {
94 #[inline(always)]
95 fn from(variant: CTEIF1) -> Self {
96 variant as u8 != 0
97 }
98}
99pub type CTEIF_W<'a, REG> = crate::BitWriter<'a, REG, CTEIF1>;
101impl<'a, REG> CTEIF_W<'a, REG>
102where
103 REG: crate::Writable + crate::RegisterSpec,
104{
105 #[inline(always)]
107 pub fn clear(self) -> &'a mut crate::W<REG> {
108 self.variant(CTEIF1::Clear)
109 }
110}
111impl core::fmt::Debug for crate::generic::Reg<IFCRrs> {
112 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
113 write!(f, "(not readable)")
114 }
115}
116impl W {
117 #[inline(always)]
121 pub fn cgif(&mut self, n: u8) -> CGIF_W<IFCRrs> {
122 #[allow(clippy::no_effect)]
123 [(); 7][n as usize];
124 CGIF_W::new(self, n * 4)
125 }
126 #[inline(always)]
128 pub fn cgif1(&mut self) -> CGIF_W<IFCRrs> {
129 CGIF_W::new(self, 0)
130 }
131 #[inline(always)]
133 pub fn cgif2(&mut self) -> CGIF_W<IFCRrs> {
134 CGIF_W::new(self, 4)
135 }
136 #[inline(always)]
138 pub fn cgif3(&mut self) -> CGIF_W<IFCRrs> {
139 CGIF_W::new(self, 8)
140 }
141 #[inline(always)]
143 pub fn cgif4(&mut self) -> CGIF_W<IFCRrs> {
144 CGIF_W::new(self, 12)
145 }
146 #[inline(always)]
148 pub fn cgif5(&mut self) -> CGIF_W<IFCRrs> {
149 CGIF_W::new(self, 16)
150 }
151 #[inline(always)]
153 pub fn cgif6(&mut self) -> CGIF_W<IFCRrs> {
154 CGIF_W::new(self, 20)
155 }
156 #[inline(always)]
158 pub fn cgif7(&mut self) -> CGIF_W<IFCRrs> {
159 CGIF_W::new(self, 24)
160 }
161 #[inline(always)]
165 pub fn ctcif(&mut self, n: u8) -> CTCIF_W<IFCRrs> {
166 #[allow(clippy::no_effect)]
167 [(); 7][n as usize];
168 CTCIF_W::new(self, n * 4 + 1)
169 }
170 #[inline(always)]
172 pub fn ctcif1(&mut self) -> CTCIF_W<IFCRrs> {
173 CTCIF_W::new(self, 1)
174 }
175 #[inline(always)]
177 pub fn ctcif2(&mut self) -> CTCIF_W<IFCRrs> {
178 CTCIF_W::new(self, 5)
179 }
180 #[inline(always)]
182 pub fn ctcif3(&mut self) -> CTCIF_W<IFCRrs> {
183 CTCIF_W::new(self, 9)
184 }
185 #[inline(always)]
187 pub fn ctcif4(&mut self) -> CTCIF_W<IFCRrs> {
188 CTCIF_W::new(self, 13)
189 }
190 #[inline(always)]
192 pub fn ctcif5(&mut self) -> CTCIF_W<IFCRrs> {
193 CTCIF_W::new(self, 17)
194 }
195 #[inline(always)]
197 pub fn ctcif6(&mut self) -> CTCIF_W<IFCRrs> {
198 CTCIF_W::new(self, 21)
199 }
200 #[inline(always)]
202 pub fn ctcif7(&mut self) -> CTCIF_W<IFCRrs> {
203 CTCIF_W::new(self, 25)
204 }
205 #[inline(always)]
209 pub fn chtif(&mut self, n: u8) -> CHTIF_W<IFCRrs> {
210 #[allow(clippy::no_effect)]
211 [(); 7][n as usize];
212 CHTIF_W::new(self, n * 4 + 2)
213 }
214 #[inline(always)]
216 pub fn chtif1(&mut self) -> CHTIF_W<IFCRrs> {
217 CHTIF_W::new(self, 2)
218 }
219 #[inline(always)]
221 pub fn chtif2(&mut self) -> CHTIF_W<IFCRrs> {
222 CHTIF_W::new(self, 6)
223 }
224 #[inline(always)]
226 pub fn chtif3(&mut self) -> CHTIF_W<IFCRrs> {
227 CHTIF_W::new(self, 10)
228 }
229 #[inline(always)]
231 pub fn chtif4(&mut self) -> CHTIF_W<IFCRrs> {
232 CHTIF_W::new(self, 14)
233 }
234 #[inline(always)]
236 pub fn chtif5(&mut self) -> CHTIF_W<IFCRrs> {
237 CHTIF_W::new(self, 18)
238 }
239 #[inline(always)]
241 pub fn chtif6(&mut self) -> CHTIF_W<IFCRrs> {
242 CHTIF_W::new(self, 22)
243 }
244 #[inline(always)]
246 pub fn chtif7(&mut self) -> CHTIF_W<IFCRrs> {
247 CHTIF_W::new(self, 26)
248 }
249 #[inline(always)]
253 pub fn cteif(&mut self, n: u8) -> CTEIF_W<IFCRrs> {
254 #[allow(clippy::no_effect)]
255 [(); 7][n as usize];
256 CTEIF_W::new(self, n * 4 + 3)
257 }
258 #[inline(always)]
260 pub fn cteif1(&mut self) -> CTEIF_W<IFCRrs> {
261 CTEIF_W::new(self, 3)
262 }
263 #[inline(always)]
265 pub fn cteif2(&mut self) -> CTEIF_W<IFCRrs> {
266 CTEIF_W::new(self, 7)
267 }
268 #[inline(always)]
270 pub fn cteif3(&mut self) -> CTEIF_W<IFCRrs> {
271 CTEIF_W::new(self, 11)
272 }
273 #[inline(always)]
275 pub fn cteif4(&mut self) -> CTEIF_W<IFCRrs> {
276 CTEIF_W::new(self, 15)
277 }
278 #[inline(always)]
280 pub fn cteif5(&mut self) -> CTEIF_W<IFCRrs> {
281 CTEIF_W::new(self, 19)
282 }
283 #[inline(always)]
285 pub fn cteif6(&mut self) -> CTEIF_W<IFCRrs> {
286 CTEIF_W::new(self, 23)
287 }
288 #[inline(always)]
290 pub fn cteif7(&mut self) -> CTEIF_W<IFCRrs> {
291 CTEIF_W::new(self, 27)
292 }
293}
294pub struct IFCRrs;
300impl crate::RegisterSpec for IFCRrs {
301 type Ux = u32;
302}
303impl crate::Writable for IFCRrs {
305 type Safety = crate::Unsafe;
306}
307impl crate::Resettable for IFCRrs {}