efm32pg22_pac/efm32pg22c200/devinfo/
modxocal.rs

1#[doc = "Register `MODXOCAL` reader"]
2pub struct R(crate::R<MODXOCAL_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<MODXOCAL_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<MODXOCAL_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<MODXOCAL_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `HFXOCTUNEXIANA` reader - No Description"]
17pub type HFXOCTUNEXIANA_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `HFXOCTUNEXOANA` reader - No Description"]
19pub type HFXOCTUNEXOANA_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `LFXOCAPTUNE` reader - No Description"]
21pub type LFXOCAPTUNE_R = crate::FieldReader<u8, u8>;
22impl R {
23    #[doc = "Bits 0:7 - No Description"]
24    #[inline(always)]
25    pub fn hfxoctunexiana(&self) -> HFXOCTUNEXIANA_R {
26        HFXOCTUNEXIANA_R::new((self.bits & 0xff) as u8)
27    }
28    #[doc = "Bits 8:15 - No Description"]
29    #[inline(always)]
30    pub fn hfxoctunexoana(&self) -> HFXOCTUNEXOANA_R {
31        HFXOCTUNEXOANA_R::new(((self.bits >> 8) & 0xff) as u8)
32    }
33    #[doc = "Bits 16:22 - No Description"]
34    #[inline(always)]
35    pub fn lfxocaptune(&self) -> LFXOCAPTUNE_R {
36        LFXOCAPTUNE_R::new(((self.bits >> 16) & 0x7f) as u8)
37    }
38}
39#[doc = "Module Crystal Oscillator Calibration\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 [modxocal](index.html) module"]
40pub struct MODXOCAL_SPEC;
41impl crate::RegisterSpec for MODXOCAL_SPEC {
42    type Ux = u32;
43}
44#[doc = "`read()` method returns [modxocal::R](R) reader structure"]
45impl crate::Readable for MODXOCAL_SPEC {
46    type Reader = R;
47}
48#[doc = "`reset()` method sets MODXOCAL to value 0x007f_ffff"]
49impl crate::Resettable for MODXOCAL_SPEC {
50    const RESET_VALUE: Self::Ux = 0x007f_ffff;
51}