mimxrt685s_pac/usdhc0/
dll_status.rs

1#[doc = "Register `DLL_STATUS` reader"]
2pub type R = crate::R<DllStatusSpec>;
3#[doc = "Field `DLL_STS_SLV_LOCK` reader - DLL_STS_SLV_LOCK"]
4pub type DllStsSlvLockR = crate::BitReader;
5#[doc = "Field `DLL_STS_REF_LOCK` reader - DLL_STS_REF_LOCK"]
6pub type DllStsRefLockR = crate::BitReader;
7#[doc = "Field `DLL_STS_SLV_SEL` reader - DLL_STS_SLV_SEL"]
8pub type DllStsSlvSelR = crate::FieldReader;
9#[doc = "Field `DLL_STS_REF_SEL` reader - DLL_STS_REF_SEL"]
10pub type DllStsRefSelR = crate::FieldReader;
11impl R {
12    #[doc = "Bit 0 - DLL_STS_SLV_LOCK"]
13    #[inline(always)]
14    pub fn dll_sts_slv_lock(&self) -> DllStsSlvLockR {
15        DllStsSlvLockR::new((self.bits & 1) != 0)
16    }
17    #[doc = "Bit 1 - DLL_STS_REF_LOCK"]
18    #[inline(always)]
19    pub fn dll_sts_ref_lock(&self) -> DllStsRefLockR {
20        DllStsRefLockR::new(((self.bits >> 1) & 1) != 0)
21    }
22    #[doc = "Bits 2:8 - DLL_STS_SLV_SEL"]
23    #[inline(always)]
24    pub fn dll_sts_slv_sel(&self) -> DllStsSlvSelR {
25        DllStsSlvSelR::new(((self.bits >> 2) & 0x7f) as u8)
26    }
27    #[doc = "Bits 9:15 - DLL_STS_REF_SEL"]
28    #[inline(always)]
29    pub fn dll_sts_ref_sel(&self) -> DllStsRefSelR {
30        DllStsRefSelR::new(((self.bits >> 9) & 0x7f) as u8)
31    }
32}
33#[cfg(feature = "debug")]
34impl core::fmt::Debug for R {
35    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36        f.debug_struct("DLL_STATUS")
37            .field("dll_sts_slv_lock", &self.dll_sts_slv_lock())
38            .field("dll_sts_ref_lock", &self.dll_sts_ref_lock())
39            .field("dll_sts_slv_sel", &self.dll_sts_slv_sel())
40            .field("dll_sts_ref_sel", &self.dll_sts_ref_sel())
41            .finish()
42    }
43}
44#[doc = "DLL Status\n\nYou can [`read`](crate::Reg::read) this register and get [`dll_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
45pub struct DllStatusSpec;
46impl crate::RegisterSpec for DllStatusSpec {
47    type Ux = u32;
48}
49#[doc = "`read()` method returns [`dll_status::R`](R) reader structure"]
50impl crate::Readable for DllStatusSpec {}
51#[doc = "`reset()` method sets DLL_STATUS to value 0x0200"]
52impl crate::Resettable for DllStatusSpec {
53    const RESET_VALUE: u32 = 0x0200;
54}