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