1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#[doc = "Register `PCLKSR` reader"]
pub struct R(crate::R<PCLKSR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PCLKSR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PCLKSR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PCLKSR_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `OSC0RDY` reader - OSC0 Ready"]
pub type OSC0RDY_R = crate::BitReader<bool>;
#[doc = "Field `DFLL0LOCKC` reader - DFLL0 Locked on Coarse Value"]
pub type DFLL0LOCKC_R = crate::BitReader<bool>;
#[doc = "Field `DFLL0LOCKF` reader - DFLL0 Locked on Fine Value"]
pub type DFLL0LOCKF_R = crate::BitReader<bool>;
#[doc = "Field `DFLL0RDY` reader - DFLL0 Synchronization Ready"]
pub type DFLL0RDY_R = crate::BitReader<bool>;
#[doc = "Field `DFLL0RCS` reader - DFLL0 Reference Clock Stopped"]
pub type DFLL0RCS_R = crate::BitReader<bool>;
#[doc = "Field `DFLL0OOB` reader - DFLL0 Track Out Of Bounds"]
pub type DFLL0OOB_R = crate::BitReader<bool>;
#[doc = "Field `PLL0LOCK` reader - PLL0 Locked on Accurate value"]
pub type PLL0LOCK_R = crate::BitReader<bool>;
#[doc = "Field `PLL0LOCKLOST` reader - PLL0 lock lost value"]
pub type PLL0LOCKLOST_R = crate::BitReader<bool>;
#[doc = "Field `RCFASTLOCK` reader - RCFAST Locked on Accurate value"]
pub type RCFASTLOCK_R = crate::BitReader<bool>;
#[doc = "Field `RCFASTLOCKLOST` reader - RCFAST lock lost value"]
pub type RCFASTLOCKLOST_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 0 - OSC0 Ready"]
    #[inline(always)]
    pub fn osc0rdy(&self) -> OSC0RDY_R {
        OSC0RDY_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - DFLL0 Locked on Coarse Value"]
    #[inline(always)]
    pub fn dfll0lockc(&self) -> DFLL0LOCKC_R {
        DFLL0LOCKC_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - DFLL0 Locked on Fine Value"]
    #[inline(always)]
    pub fn dfll0lockf(&self) -> DFLL0LOCKF_R {
        DFLL0LOCKF_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - DFLL0 Synchronization Ready"]
    #[inline(always)]
    pub fn dfll0rdy(&self) -> DFLL0RDY_R {
        DFLL0RDY_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - DFLL0 Reference Clock Stopped"]
    #[inline(always)]
    pub fn dfll0rcs(&self) -> DFLL0RCS_R {
        DFLL0RCS_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - DFLL0 Track Out Of Bounds"]
    #[inline(always)]
    pub fn dfll0oob(&self) -> DFLL0OOB_R {
        DFLL0OOB_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - PLL0 Locked on Accurate value"]
    #[inline(always)]
    pub fn pll0lock(&self) -> PLL0LOCK_R {
        PLL0LOCK_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - PLL0 lock lost value"]
    #[inline(always)]
    pub fn pll0locklost(&self) -> PLL0LOCKLOST_R {
        PLL0LOCKLOST_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 13 - RCFAST Locked on Accurate value"]
    #[inline(always)]
    pub fn rcfastlock(&self) -> RCFASTLOCK_R {
        RCFASTLOCK_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - RCFAST lock lost value"]
    #[inline(always)]
    pub fn rcfastlocklost(&self) -> RCFASTLOCKLOST_R {
        RCFASTLOCKLOST_R::new(((self.bits >> 14) & 1) != 0)
    }
}
#[doc = "Power and Clocks Status 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 [pclksr](index.html) module"]
pub struct PCLKSR_SPEC;
impl crate::RegisterSpec for PCLKSR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [pclksr::R](R) reader structure"]
impl crate::Readable for PCLKSR_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets PCLKSR to value 0"]
impl crate::Resettable for PCLKSR_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}