efm32gg11b520_pac/timer4/
ifc.rs

1#[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 `OF` writer - Clear OF Interrupt Flag"]
23pub type OF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 0>;
24#[doc = "Field `UF` writer - Clear UF Interrupt Flag"]
25pub type UF_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 1>;
26#[doc = "Field `DIRCHG` writer - Clear DIRCHG Interrupt Flag"]
27pub type DIRCHG_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 2>;
28#[doc = "Field `CC0` writer - Clear CC0 Interrupt Flag"]
29pub type CC0_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 4>;
30#[doc = "Field `CC1` writer - Clear CC1 Interrupt Flag"]
31pub type CC1_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 5>;
32#[doc = "Field `CC2` writer - Clear CC2 Interrupt Flag"]
33pub type CC2_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 6>;
34#[doc = "Field `CC3` writer - Clear CC3 Interrupt Flag"]
35pub type CC3_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 7>;
36#[doc = "Field `ICBOF0` writer - Clear ICBOF0 Interrupt Flag"]
37pub type ICBOF0_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 8>;
38#[doc = "Field `ICBOF1` writer - Clear ICBOF1 Interrupt Flag"]
39pub type ICBOF1_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 9>;
40#[doc = "Field `ICBOF2` writer - Clear ICBOF2 Interrupt Flag"]
41pub type ICBOF2_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 10>;
42#[doc = "Field `ICBOF3` writer - Clear ICBOF3 Interrupt Flag"]
43pub type ICBOF3_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 11>;
44impl W {
45    #[doc = "Bit 0 - Clear OF Interrupt Flag"]
46    #[inline(always)]
47    pub fn of(&mut self) -> OF_W {
48        OF_W::new(self)
49    }
50    #[doc = "Bit 1 - Clear UF Interrupt Flag"]
51    #[inline(always)]
52    pub fn uf(&mut self) -> UF_W {
53        UF_W::new(self)
54    }
55    #[doc = "Bit 2 - Clear DIRCHG Interrupt Flag"]
56    #[inline(always)]
57    pub fn dirchg(&mut self) -> DIRCHG_W {
58        DIRCHG_W::new(self)
59    }
60    #[doc = "Bit 4 - Clear CC0 Interrupt Flag"]
61    #[inline(always)]
62    pub fn cc0(&mut self) -> CC0_W {
63        CC0_W::new(self)
64    }
65    #[doc = "Bit 5 - Clear CC1 Interrupt Flag"]
66    #[inline(always)]
67    pub fn cc1(&mut self) -> CC1_W {
68        CC1_W::new(self)
69    }
70    #[doc = "Bit 6 - Clear CC2 Interrupt Flag"]
71    #[inline(always)]
72    pub fn cc2(&mut self) -> CC2_W {
73        CC2_W::new(self)
74    }
75    #[doc = "Bit 7 - Clear CC3 Interrupt Flag"]
76    #[inline(always)]
77    pub fn cc3(&mut self) -> CC3_W {
78        CC3_W::new(self)
79    }
80    #[doc = "Bit 8 - Clear ICBOF0 Interrupt Flag"]
81    #[inline(always)]
82    pub fn icbof0(&mut self) -> ICBOF0_W {
83        ICBOF0_W::new(self)
84    }
85    #[doc = "Bit 9 - Clear ICBOF1 Interrupt Flag"]
86    #[inline(always)]
87    pub fn icbof1(&mut self) -> ICBOF1_W {
88        ICBOF1_W::new(self)
89    }
90    #[doc = "Bit 10 - Clear ICBOF2 Interrupt Flag"]
91    #[inline(always)]
92    pub fn icbof2(&mut self) -> ICBOF2_W {
93        ICBOF2_W::new(self)
94    }
95    #[doc = "Bit 11 - Clear ICBOF3 Interrupt Flag"]
96    #[inline(always)]
97    pub fn icbof3(&mut self) -> ICBOF3_W {
98        ICBOF3_W::new(self)
99    }
100    #[doc = "Writes raw bits to the register."]
101    #[inline(always)]
102    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
103        self.0.bits(bits);
104        self
105    }
106}
107#[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"]
108pub struct IFC_SPEC;
109impl crate::RegisterSpec for IFC_SPEC {
110    type Ux = u32;
111}
112#[doc = "`write(|w| ..)` method takes [ifc::W](W) writer structure"]
113impl crate::Writable for IFC_SPEC {
114    type Writer = W;
115}
116#[doc = "`reset()` method sets IFC to value 0"]
117impl crate::Resettable for IFC_SPEC {
118    #[inline(always)]
119    fn reset_value() -> Self::Ux {
120        0
121    }
122}