stm32mp1/stm32mp157/ddrctrl/
init3.rs1pub type R = crate::R<INIT3rs>;
3pub type W = crate::W<INIT3rs>;
5pub type EMR_R = crate::FieldReader<u16>;
7pub type EMR_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9pub type MR_R = crate::FieldReader<u16>;
11pub type MR_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
13impl R {
14 #[inline(always)]
16 pub fn emr(&self) -> EMR_R {
17 EMR_R::new((self.bits & 0xffff) as u16)
18 }
19 #[inline(always)]
21 pub fn mr(&self) -> MR_R {
22 MR_R::new(((self.bits >> 16) & 0xffff) as u16)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("INIT3")
28 .field("emr", &self.emr())
29 .field("mr", &self.mr())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn emr(&mut self) -> EMR_W<INIT3rs> {
37 EMR_W::new(self, 0)
38 }
39 #[inline(always)]
41 pub fn mr(&mut self) -> MR_W<INIT3rs> {
42 MR_W::new(self, 16)
43 }
44}
45pub struct INIT3rs;
51impl crate::RegisterSpec for INIT3rs {
52 type Ux = u32;
53}
54impl crate::Readable for INIT3rs {}
56impl crate::Writable for INIT3rs {
58 type Safety = crate::Unsafe;
59}
60impl crate::Resettable for INIT3rs {
62 const RESET_VALUE: u32 = 0x0510;
63}