efm32wg230_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>;
24impl R {
25    #[doc = "Bit 0 - Low Frequency A Clock Enable 0 Busy"]
26    #[inline(always)]
27    pub fn lfaclken0(&self) -> LFACLKEN0_R {
28        LFACLKEN0_R::new((self.bits & 1) != 0)
29    }
30    #[doc = "Bit 2 - Low Frequency A Prescaler 0 Busy"]
31    #[inline(always)]
32    pub fn lfapresc0(&self) -> LFAPRESC0_R {
33        LFAPRESC0_R::new(((self.bits >> 2) & 1) != 0)
34    }
35    #[doc = "Bit 4 - Low Frequency B Clock Enable 0 Busy"]
36    #[inline(always)]
37    pub fn lfbclken0(&self) -> LFBCLKEN0_R {
38        LFBCLKEN0_R::new(((self.bits >> 4) & 1) != 0)
39    }
40    #[doc = "Bit 6 - Low Frequency B Prescaler 0 Busy"]
41    #[inline(always)]
42    pub fn lfbpresc0(&self) -> LFBPRESC0_R {
43        LFBPRESC0_R::new(((self.bits >> 6) & 1) != 0)
44    }
45}
46#[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"]
47pub struct SYNCBUSY_SPEC;
48impl crate::RegisterSpec for SYNCBUSY_SPEC {
49    type Ux = u32;
50}
51#[doc = "`read()` method returns [syncbusy::R](R) reader structure"]
52impl crate::Readable for SYNCBUSY_SPEC {
53    type Reader = R;
54}
55#[doc = "`reset()` method sets SYNCBUSY to value 0"]
56impl crate::Resettable for SYNCBUSY_SPEC {
57    #[inline(always)]
58    fn reset_value() -> Self::Ux {
59        0
60    }
61}