efm32pg1b200_pac/cmu/
syncbusy.rs

1#[doc = "Register `SYNCBUSY` reader"]
2pub struct R(crate::R<SYNCBUSY_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SYNCBUSY_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SYNCBUSY_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SYNCBUSY_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `LFACLKEN0` reader - Low Frequency a Clock Enable 0 Busy"]
17pub type LFACLKEN0_R = crate::BitReader<bool>;
18#[doc = "Field `LFAPRESC0` reader - Low Frequency a Prescaler 0 Busy"]
19pub type LFAPRESC0_R = crate::BitReader<bool>;
20#[doc = "Field `LFBCLKEN0` reader - Low Frequency B Clock Enable 0 Busy"]
21pub type LFBCLKEN0_R = crate::BitReader<bool>;
22#[doc = "Field `LFBPRESC0` reader - Low Frequency B Prescaler 0 Busy"]
23pub type LFBPRESC0_R = crate::BitReader<bool>;
24#[doc = "Field `LFECLKEN0` reader - Low Frequency E Clock Enable 0 Busy"]
25pub type LFECLKEN0_R = crate::BitReader<bool>;
26#[doc = "Field `LFEPRESC0` reader - Low Frequency E Prescaler 0 Busy"]
27pub type LFEPRESC0_R = crate::BitReader<bool>;
28#[doc = "Field `HFRCOBSY` reader - HFRCO Busy"]
29pub type HFRCOBSY_R = crate::BitReader<bool>;
30#[doc = "Field `AUXHFRCOBSY` reader - AUXHFRCO Busy"]
31pub type AUXHFRCOBSY_R = crate::BitReader<bool>;
32#[doc = "Field `LFRCOBSY` reader - LFRCO Busy"]
33pub type LFRCOBSY_R = crate::BitReader<bool>;
34#[doc = "Field `LFRCOVREFBSY` reader - LFRCO VREF Busy"]
35pub type LFRCOVREFBSY_R = crate::BitReader<bool>;
36#[doc = "Field `HFXOBSY` reader - HFXO Busy"]
37pub type HFXOBSY_R = crate::BitReader<bool>;
38#[doc = "Field `LFXOBSY` reader - LFXO Busy"]
39pub type LFXOBSY_R = crate::BitReader<bool>;
40impl R {
41    #[doc = "Bit 0 - Low Frequency a Clock Enable 0 Busy"]
42    #[inline(always)]
43    pub fn lfaclken0(&self) -> LFACLKEN0_R {
44        LFACLKEN0_R::new((self.bits & 1) != 0)
45    }
46    #[doc = "Bit 2 - Low Frequency a Prescaler 0 Busy"]
47    #[inline(always)]
48    pub fn lfapresc0(&self) -> LFAPRESC0_R {
49        LFAPRESC0_R::new(((self.bits >> 2) & 1) != 0)
50    }
51    #[doc = "Bit 4 - Low Frequency B Clock Enable 0 Busy"]
52    #[inline(always)]
53    pub fn lfbclken0(&self) -> LFBCLKEN0_R {
54        LFBCLKEN0_R::new(((self.bits >> 4) & 1) != 0)
55    }
56    #[doc = "Bit 6 - Low Frequency B Prescaler 0 Busy"]
57    #[inline(always)]
58    pub fn lfbpresc0(&self) -> LFBPRESC0_R {
59        LFBPRESC0_R::new(((self.bits >> 6) & 1) != 0)
60    }
61    #[doc = "Bit 16 - Low Frequency E Clock Enable 0 Busy"]
62    #[inline(always)]
63    pub fn lfeclken0(&self) -> LFECLKEN0_R {
64        LFECLKEN0_R::new(((self.bits >> 16) & 1) != 0)
65    }
66    #[doc = "Bit 18 - Low Frequency E Prescaler 0 Busy"]
67    #[inline(always)]
68    pub fn lfepresc0(&self) -> LFEPRESC0_R {
69        LFEPRESC0_R::new(((self.bits >> 18) & 1) != 0)
70    }
71    #[doc = "Bit 24 - HFRCO Busy"]
72    #[inline(always)]
73    pub fn hfrcobsy(&self) -> HFRCOBSY_R {
74        HFRCOBSY_R::new(((self.bits >> 24) & 1) != 0)
75    }
76    #[doc = "Bit 25 - AUXHFRCO Busy"]
77    #[inline(always)]
78    pub fn auxhfrcobsy(&self) -> AUXHFRCOBSY_R {
79        AUXHFRCOBSY_R::new(((self.bits >> 25) & 1) != 0)
80    }
81    #[doc = "Bit 26 - LFRCO Busy"]
82    #[inline(always)]
83    pub fn lfrcobsy(&self) -> LFRCOBSY_R {
84        LFRCOBSY_R::new(((self.bits >> 26) & 1) != 0)
85    }
86    #[doc = "Bit 27 - LFRCO VREF Busy"]
87    #[inline(always)]
88    pub fn lfrcovrefbsy(&self) -> LFRCOVREFBSY_R {
89        LFRCOVREFBSY_R::new(((self.bits >> 27) & 1) != 0)
90    }
91    #[doc = "Bit 28 - HFXO Busy"]
92    #[inline(always)]
93    pub fn hfxobsy(&self) -> HFXOBSY_R {
94        HFXOBSY_R::new(((self.bits >> 28) & 1) != 0)
95    }
96    #[doc = "Bit 29 - LFXO Busy"]
97    #[inline(always)]
98    pub fn lfxobsy(&self) -> LFXOBSY_R {
99        LFXOBSY_R::new(((self.bits >> 29) & 1) != 0)
100    }
101}
102#[doc = "Synchronization Busy 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 [syncbusy](index.html) module"]
103pub struct SYNCBUSY_SPEC;
104impl crate::RegisterSpec for SYNCBUSY_SPEC {
105    type Ux = u32;
106}
107#[doc = "`read()` method returns [syncbusy::R](R) reader structure"]
108impl crate::Readable for SYNCBUSY_SPEC {
109    type Reader = R;
110}
111#[doc = "`reset()` method sets SYNCBUSY to value 0"]
112impl crate::Resettable for SYNCBUSY_SPEC {
113    #[inline(always)]
114    fn reset_value() -> Self::Ux {
115        0
116    }
117}