efm32tg11b_pac/efm32tg11b120/cmu/
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 `HFRCORDY` writer - Clear HFRCORDY Interrupt Flag"]
23pub type HFRCORDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
24#[doc = "Field `HFXORDY` writer - Clear HFXORDY Interrupt Flag"]
25pub type HFXORDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
26#[doc = "Field `LFRCORDY` writer - Clear LFRCORDY Interrupt Flag"]
27pub type LFRCORDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
28#[doc = "Field `LFXORDY` writer - Clear LFXORDY Interrupt Flag"]
29pub type LFXORDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
30#[doc = "Field `AUXHFRCORDY` writer - Clear AUXHFRCORDY Interrupt Flag"]
31pub type AUXHFRCORDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
32#[doc = "Field `CALRDY` writer - Clear CALRDY Interrupt Flag"]
33pub type CALRDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
34#[doc = "Field `CALOF` writer - Clear CALOF Interrupt Flag"]
35pub type CALOF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
36#[doc = "Field `HFXODISERR` writer - Clear HFXODISERR Interrupt Flag"]
37pub type HFXODISERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
38#[doc = "Field `HFXOAUTOSW` writer - Clear HFXOAUTOSW Interrupt Flag"]
39pub type HFXOAUTOSW_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
40#[doc = "Field `HFXOPEAKDETRDY` writer - Clear HFXOPEAKDETRDY Interrupt Flag"]
41pub type HFXOPEAKDETRDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
42#[doc = "Field `HFRCODIS` writer - Clear HFRCODIS Interrupt Flag"]
43pub type HFRCODIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
44#[doc = "Field `LFTIMEOUTERR` writer - Clear LFTIMEOUTERR Interrupt Flag"]
45pub type LFTIMEOUTERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
46#[doc = "Field `DPLLRDY` writer - Clear DPLLRDY Interrupt Flag"]
47pub type DPLLRDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
48#[doc = "Field `DPLLLOCKFAILLOW` writer - Clear DPLLLOCKFAILLOW Interrupt Flag"]
49pub type DPLLLOCKFAILLOW_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
50#[doc = "Field `DPLLLOCKFAILHIGH` writer - Clear DPLLLOCKFAILHIGH Interrupt Flag"]
51pub type DPLLLOCKFAILHIGH_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
52#[doc = "Field `LFXOEDGE` writer - Clear LFXOEDGE Interrupt Flag"]
53pub type LFXOEDGE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
54#[doc = "Field `LFRCOEDGE` writer - Clear LFRCOEDGE Interrupt Flag"]
55pub type LFRCOEDGE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
56#[doc = "Field `ULFRCOEDGE` writer - Clear ULFRCOEDGE Interrupt Flag"]
57pub type ULFRCOEDGE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
58#[doc = "Field `CMUERR` writer - Clear CMUERR Interrupt Flag"]
59pub type CMUERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
60impl W {
61    #[doc = "Bit 0 - Clear HFRCORDY Interrupt Flag"]
62    #[inline(always)]
63    #[must_use]
64    pub fn hfrcordy(&mut self) -> HFRCORDY_W<0> {
65        HFRCORDY_W::new(self)
66    }
67    #[doc = "Bit 1 - Clear HFXORDY Interrupt Flag"]
68    #[inline(always)]
69    #[must_use]
70    pub fn hfxordy(&mut self) -> HFXORDY_W<1> {
71        HFXORDY_W::new(self)
72    }
73    #[doc = "Bit 2 - Clear LFRCORDY Interrupt Flag"]
74    #[inline(always)]
75    #[must_use]
76    pub fn lfrcordy(&mut self) -> LFRCORDY_W<2> {
77        LFRCORDY_W::new(self)
78    }
79    #[doc = "Bit 3 - Clear LFXORDY Interrupt Flag"]
80    #[inline(always)]
81    #[must_use]
82    pub fn lfxordy(&mut self) -> LFXORDY_W<3> {
83        LFXORDY_W::new(self)
84    }
85    #[doc = "Bit 4 - Clear AUXHFRCORDY Interrupt Flag"]
86    #[inline(always)]
87    #[must_use]
88    pub fn auxhfrcordy(&mut self) -> AUXHFRCORDY_W<4> {
89        AUXHFRCORDY_W::new(self)
90    }
91    #[doc = "Bit 5 - Clear CALRDY Interrupt Flag"]
92    #[inline(always)]
93    #[must_use]
94    pub fn calrdy(&mut self) -> CALRDY_W<5> {
95        CALRDY_W::new(self)
96    }
97    #[doc = "Bit 6 - Clear CALOF Interrupt Flag"]
98    #[inline(always)]
99    #[must_use]
100    pub fn calof(&mut self) -> CALOF_W<6> {
101        CALOF_W::new(self)
102    }
103    #[doc = "Bit 8 - Clear HFXODISERR Interrupt Flag"]
104    #[inline(always)]
105    #[must_use]
106    pub fn hfxodiserr(&mut self) -> HFXODISERR_W<8> {
107        HFXODISERR_W::new(self)
108    }
109    #[doc = "Bit 9 - Clear HFXOAUTOSW Interrupt Flag"]
110    #[inline(always)]
111    #[must_use]
112    pub fn hfxoautosw(&mut self) -> HFXOAUTOSW_W<9> {
113        HFXOAUTOSW_W::new(self)
114    }
115    #[doc = "Bit 11 - Clear HFXOPEAKDETRDY Interrupt Flag"]
116    #[inline(always)]
117    #[must_use]
118    pub fn hfxopeakdetrdy(&mut self) -> HFXOPEAKDETRDY_W<11> {
119        HFXOPEAKDETRDY_W::new(self)
120    }
121    #[doc = "Bit 13 - Clear HFRCODIS Interrupt Flag"]
122    #[inline(always)]
123    #[must_use]
124    pub fn hfrcodis(&mut self) -> HFRCODIS_W<13> {
125        HFRCODIS_W::new(self)
126    }
127    #[doc = "Bit 14 - Clear LFTIMEOUTERR Interrupt Flag"]
128    #[inline(always)]
129    #[must_use]
130    pub fn lftimeouterr(&mut self) -> LFTIMEOUTERR_W<14> {
131        LFTIMEOUTERR_W::new(self)
132    }
133    #[doc = "Bit 15 - Clear DPLLRDY Interrupt Flag"]
134    #[inline(always)]
135    #[must_use]
136    pub fn dpllrdy(&mut self) -> DPLLRDY_W<15> {
137        DPLLRDY_W::new(self)
138    }
139    #[doc = "Bit 16 - Clear DPLLLOCKFAILLOW Interrupt Flag"]
140    #[inline(always)]
141    #[must_use]
142    pub fn dplllockfaillow(&mut self) -> DPLLLOCKFAILLOW_W<16> {
143        DPLLLOCKFAILLOW_W::new(self)
144    }
145    #[doc = "Bit 17 - Clear DPLLLOCKFAILHIGH Interrupt Flag"]
146    #[inline(always)]
147    #[must_use]
148    pub fn dplllockfailhigh(&mut self) -> DPLLLOCKFAILHIGH_W<17> {
149        DPLLLOCKFAILHIGH_W::new(self)
150    }
151    #[doc = "Bit 27 - Clear LFXOEDGE Interrupt Flag"]
152    #[inline(always)]
153    #[must_use]
154    pub fn lfxoedge(&mut self) -> LFXOEDGE_W<27> {
155        LFXOEDGE_W::new(self)
156    }
157    #[doc = "Bit 28 - Clear LFRCOEDGE Interrupt Flag"]
158    #[inline(always)]
159    #[must_use]
160    pub fn lfrcoedge(&mut self) -> LFRCOEDGE_W<28> {
161        LFRCOEDGE_W::new(self)
162    }
163    #[doc = "Bit 29 - Clear ULFRCOEDGE Interrupt Flag"]
164    #[inline(always)]
165    #[must_use]
166    pub fn ulfrcoedge(&mut self) -> ULFRCOEDGE_W<29> {
167        ULFRCOEDGE_W::new(self)
168    }
169    #[doc = "Bit 31 - Clear CMUERR Interrupt Flag"]
170    #[inline(always)]
171    #[must_use]
172    pub fn cmuerr(&mut self) -> CMUERR_W<31> {
173        CMUERR_W::new(self)
174    }
175    #[doc = "Writes raw bits to the register."]
176    #[inline(always)]
177    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
178        self.0.bits(bits);
179        self
180    }
181}
182#[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"]
183pub struct IFC_SPEC;
184impl crate::RegisterSpec for IFC_SPEC {
185    type Ux = u32;
186}
187#[doc = "`write(|w| ..)` method takes [ifc::W](W) writer structure"]
188impl crate::Writable for IFC_SPEC {
189    type Writer = W;
190    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
191    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
192}
193#[doc = "`reset()` method sets IFC to value 0"]
194impl crate::Resettable for IFC_SPEC {
195    const RESET_VALUE: Self::Ux = 0;
196}