efm32gg_pac/efm32gg995/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 `USBCHFCLKSEL` reader - USBC HFCLK Selected Interrupt Flag"]
31pub type USBCHFCLKSEL_R = crate::BitReader<bool>;
32impl R {
33 #[doc = "Bit 0 - HFRCO Ready Interrupt Flag"]
34 #[inline(always)]
35 pub fn hfrcordy(&self) -> HFRCORDY_R {
36 HFRCORDY_R::new((self.bits & 1) != 0)
37 }
38 #[doc = "Bit 1 - HFXO Ready Interrupt Flag"]
39 #[inline(always)]
40 pub fn hfxordy(&self) -> HFXORDY_R {
41 HFXORDY_R::new(((self.bits >> 1) & 1) != 0)
42 }
43 #[doc = "Bit 2 - LFRCO Ready Interrupt Flag"]
44 #[inline(always)]
45 pub fn lfrcordy(&self) -> LFRCORDY_R {
46 LFRCORDY_R::new(((self.bits >> 2) & 1) != 0)
47 }
48 #[doc = "Bit 3 - LFXO Ready Interrupt Flag"]
49 #[inline(always)]
50 pub fn lfxordy(&self) -> LFXORDY_R {
51 LFXORDY_R::new(((self.bits >> 3) & 1) != 0)
52 }
53 #[doc = "Bit 4 - AUXHFRCO Ready Interrupt Flag"]
54 #[inline(always)]
55 pub fn auxhfrcordy(&self) -> AUXHFRCORDY_R {
56 AUXHFRCORDY_R::new(((self.bits >> 4) & 1) != 0)
57 }
58 #[doc = "Bit 5 - Calibration Ready Interrupt Flag"]
59 #[inline(always)]
60 pub fn calrdy(&self) -> CALRDY_R {
61 CALRDY_R::new(((self.bits >> 5) & 1) != 0)
62 }
63 #[doc = "Bit 6 - Calibration Overflow Interrupt Flag"]
64 #[inline(always)]
65 pub fn calof(&self) -> CALOF_R {
66 CALOF_R::new(((self.bits >> 6) & 1) != 0)
67 }
68 #[doc = "Bit 7 - USBC HFCLK Selected Interrupt Flag"]
69 #[inline(always)]
70 pub fn usbchfclksel(&self) -> USBCHFCLKSEL_R {
71 USBCHFCLKSEL_R::new(((self.bits >> 7) & 1) != 0)
72 }
73}
74#[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"]
75pub struct IF_SPEC;
76impl crate::RegisterSpec for IF_SPEC {
77 type Ux = u32;
78}
79#[doc = "`read()` method returns [if_::R](R) reader structure"]
80impl crate::Readable for IF_SPEC {
81 type Reader = R;
82}
83#[doc = "`reset()` method sets IF to value 0x01"]
84impl crate::Resettable for IF_SPEC {
85 const RESET_VALUE: Self::Ux = 0x01;
86}