atsamd11d/sysctrl/
dpllstatus.rs
1#[doc = "Register `DPLLSTATUS` reader"]
2pub type R = crate::R<DpllstatusSpec>;
3#[doc = "Field `LOCK` reader - DPLL Lock Status"]
4pub type LockR = crate::BitReader;
5#[doc = "Field `CLKRDY` reader - Output Clock Ready"]
6pub type ClkrdyR = crate::BitReader;
7#[doc = "Field `ENABLE` reader - DPLL Enable"]
8pub type EnableR = crate::BitReader;
9#[doc = "Field `DIV` reader - Divider Enable"]
10pub type DivR = crate::BitReader;
11impl R {
12 #[doc = "Bit 0 - DPLL Lock Status"]
13 #[inline(always)]
14 pub fn lock(&self) -> LockR {
15 LockR::new((self.bits & 1) != 0)
16 }
17 #[doc = "Bit 1 - Output Clock Ready"]
18 #[inline(always)]
19 pub fn clkrdy(&self) -> ClkrdyR {
20 ClkrdyR::new(((self.bits >> 1) & 1) != 0)
21 }
22 #[doc = "Bit 2 - DPLL Enable"]
23 #[inline(always)]
24 pub fn enable(&self) -> EnableR {
25 EnableR::new(((self.bits >> 2) & 1) != 0)
26 }
27 #[doc = "Bit 3 - Divider Enable"]
28 #[inline(always)]
29 pub fn div(&self) -> DivR {
30 DivR::new(((self.bits >> 3) & 1) != 0)
31 }
32}
33#[doc = "DPLL Status\n\nYou can [`read`](crate::Reg::read) this register and get [`dpllstatus::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
34pub struct DpllstatusSpec;
35impl crate::RegisterSpec for DpllstatusSpec {
36 type Ux = u8;
37}
38#[doc = "`read()` method returns [`dpllstatus::R`](R) reader structure"]
39impl crate::Readable for DpllstatusSpec {}
40#[doc = "`reset()` method sets DPLLSTATUS to value 0"]
41impl crate::Resettable for DpllstatusSpec {
42 const RESET_VALUE: u8 = 0;
43}