1pub type W = crate::W<ICRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum PECF {
9 Clear = 1,
11}
12impl From<PECF> for bool {
13 #[inline(always)]
14 fn from(variant: PECF) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type PECF_W<'a, REG> = crate::BitWriter1C<'a, REG, PECF>;
20impl<'a, REG> PECF_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(PECF::Clear)
28 }
29}
30#[cfg_attr(feature = "defmt", derive(defmt::Format))]
34#[derive(Clone, Copy, Debug, PartialEq, Eq)]
35pub enum FECF {
36 Clear = 1,
38}
39impl From<FECF> for bool {
40 #[inline(always)]
41 fn from(variant: FECF) -> Self {
42 variant as u8 != 0
43 }
44}
45pub type FECF_W<'a, REG> = crate::BitWriter1C<'a, REG, FECF>;
47impl<'a, REG> FECF_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(FECF::Clear)
55 }
56}
57#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum NECF {
63 Clear = 1,
65}
66impl From<NECF> for bool {
67 #[inline(always)]
68 fn from(variant: NECF) -> Self {
69 variant as u8 != 0
70 }
71}
72pub type NECF_W<'a, REG> = crate::BitWriter1C<'a, REG, NECF>;
74impl<'a, REG> NECF_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(NECF::Clear)
82 }
83}
84#[cfg_attr(feature = "defmt", derive(defmt::Format))]
88#[derive(Clone, Copy, Debug, PartialEq, Eq)]
89pub enum ORECF {
90 Clear = 1,
92}
93impl From<ORECF> for bool {
94 #[inline(always)]
95 fn from(variant: ORECF) -> Self {
96 variant as u8 != 0
97 }
98}
99pub type ORECF_W<'a, REG> = crate::BitWriter1C<'a, REG, ORECF>;
101impl<'a, REG> ORECF_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(ORECF::Clear)
109 }
110}
111#[cfg_attr(feature = "defmt", derive(defmt::Format))]
115#[derive(Clone, Copy, Debug, PartialEq, Eq)]
116pub enum IDLECF {
117 Clear = 1,
119}
120impl From<IDLECF> for bool {
121 #[inline(always)]
122 fn from(variant: IDLECF) -> Self {
123 variant as u8 != 0
124 }
125}
126pub type IDLECF_W<'a, REG> = crate::BitWriter1C<'a, REG, IDLECF>;
128impl<'a, REG> IDLECF_W<'a, REG>
129where
130 REG: crate::Writable + crate::RegisterSpec,
131{
132 #[inline(always)]
134 pub fn clear(self) -> &'a mut crate::W<REG> {
135 self.variant(IDLECF::Clear)
136 }
137}
138#[cfg_attr(feature = "defmt", derive(defmt::Format))]
142#[derive(Clone, Copy, Debug, PartialEq, Eq)]
143pub enum TXFECF {
144 Clear = 1,
146}
147impl From<TXFECF> for bool {
148 #[inline(always)]
149 fn from(variant: TXFECF) -> Self {
150 variant as u8 != 0
151 }
152}
153pub type TXFECF_W<'a, REG> = crate::BitWriter1C<'a, REG, TXFECF>;
155impl<'a, REG> TXFECF_W<'a, REG>
156where
157 REG: crate::Writable + crate::RegisterSpec,
158{
159 #[inline(always)]
161 pub fn clear(self) -> &'a mut crate::W<REG> {
162 self.variant(TXFECF::Clear)
163 }
164}
165#[cfg_attr(feature = "defmt", derive(defmt::Format))]
169#[derive(Clone, Copy, Debug, PartialEq, Eq)]
170pub enum TCCF {
171 Clear = 1,
173}
174impl From<TCCF> for bool {
175 #[inline(always)]
176 fn from(variant: TCCF) -> Self {
177 variant as u8 != 0
178 }
179}
180pub type TCCF_W<'a, REG> = crate::BitWriter1C<'a, REG, TCCF>;
182impl<'a, REG> TCCF_W<'a, REG>
183where
184 REG: crate::Writable + crate::RegisterSpec,
185{
186 #[inline(always)]
188 pub fn clear(self) -> &'a mut crate::W<REG> {
189 self.variant(TCCF::Clear)
190 }
191}
192#[cfg_attr(feature = "defmt", derive(defmt::Format))]
196#[derive(Clone, Copy, Debug, PartialEq, Eq)]
197pub enum TCBGTCF {
198 Clear = 1,
200}
201impl From<TCBGTCF> for bool {
202 #[inline(always)]
203 fn from(variant: TCBGTCF) -> Self {
204 variant as u8 != 0
205 }
206}
207pub type TCBGTCF_W<'a, REG> = crate::BitWriter1C<'a, REG, TCBGTCF>;
209impl<'a, REG> TCBGTCF_W<'a, REG>
210where
211 REG: crate::Writable + crate::RegisterSpec,
212{
213 #[inline(always)]
215 pub fn clear(self) -> &'a mut crate::W<REG> {
216 self.variant(TCBGTCF::Clear)
217 }
218}
219#[cfg_attr(feature = "defmt", derive(defmt::Format))]
223#[derive(Clone, Copy, Debug, PartialEq, Eq)]
224pub enum LBDCF {
225 Clear = 1,
227}
228impl From<LBDCF> for bool {
229 #[inline(always)]
230 fn from(variant: LBDCF) -> Self {
231 variant as u8 != 0
232 }
233}
234pub type LBDCF_W<'a, REG> = crate::BitWriter1C<'a, REG, LBDCF>;
236impl<'a, REG> LBDCF_W<'a, REG>
237where
238 REG: crate::Writable + crate::RegisterSpec,
239{
240 #[inline(always)]
242 pub fn clear(self) -> &'a mut crate::W<REG> {
243 self.variant(LBDCF::Clear)
244 }
245}
246#[cfg_attr(feature = "defmt", derive(defmt::Format))]
250#[derive(Clone, Copy, Debug, PartialEq, Eq)]
251pub enum CTSCF {
252 Clear = 1,
254}
255impl From<CTSCF> for bool {
256 #[inline(always)]
257 fn from(variant: CTSCF) -> Self {
258 variant as u8 != 0
259 }
260}
261pub type CTSCF_W<'a, REG> = crate::BitWriter1C<'a, REG, CTSCF>;
263impl<'a, REG> CTSCF_W<'a, REG>
264where
265 REG: crate::Writable + crate::RegisterSpec,
266{
267 #[inline(always)]
269 pub fn clear(self) -> &'a mut crate::W<REG> {
270 self.variant(CTSCF::Clear)
271 }
272}
273#[cfg_attr(feature = "defmt", derive(defmt::Format))]
277#[derive(Clone, Copy, Debug, PartialEq, Eq)]
278pub enum RTOCF {
279 Clear = 1,
281}
282impl From<RTOCF> for bool {
283 #[inline(always)]
284 fn from(variant: RTOCF) -> Self {
285 variant as u8 != 0
286 }
287}
288pub type RTOCF_W<'a, REG> = crate::BitWriter1C<'a, REG, RTOCF>;
290impl<'a, REG> RTOCF_W<'a, REG>
291where
292 REG: crate::Writable + crate::RegisterSpec,
293{
294 #[inline(always)]
296 pub fn clear(self) -> &'a mut crate::W<REG> {
297 self.variant(RTOCF::Clear)
298 }
299}
300#[cfg_attr(feature = "defmt", derive(defmt::Format))]
304#[derive(Clone, Copy, Debug, PartialEq, Eq)]
305pub enum EOBCF {
306 Clear = 1,
308}
309impl From<EOBCF> for bool {
310 #[inline(always)]
311 fn from(variant: EOBCF) -> Self {
312 variant as u8 != 0
313 }
314}
315pub type EOBCF_W<'a, REG> = crate::BitWriter1C<'a, REG, EOBCF>;
317impl<'a, REG> EOBCF_W<'a, REG>
318where
319 REG: crate::Writable + crate::RegisterSpec,
320{
321 #[inline(always)]
323 pub fn clear(self) -> &'a mut crate::W<REG> {
324 self.variant(EOBCF::Clear)
325 }
326}
327#[cfg_attr(feature = "defmt", derive(defmt::Format))]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum UDRCF {
333 Clear = 1,
335}
336impl From<UDRCF> for bool {
337 #[inline(always)]
338 fn from(variant: UDRCF) -> Self {
339 variant as u8 != 0
340 }
341}
342pub type UDRCF_W<'a, REG> = crate::BitWriter1C<'a, REG, UDRCF>;
344impl<'a, REG> UDRCF_W<'a, REG>
345where
346 REG: crate::Writable + crate::RegisterSpec,
347{
348 #[inline(always)]
350 pub fn clear(self) -> &'a mut crate::W<REG> {
351 self.variant(UDRCF::Clear)
352 }
353}
354#[cfg_attr(feature = "defmt", derive(defmt::Format))]
358#[derive(Clone, Copy, Debug, PartialEq, Eq)]
359pub enum CMCF {
360 Clear = 1,
362}
363impl From<CMCF> for bool {
364 #[inline(always)]
365 fn from(variant: CMCF) -> Self {
366 variant as u8 != 0
367 }
368}
369pub type CMCF_W<'a, REG> = crate::BitWriter1C<'a, REG, CMCF>;
371impl<'a, REG> CMCF_W<'a, REG>
372where
373 REG: crate::Writable + crate::RegisterSpec,
374{
375 #[inline(always)]
377 pub fn clear(self) -> &'a mut crate::W<REG> {
378 self.variant(CMCF::Clear)
379 }
380}
381impl core::fmt::Debug for crate::generic::Reg<ICRrs> {
382 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
383 write!(f, "(not readable)")
384 }
385}
386impl W {
387 #[inline(always)]
389 pub fn pecf(&mut self) -> PECF_W<ICRrs> {
390 PECF_W::new(self, 0)
391 }
392 #[inline(always)]
394 pub fn fecf(&mut self) -> FECF_W<ICRrs> {
395 FECF_W::new(self, 1)
396 }
397 #[inline(always)]
399 pub fn necf(&mut self) -> NECF_W<ICRrs> {
400 NECF_W::new(self, 2)
401 }
402 #[inline(always)]
404 pub fn orecf(&mut self) -> ORECF_W<ICRrs> {
405 ORECF_W::new(self, 3)
406 }
407 #[inline(always)]
409 pub fn idlecf(&mut self) -> IDLECF_W<ICRrs> {
410 IDLECF_W::new(self, 4)
411 }
412 #[inline(always)]
414 pub fn txfecf(&mut self) -> TXFECF_W<ICRrs> {
415 TXFECF_W::new(self, 5)
416 }
417 #[inline(always)]
419 pub fn tccf(&mut self) -> TCCF_W<ICRrs> {
420 TCCF_W::new(self, 6)
421 }
422 #[inline(always)]
424 pub fn tcbgtcf(&mut self) -> TCBGTCF_W<ICRrs> {
425 TCBGTCF_W::new(self, 7)
426 }
427 #[inline(always)]
429 pub fn lbdcf(&mut self) -> LBDCF_W<ICRrs> {
430 LBDCF_W::new(self, 8)
431 }
432 #[inline(always)]
434 pub fn ctscf(&mut self) -> CTSCF_W<ICRrs> {
435 CTSCF_W::new(self, 9)
436 }
437 #[inline(always)]
439 pub fn rtocf(&mut self) -> RTOCF_W<ICRrs> {
440 RTOCF_W::new(self, 11)
441 }
442 #[inline(always)]
444 pub fn eobcf(&mut self) -> EOBCF_W<ICRrs> {
445 EOBCF_W::new(self, 12)
446 }
447 #[inline(always)]
449 pub fn udrcf(&mut self) -> UDRCF_W<ICRrs> {
450 UDRCF_W::new(self, 13)
451 }
452 #[inline(always)]
454 pub fn cmcf(&mut self) -> CMCF_W<ICRrs> {
455 CMCF_W::new(self, 17)
456 }
457}
458pub struct ICRrs;
464impl crate::RegisterSpec for ICRrs {
465 type Ux = u32;
466}
467impl crate::Writable for ICRrs {
469 type Safety = crate::Unsafe;
470 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x0002_3bff;
471}
472impl crate::Resettable for ICRrs {}