stm32mp1/stm32mp157/ddrctrl/
init2.rs1pub type R = crate::R<INIT2rs>;
3pub type W = crate::W<INIT2rs>;
5pub type MIN_STABLE_CLOCK_X1_R = crate::FieldReader;
7pub type MIN_STABLE_CLOCK_X1_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9pub type IDLE_AFTER_RESET_X32_R = crate::FieldReader;
11pub type IDLE_AFTER_RESET_X32_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13impl R {
14 #[inline(always)]
16 pub fn min_stable_clock_x1(&self) -> MIN_STABLE_CLOCK_X1_R {
17 MIN_STABLE_CLOCK_X1_R::new((self.bits & 0x0f) as u8)
18 }
19 #[inline(always)]
21 pub fn idle_after_reset_x32(&self) -> IDLE_AFTER_RESET_X32_R {
22 IDLE_AFTER_RESET_X32_R::new(((self.bits >> 8) & 0xff) as u8)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("INIT2")
28 .field("min_stable_clock_x1", &self.min_stable_clock_x1())
29 .field("idle_after_reset_x32", &self.idle_after_reset_x32())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn min_stable_clock_x1(&mut self) -> MIN_STABLE_CLOCK_X1_W<INIT2rs> {
37 MIN_STABLE_CLOCK_X1_W::new(self, 0)
38 }
39 #[inline(always)]
41 pub fn idle_after_reset_x32(&mut self) -> IDLE_AFTER_RESET_X32_W<INIT2rs> {
42 IDLE_AFTER_RESET_X32_W::new(self, 8)
43 }
44}
45pub struct INIT2rs;
51impl crate::RegisterSpec for INIT2rs {
52 type Ux = u32;
53}
54impl crate::Readable for INIT2rs {}
56impl crate::Writable for INIT2rs {
58 type Safety = crate::Unsafe;
59}
60impl crate::Resettable for INIT2rs {
62 const RESET_VALUE: u32 = 0x0d05;
63}