stm32mp1/stm32mp157/ddrphyc/
dx2dqstr.rs1pub type R = crate::R<DX2DQSTRrs>;
3pub type W = crate::W<DX2DQSTRrs>;
5pub type R0DGSL_R = crate::FieldReader;
7pub type R0DGSL_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
9pub type R0DGPS_R = crate::FieldReader;
11pub type R0DGPS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
13pub type DQSDLY_R = crate::FieldReader;
15pub type DQSDLY_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
17pub type DQSNDLY_R = crate::FieldReader;
19pub type DQSNDLY_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
21pub type DMDLY_R = crate::FieldReader;
23pub type DMDLY_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
25impl R {
26 #[inline(always)]
28 pub fn r0dgsl(&self) -> R0DGSL_R {
29 R0DGSL_R::new((self.bits & 7) as u8)
30 }
31 #[inline(always)]
33 pub fn r0dgps(&self) -> R0DGPS_R {
34 R0DGPS_R::new(((self.bits >> 12) & 3) as u8)
35 }
36 #[inline(always)]
38 pub fn dqsdly(&self) -> DQSDLY_R {
39 DQSDLY_R::new(((self.bits >> 20) & 7) as u8)
40 }
41 #[inline(always)]
43 pub fn dqsndly(&self) -> DQSNDLY_R {
44 DQSNDLY_R::new(((self.bits >> 23) & 7) as u8)
45 }
46 #[inline(always)]
48 pub fn dmdly(&self) -> DMDLY_R {
49 DMDLY_R::new(((self.bits >> 26) & 0x0f) as u8)
50 }
51}
52impl core::fmt::Debug for R {
53 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
54 f.debug_struct("DX2DQSTR")
55 .field("r0dgsl", &self.r0dgsl())
56 .field("r0dgps", &self.r0dgps())
57 .field("dqsdly", &self.dqsdly())
58 .field("dqsndly", &self.dqsndly())
59 .field("dmdly", &self.dmdly())
60 .finish()
61 }
62}
63impl W {
64 #[inline(always)]
66 pub fn r0dgsl(&mut self) -> R0DGSL_W<DX2DQSTRrs> {
67 R0DGSL_W::new(self, 0)
68 }
69 #[inline(always)]
71 pub fn r0dgps(&mut self) -> R0DGPS_W<DX2DQSTRrs> {
72 R0DGPS_W::new(self, 12)
73 }
74 #[inline(always)]
76 pub fn dqsdly(&mut self) -> DQSDLY_W<DX2DQSTRrs> {
77 DQSDLY_W::new(self, 20)
78 }
79 #[inline(always)]
81 pub fn dqsndly(&mut self) -> DQSNDLY_W<DX2DQSTRrs> {
82 DQSNDLY_W::new(self, 23)
83 }
84 #[inline(always)]
86 pub fn dmdly(&mut self) -> DMDLY_W<DX2DQSTRrs> {
87 DMDLY_W::new(self, 26)
88 }
89}
90pub struct DX2DQSTRrs;
96impl crate::RegisterSpec for DX2DQSTRrs {
97 type Ux = u32;
98}
99impl crate::Readable for DX2DQSTRrs {}
101impl crate::Writable for DX2DQSTRrs {
103 type Safety = crate::Unsafe;
104}
105impl crate::Resettable for DX2DQSTRrs {
107 const RESET_VALUE: u32 = 0x3db0_2000;
108}