atsamd21j18a/sysctrl/
pclksr.rs

1#[doc = "Reader of register PCLKSR"]
2pub type R = crate::R<u32, super::PCLKSR>;
3#[doc = "Reader of field `XOSCRDY`"]
4pub type XOSCRDY_R = crate::R<bool, bool>;
5#[doc = "Reader of field `XOSC32KRDY`"]
6pub type XOSC32KRDY_R = crate::R<bool, bool>;
7#[doc = "Reader of field `OSC32KRDY`"]
8pub type OSC32KRDY_R = crate::R<bool, bool>;
9#[doc = "Reader of field `OSC8MRDY`"]
10pub type OSC8MRDY_R = crate::R<bool, bool>;
11#[doc = "Reader of field `DFLLRDY`"]
12pub type DFLLRDY_R = crate::R<bool, bool>;
13#[doc = "Reader of field `DFLLOOB`"]
14pub type DFLLOOB_R = crate::R<bool, bool>;
15#[doc = "Reader of field `DFLLLCKF`"]
16pub type DFLLLCKF_R = crate::R<bool, bool>;
17#[doc = "Reader of field `DFLLLCKC`"]
18pub type DFLLLCKC_R = crate::R<bool, bool>;
19#[doc = "Reader of field `DFLLRCS`"]
20pub type DFLLRCS_R = crate::R<bool, bool>;
21#[doc = "Reader of field `BOD33RDY`"]
22pub type BOD33RDY_R = crate::R<bool, bool>;
23#[doc = "Reader of field `BOD33DET`"]
24pub type BOD33DET_R = crate::R<bool, bool>;
25#[doc = "Reader of field `B33SRDY`"]
26pub type B33SRDY_R = crate::R<bool, bool>;
27#[doc = "Reader of field `DPLLLCKR`"]
28pub type DPLLLCKR_R = crate::R<bool, bool>;
29#[doc = "Reader of field `DPLLLCKF`"]
30pub type DPLLLCKF_R = crate::R<bool, bool>;
31#[doc = "Reader of field `DPLLLTO`"]
32pub type DPLLLTO_R = crate::R<bool, bool>;
33impl R {
34    #[doc = "Bit 0 - XOSC Ready"]
35    #[inline(always)]
36    pub fn xoscrdy(&self) -> XOSCRDY_R {
37        XOSCRDY_R::new((self.bits & 0x01) != 0)
38    }
39    #[doc = "Bit 1 - XOSC32K Ready"]
40    #[inline(always)]
41    pub fn xosc32krdy(&self) -> XOSC32KRDY_R {
42        XOSC32KRDY_R::new(((self.bits >> 1) & 0x01) != 0)
43    }
44    #[doc = "Bit 2 - OSC32K Ready"]
45    #[inline(always)]
46    pub fn osc32krdy(&self) -> OSC32KRDY_R {
47        OSC32KRDY_R::new(((self.bits >> 2) & 0x01) != 0)
48    }
49    #[doc = "Bit 3 - OSC8M Ready"]
50    #[inline(always)]
51    pub fn osc8mrdy(&self) -> OSC8MRDY_R {
52        OSC8MRDY_R::new(((self.bits >> 3) & 0x01) != 0)
53    }
54    #[doc = "Bit 4 - DFLL Ready"]
55    #[inline(always)]
56    pub fn dfllrdy(&self) -> DFLLRDY_R {
57        DFLLRDY_R::new(((self.bits >> 4) & 0x01) != 0)
58    }
59    #[doc = "Bit 5 - DFLL Out Of Bounds"]
60    #[inline(always)]
61    pub fn dflloob(&self) -> DFLLOOB_R {
62        DFLLOOB_R::new(((self.bits >> 5) & 0x01) != 0)
63    }
64    #[doc = "Bit 6 - DFLL Lock Fine"]
65    #[inline(always)]
66    pub fn dflllckf(&self) -> DFLLLCKF_R {
67        DFLLLCKF_R::new(((self.bits >> 6) & 0x01) != 0)
68    }
69    #[doc = "Bit 7 - DFLL Lock Coarse"]
70    #[inline(always)]
71    pub fn dflllckc(&self) -> DFLLLCKC_R {
72        DFLLLCKC_R::new(((self.bits >> 7) & 0x01) != 0)
73    }
74    #[doc = "Bit 8 - DFLL Reference Clock Stopped"]
75    #[inline(always)]
76    pub fn dfllrcs(&self) -> DFLLRCS_R {
77        DFLLRCS_R::new(((self.bits >> 8) & 0x01) != 0)
78    }
79    #[doc = "Bit 9 - BOD33 Ready"]
80    #[inline(always)]
81    pub fn bod33rdy(&self) -> BOD33RDY_R {
82        BOD33RDY_R::new(((self.bits >> 9) & 0x01) != 0)
83    }
84    #[doc = "Bit 10 - BOD33 Detection"]
85    #[inline(always)]
86    pub fn bod33det(&self) -> BOD33DET_R {
87        BOD33DET_R::new(((self.bits >> 10) & 0x01) != 0)
88    }
89    #[doc = "Bit 11 - BOD33 Synchronization Ready"]
90    #[inline(always)]
91    pub fn b33srdy(&self) -> B33SRDY_R {
92        B33SRDY_R::new(((self.bits >> 11) & 0x01) != 0)
93    }
94    #[doc = "Bit 15 - DPLL Lock Rise"]
95    #[inline(always)]
96    pub fn dplllckr(&self) -> DPLLLCKR_R {
97        DPLLLCKR_R::new(((self.bits >> 15) & 0x01) != 0)
98    }
99    #[doc = "Bit 16 - DPLL Lock Fall"]
100    #[inline(always)]
101    pub fn dplllckf(&self) -> DPLLLCKF_R {
102        DPLLLCKF_R::new(((self.bits >> 16) & 0x01) != 0)
103    }
104    #[doc = "Bit 17 - DPLL Lock Timeout"]
105    #[inline(always)]
106    pub fn dplllto(&self) -> DPLLLTO_R {
107        DPLLLTO_R::new(((self.bits >> 17) & 0x01) != 0)
108    }
109}