#[doc = "Register `CKGR_PLLAR` reader"] pub type R = crate::R<CkgrPllarSpec>; #[doc = "Register `CKGR_PLLAR` writer"] pub type W = crate::W<CkgrPllarSpec>; #[doc = "Field `DIVA` reader - Divider"] pub type DivaR = crate::FieldReader; #[doc = "Field `DIVA` writer - Divider"] pub type DivaW<'a, REG> = crate::FieldWriter<'a, REG, 8>; #[doc = "Field `PLLACOUNT` reader - PLLA Counter"] pub type PllacountR = crate::FieldReader; #[doc = "Field `PLLACOUNT` writer - PLLA Counter"] pub type PllacountW<'a, REG> = crate::FieldWriter<'a, REG, 6>; #[doc = "Field `MULA` reader - PLLA Multiplier"] pub type MulaR = crate::FieldReader<u16>; #[doc = "Field `MULA` writer - PLLA Multiplier"] pub type MulaW<'a, REG> = crate::FieldWriter<'a, REG, 11, u16>; #[doc = "Field `ONE` reader - Must Be Set to 1"] pub type OneR = crate::BitReader; #[doc = "Field `ONE` writer - Must Be Set to 1"] pub type OneW<'a, REG> = crate::BitWriter<'a, REG>; impl R { #[doc = "Bits 0:7 - Divider"] #[inline(always)] pub fn diva(&self) -> DivaR { DivaR::new((self.bits & 0xff) as u8) } #[doc = "Bits 8:13 - PLLA Counter"] #[inline(always)] pub fn pllacount(&self) -> PllacountR { PllacountR::new(((self.bits >> 8) & 0x3f) as u8) } #[doc = "Bits 16:26 - PLLA Multiplier"] #[inline(always)] pub fn mula(&self) -> MulaR { MulaR::new(((self.bits >> 16) & 0x07ff) as u16) } #[doc = "Bit 29 - Must Be Set to 1"] #[inline(always)] pub fn one(&self) -> OneR { OneR::new(((self.bits >> 29) & 1) != 0) } } impl W { #[doc = "Bits 0:7 - Divider"] #[inline(always)] #[must_use] pub fn diva(&mut self) -> DivaW<CkgrPllarSpec> { DivaW::new(self, 0) } #[doc = "Bits 8:13 - PLLA Counter"] #[inline(always)] #[must_use] pub fn pllacount(&mut self) -> PllacountW<CkgrPllarSpec> { PllacountW::new(self, 8) } #[doc = "Bits 16:26 - PLLA Multiplier"] #[inline(always)] #[must_use] pub fn mula(&mut self) -> MulaW<CkgrPllarSpec> { MulaW::new(self, 16) } #[doc = "Bit 29 - Must Be Set to 1"] #[inline(always)] #[must_use] pub fn one(&mut self) -> OneW<CkgrPllarSpec> { OneW::new(self, 29) } } #[doc = "PLLA Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ckgr_pllar::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ckgr_pllar::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CkgrPllarSpec; impl crate::RegisterSpec for CkgrPllarSpec { type Ux = u32; } #[doc = "`read()` method returns [`ckgr_pllar::R`](R) reader structure"] impl crate::Readable for CkgrPllarSpec {} #[doc = "`write(|w| ..)` method takes [`ckgr_pllar::W`](W) writer structure"] impl crate::Writable for CkgrPllarSpec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets CKGR_PLLAR to value 0x3f00"] impl crate::Resettable for CkgrPllarSpec { const RESET_VALUE: u32 = 0x3f00; }