#[doc = "Register `clk_u0_vin_sys_clk` reader"] pub type R = crate::R; #[doc = "Register `clk_u0_vin_sys_clk` writer"] pub type W = crate::W; #[doc = "Field `clk_divcfg` reader - Clock divider coefficient: Max=8, Default=2, Min=1, Typical=2"] pub type ClkDivcfgR = crate::FieldReader; #[doc = "Field `clk_divcfg` writer - Clock divider coefficient: Max=8, Default=2, Min=1, Typical=2"] pub type ClkDivcfgW<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>; impl R { #[doc = "Bits 0:23 - Clock divider coefficient: Max=8, Default=2, Min=1, Typical=2"] #[inline(always)] pub fn clk_divcfg(&self) -> ClkDivcfgR { ClkDivcfgR::new(self.bits & 0x00ff_ffff) } } impl W { #[doc = "Bits 0:23 - Clock divider coefficient: Max=8, Default=2, Min=1, Typical=2"] #[inline(always)] #[must_use] pub fn clk_divcfg(&mut self) -> ClkDivcfgW { ClkDivcfgW::new(self, 0) } } #[doc = "Clock U0 Video In SYSCLK\n\nYou can [`read`](crate::Reg::read) this register and get [`clk_u0_vin_sys_clk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clk_u0_vin_sys_clk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ClkU0VinSysClkSpec; impl crate::RegisterSpec for ClkU0VinSysClkSpec { type Ux = u32; } #[doc = "`read()` method returns [`clk_u0_vin_sys_clk::R`](R) reader structure"] impl crate::Readable for ClkU0VinSysClkSpec {} #[doc = "`write(|w| ..)` method takes [`clk_u0_vin_sys_clk::W`](W) writer structure"] impl crate::Writable for ClkU0VinSysClkSpec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets clk_u0_vin_sys_clk to value 0x02"] impl crate::Resettable for ClkU0VinSysClkSpec { const RESET_VALUE: u32 = 0x02; }