Skip to main content

efm32pg12_pac/cmu/
syncbusy.rs

1#[doc = "Reader of register SYNCBUSY"]
2pub type R = crate::R<u32, super::SYNCBUSY>;
3#[doc = "Reader of field `LFACLKEN0`"]
4pub type LFACLKEN0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `LFAPRESC0`"]
6pub type LFAPRESC0_R = crate::R<bool, bool>;
7#[doc = "Reader of field `LFBCLKEN0`"]
8pub type LFBCLKEN0_R = crate::R<bool, bool>;
9#[doc = "Reader of field `LFBPRESC0`"]
10pub type LFBPRESC0_R = crate::R<bool, bool>;
11#[doc = "Reader of field `LFECLKEN0`"]
12pub type LFECLKEN0_R = crate::R<bool, bool>;
13#[doc = "Reader of field `LFEPRESC0`"]
14pub type LFEPRESC0_R = crate::R<bool, bool>;
15#[doc = "Reader of field `HFRCOBSY`"]
16pub type HFRCOBSY_R = crate::R<bool, bool>;
17#[doc = "Reader of field `AUXHFRCOBSY`"]
18pub type AUXHFRCOBSY_R = crate::R<bool, bool>;
19#[doc = "Reader of field `LFRCOBSY`"]
20pub type LFRCOBSY_R = crate::R<bool, bool>;
21#[doc = "Reader of field `LFRCOVREFBSY`"]
22pub type LFRCOVREFBSY_R = crate::R<bool, bool>;
23#[doc = "Reader of field `HFXOBSY`"]
24pub type HFXOBSY_R = crate::R<bool, bool>;
25#[doc = "Reader of field `LFXOBSY`"]
26pub type LFXOBSY_R = crate::R<bool, bool>;
27impl R {
28    #[doc = "Bit 0 - Low Frequency a Clock Enable 0 Busy"]
29    #[inline(always)]
30    pub fn lfaclken0(&self) -> LFACLKEN0_R {
31        LFACLKEN0_R::new((self.bits & 0x01) != 0)
32    }
33    #[doc = "Bit 2 - Low Frequency a Prescaler 0 Busy"]
34    #[inline(always)]
35    pub fn lfapresc0(&self) -> LFAPRESC0_R {
36        LFAPRESC0_R::new(((self.bits >> 2) & 0x01) != 0)
37    }
38    #[doc = "Bit 4 - Low Frequency B Clock Enable 0 Busy"]
39    #[inline(always)]
40    pub fn lfbclken0(&self) -> LFBCLKEN0_R {
41        LFBCLKEN0_R::new(((self.bits >> 4) & 0x01) != 0)
42    }
43    #[doc = "Bit 6 - Low Frequency B Prescaler 0 Busy"]
44    #[inline(always)]
45    pub fn lfbpresc0(&self) -> LFBPRESC0_R {
46        LFBPRESC0_R::new(((self.bits >> 6) & 0x01) != 0)
47    }
48    #[doc = "Bit 16 - Low Frequency E Clock Enable 0 Busy"]
49    #[inline(always)]
50    pub fn lfeclken0(&self) -> LFECLKEN0_R {
51        LFECLKEN0_R::new(((self.bits >> 16) & 0x01) != 0)
52    }
53    #[doc = "Bit 18 - Low Frequency E Prescaler 0 Busy"]
54    #[inline(always)]
55    pub fn lfepresc0(&self) -> LFEPRESC0_R {
56        LFEPRESC0_R::new(((self.bits >> 18) & 0x01) != 0)
57    }
58    #[doc = "Bit 24 - HFRCO Busy"]
59    #[inline(always)]
60    pub fn hfrcobsy(&self) -> HFRCOBSY_R {
61        HFRCOBSY_R::new(((self.bits >> 24) & 0x01) != 0)
62    }
63    #[doc = "Bit 25 - AUXHFRCO Busy"]
64    #[inline(always)]
65    pub fn auxhfrcobsy(&self) -> AUXHFRCOBSY_R {
66        AUXHFRCOBSY_R::new(((self.bits >> 25) & 0x01) != 0)
67    }
68    #[doc = "Bit 26 - LFRCO Busy"]
69    #[inline(always)]
70    pub fn lfrcobsy(&self) -> LFRCOBSY_R {
71        LFRCOBSY_R::new(((self.bits >> 26) & 0x01) != 0)
72    }
73    #[doc = "Bit 27 - LFRCO VREF Busy"]
74    #[inline(always)]
75    pub fn lfrcovrefbsy(&self) -> LFRCOVREFBSY_R {
76        LFRCOVREFBSY_R::new(((self.bits >> 27) & 0x01) != 0)
77    }
78    #[doc = "Bit 28 - HFXO Busy"]
79    #[inline(always)]
80    pub fn hfxobsy(&self) -> HFXOBSY_R {
81        HFXOBSY_R::new(((self.bits >> 28) & 0x01) != 0)
82    }
83    #[doc = "Bit 29 - LFXO Busy"]
84    #[inline(always)]
85    pub fn lfxobsy(&self) -> LFXOBSY_R {
86        LFXOBSY_R::new(((self.bits >> 29) & 0x01) != 0)
87    }
88}