efm32hg310_pac/cmu/
if_.rs1#[doc = "Register `IF` reader"]
2pub struct R(crate::R<IF_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IF_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IF_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IF_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `HFRCORDY` reader - HFRCO Ready Interrupt Flag"]
17pub type HFRCORDY_R = crate::BitReader<bool>;
18#[doc = "Field `HFXORDY` reader - HFXO Ready Interrupt Flag"]
19pub type HFXORDY_R = crate::BitReader<bool>;
20#[doc = "Field `LFRCORDY` reader - LFRCO Ready Interrupt Flag"]
21pub type LFRCORDY_R = crate::BitReader<bool>;
22#[doc = "Field `LFXORDY` reader - LFXO Ready Interrupt Flag"]
23pub type LFXORDY_R = crate::BitReader<bool>;
24#[doc = "Field `AUXHFRCORDY` reader - AUXHFRCO Ready Interrupt Flag"]
25pub type AUXHFRCORDY_R = crate::BitReader<bool>;
26#[doc = "Field `CALRDY` reader - Calibration Ready Interrupt Flag"]
27pub type CALRDY_R = crate::BitReader<bool>;
28#[doc = "Field `CALOF` reader - Calibration Overflow Interrupt Flag"]
29pub type CALOF_R = crate::BitReader<bool>;
30#[doc = "Field `USHFRCORDY` reader - USHFRCO Ready Interrupt Flag"]
31pub type USHFRCORDY_R = crate::BitReader<bool>;
32#[doc = "Field `USBCHFOSCSEL` reader - USBC HF-oscillator Selected Interrupt Flag"]
33pub type USBCHFOSCSEL_R = crate::BitReader<bool>;
34impl R {
35 #[doc = "Bit 0 - HFRCO Ready Interrupt Flag"]
36 #[inline(always)]
37 pub fn hfrcordy(&self) -> HFRCORDY_R {
38 HFRCORDY_R::new((self.bits & 1) != 0)
39 }
40 #[doc = "Bit 1 - HFXO Ready Interrupt Flag"]
41 #[inline(always)]
42 pub fn hfxordy(&self) -> HFXORDY_R {
43 HFXORDY_R::new(((self.bits >> 1) & 1) != 0)
44 }
45 #[doc = "Bit 2 - LFRCO Ready Interrupt Flag"]
46 #[inline(always)]
47 pub fn lfrcordy(&self) -> LFRCORDY_R {
48 LFRCORDY_R::new(((self.bits >> 2) & 1) != 0)
49 }
50 #[doc = "Bit 3 - LFXO Ready Interrupt Flag"]
51 #[inline(always)]
52 pub fn lfxordy(&self) -> LFXORDY_R {
53 LFXORDY_R::new(((self.bits >> 3) & 1) != 0)
54 }
55 #[doc = "Bit 4 - AUXHFRCO Ready Interrupt Flag"]
56 #[inline(always)]
57 pub fn auxhfrcordy(&self) -> AUXHFRCORDY_R {
58 AUXHFRCORDY_R::new(((self.bits >> 4) & 1) != 0)
59 }
60 #[doc = "Bit 5 - Calibration Ready Interrupt Flag"]
61 #[inline(always)]
62 pub fn calrdy(&self) -> CALRDY_R {
63 CALRDY_R::new(((self.bits >> 5) & 1) != 0)
64 }
65 #[doc = "Bit 6 - Calibration Overflow Interrupt Flag"]
66 #[inline(always)]
67 pub fn calof(&self) -> CALOF_R {
68 CALOF_R::new(((self.bits >> 6) & 1) != 0)
69 }
70 #[doc = "Bit 8 - USHFRCO Ready Interrupt Flag"]
71 #[inline(always)]
72 pub fn ushfrcordy(&self) -> USHFRCORDY_R {
73 USHFRCORDY_R::new(((self.bits >> 8) & 1) != 0)
74 }
75 #[doc = "Bit 9 - USBC HF-oscillator Selected Interrupt Flag"]
76 #[inline(always)]
77 pub fn usbchfoscsel(&self) -> USBCHFOSCSEL_R {
78 USBCHFOSCSEL_R::new(((self.bits >> 9) & 1) != 0)
79 }
80}
81#[doc = "Interrupt Flag Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [if_](index.html) module"]
82pub struct IF_SPEC;
83impl crate::RegisterSpec for IF_SPEC {
84 type Ux = u32;
85}
86#[doc = "`read()` method returns [if_::R](R) reader structure"]
87impl crate::Readable for IF_SPEC {
88 type Reader = R;
89}
90#[doc = "`reset()` method sets IF to value 0x01"]
91impl crate::Resettable for IF_SPEC {
92 #[inline(always)]
93 fn reset_value() -> Self::Ux {
94 0x01
95 }
96}