atsaml21e16b/oscctrl/
dpllsyncbusy.rs

1#[doc = "Register `DPLLSYNCBUSY` reader"]
2pub struct R(crate::R<DPLLSYNCBUSY_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<DPLLSYNCBUSY_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<DPLLSYNCBUSY_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<DPLLSYNCBUSY_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `ENABLE` reader - DPLL Enable Synchronization Status"]
17pub type ENABLE_R = crate::BitReader<bool>;
18#[doc = "Field `DPLLRATIO` reader - DPLL Ratio Synchronization Status"]
19pub type DPLLRATIO_R = crate::BitReader<bool>;
20#[doc = "Field `DPLLPRESC` reader - DPLL Prescaler Synchronization Status"]
21pub type DPLLPRESC_R = crate::BitReader<bool>;
22impl R {
23    #[doc = "Bit 1 - DPLL Enable Synchronization Status"]
24    #[inline(always)]
25    pub fn enable(&self) -> ENABLE_R {
26        ENABLE_R::new(((self.bits >> 1) & 1) != 0)
27    }
28    #[doc = "Bit 2 - DPLL Ratio Synchronization Status"]
29    #[inline(always)]
30    pub fn dpllratio(&self) -> DPLLRATIO_R {
31        DPLLRATIO_R::new(((self.bits >> 2) & 1) != 0)
32    }
33    #[doc = "Bit 3 - DPLL Prescaler Synchronization Status"]
34    #[inline(always)]
35    pub fn dpllpresc(&self) -> DPLLPRESC_R {
36        DPLLPRESC_R::new(((self.bits >> 3) & 1) != 0)
37    }
38}
39#[doc = "DPLL Synchronization Busy\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 [dpllsyncbusy](index.html) module"]
40pub struct DPLLSYNCBUSY_SPEC;
41impl crate::RegisterSpec for DPLLSYNCBUSY_SPEC {
42    type Ux = u8;
43}
44#[doc = "`read()` method returns [dpllsyncbusy::R](R) reader structure"]
45impl crate::Readable for DPLLSYNCBUSY_SPEC {
46    type Reader = R;
47}
48#[doc = "`reset()` method sets DPLLSYNCBUSY to value 0"]
49impl crate::Resettable for DPLLSYNCBUSY_SPEC {
50    const RESET_VALUE: Self::Ux = 0;
51}