efm32pg12b500_pac/cmu/
ifs.rs1#[doc = "Register `IFS` writer"]
2pub struct W(crate::W<IFS_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<IFS_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<IFS_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<IFS_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `HFRCORDY` writer - Set HFRCORDY Interrupt Flag"]
23pub type HFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 0>;
24#[doc = "Field `HFXORDY` writer - Set HFXORDY Interrupt Flag"]
25pub type HFXORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 1>;
26#[doc = "Field `LFRCORDY` writer - Set LFRCORDY Interrupt Flag"]
27pub type LFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 2>;
28#[doc = "Field `LFXORDY` writer - Set LFXORDY Interrupt Flag"]
29pub type LFXORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 3>;
30#[doc = "Field `AUXHFRCORDY` writer - Set AUXHFRCORDY Interrupt Flag"]
31pub type AUXHFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 4>;
32#[doc = "Field `CALRDY` writer - Set CALRDY Interrupt Flag"]
33pub type CALRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 5>;
34#[doc = "Field `CALOF` writer - Set CALOF Interrupt Flag"]
35pub type CALOF_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 6>;
36#[doc = "Field `HFXODISERR` writer - Set HFXODISERR Interrupt Flag"]
37pub type HFXODISERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 8>;
38#[doc = "Field `HFXOAUTOSW` writer - Set HFXOAUTOSW Interrupt Flag"]
39pub type HFXOAUTOSW_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 9>;
40#[doc = "Field `HFXOPEAKDETERR` writer - Set HFXOPEAKDETERR Interrupt Flag"]
41pub type HFXOPEAKDETERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 10>;
42#[doc = "Field `HFXOPEAKDETRDY` writer - Set HFXOPEAKDETRDY Interrupt Flag"]
43pub type HFXOPEAKDETRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 11>;
44#[doc = "Field `HFXOSHUNTOPTRDY` writer - Set HFXOSHUNTOPTRDY Interrupt Flag"]
45pub type HFXOSHUNTOPTRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 12>;
46#[doc = "Field `HFRCODIS` writer - Set HFRCODIS Interrupt Flag"]
47pub type HFRCODIS_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 13>;
48#[doc = "Field `LFTIMEOUTERR` writer - Set LFTIMEOUTERR Interrupt Flag"]
49pub type LFTIMEOUTERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 14>;
50#[doc = "Field `DPLLRDY` writer - Set DPLLRDY Interrupt Flag"]
51pub type DPLLRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 15>;
52#[doc = "Field `DPLLLOCKFAILLOW` writer - Set DPLLLOCKFAILLOW Interrupt Flag"]
53pub type DPLLLOCKFAILLOW_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 16>;
54#[doc = "Field `DPLLLOCKFAILHIGH` writer - Set DPLLLOCKFAILHIGH Interrupt Flag"]
55pub type DPLLLOCKFAILHIGH_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 17>;
56#[doc = "Field `CMUERR` writer - Set CMUERR Interrupt Flag"]
57pub type CMUERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 31>;
58impl W {
59    #[doc = "Bit 0 - Set HFRCORDY Interrupt Flag"]
60    #[inline(always)]
61    pub fn hfrcordy(&mut self) -> HFRCORDY_W {
62        HFRCORDY_W::new(self)
63    }
64    #[doc = "Bit 1 - Set HFXORDY Interrupt Flag"]
65    #[inline(always)]
66    pub fn hfxordy(&mut self) -> HFXORDY_W {
67        HFXORDY_W::new(self)
68    }
69    #[doc = "Bit 2 - Set LFRCORDY Interrupt Flag"]
70    #[inline(always)]
71    pub fn lfrcordy(&mut self) -> LFRCORDY_W {
72        LFRCORDY_W::new(self)
73    }
74    #[doc = "Bit 3 - Set LFXORDY Interrupt Flag"]
75    #[inline(always)]
76    pub fn lfxordy(&mut self) -> LFXORDY_W {
77        LFXORDY_W::new(self)
78    }
79    #[doc = "Bit 4 - Set AUXHFRCORDY Interrupt Flag"]
80    #[inline(always)]
81    pub fn auxhfrcordy(&mut self) -> AUXHFRCORDY_W {
82        AUXHFRCORDY_W::new(self)
83    }
84    #[doc = "Bit 5 - Set CALRDY Interrupt Flag"]
85    #[inline(always)]
86    pub fn calrdy(&mut self) -> CALRDY_W {
87        CALRDY_W::new(self)
88    }
89    #[doc = "Bit 6 - Set CALOF Interrupt Flag"]
90    #[inline(always)]
91    pub fn calof(&mut self) -> CALOF_W {
92        CALOF_W::new(self)
93    }
94    #[doc = "Bit 8 - Set HFXODISERR Interrupt Flag"]
95    #[inline(always)]
96    pub fn hfxodiserr(&mut self) -> HFXODISERR_W {
97        HFXODISERR_W::new(self)
98    }
99    #[doc = "Bit 9 - Set HFXOAUTOSW Interrupt Flag"]
100    #[inline(always)]
101    pub fn hfxoautosw(&mut self) -> HFXOAUTOSW_W {
102        HFXOAUTOSW_W::new(self)
103    }
104    #[doc = "Bit 10 - Set HFXOPEAKDETERR Interrupt Flag"]
105    #[inline(always)]
106    pub fn hfxopeakdeterr(&mut self) -> HFXOPEAKDETERR_W {
107        HFXOPEAKDETERR_W::new(self)
108    }
109    #[doc = "Bit 11 - Set HFXOPEAKDETRDY Interrupt Flag"]
110    #[inline(always)]
111    pub fn hfxopeakdetrdy(&mut self) -> HFXOPEAKDETRDY_W {
112        HFXOPEAKDETRDY_W::new(self)
113    }
114    #[doc = "Bit 12 - Set HFXOSHUNTOPTRDY Interrupt Flag"]
115    #[inline(always)]
116    pub fn hfxoshuntoptrdy(&mut self) -> HFXOSHUNTOPTRDY_W {
117        HFXOSHUNTOPTRDY_W::new(self)
118    }
119    #[doc = "Bit 13 - Set HFRCODIS Interrupt Flag"]
120    #[inline(always)]
121    pub fn hfrcodis(&mut self) -> HFRCODIS_W {
122        HFRCODIS_W::new(self)
123    }
124    #[doc = "Bit 14 - Set LFTIMEOUTERR Interrupt Flag"]
125    #[inline(always)]
126    pub fn lftimeouterr(&mut self) -> LFTIMEOUTERR_W {
127        LFTIMEOUTERR_W::new(self)
128    }
129    #[doc = "Bit 15 - Set DPLLRDY Interrupt Flag"]
130    #[inline(always)]
131    pub fn dpllrdy(&mut self) -> DPLLRDY_W {
132        DPLLRDY_W::new(self)
133    }
134    #[doc = "Bit 16 - Set DPLLLOCKFAILLOW Interrupt Flag"]
135    #[inline(always)]
136    pub fn dplllockfaillow(&mut self) -> DPLLLOCKFAILLOW_W {
137        DPLLLOCKFAILLOW_W::new(self)
138    }
139    #[doc = "Bit 17 - Set DPLLLOCKFAILHIGH Interrupt Flag"]
140    #[inline(always)]
141    pub fn dplllockfailhigh(&mut self) -> DPLLLOCKFAILHIGH_W {
142        DPLLLOCKFAILHIGH_W::new(self)
143    }
144    #[doc = "Bit 31 - Set CMUERR Interrupt Flag"]
145    #[inline(always)]
146    pub fn cmuerr(&mut self) -> CMUERR_W {
147        CMUERR_W::new(self)
148    }
149    #[doc = "Writes raw bits to the register."]
150    #[inline(always)]
151    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
152        self.0.bits(bits);
153        self
154    }
155}
156#[doc = "Interrupt Flag Set 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 [ifs](index.html) module"]
157pub struct IFS_SPEC;
158impl crate::RegisterSpec for IFS_SPEC {
159    type Ux = u32;
160}
161#[doc = "`write(|w| ..)` method takes [ifs::W](W) writer structure"]
162impl crate::Writable for IFS_SPEC {
163    type Writer = W;
164}
165#[doc = "`reset()` method sets IFS to value 0"]
166impl crate::Resettable for IFS_SPEC {
167    #[inline(always)]
168    fn reset_value() -> Self::Ux {
169        0
170    }
171}