stm32mp1/stm32mp157/ddrphyc/
ddr3_mr1.rs1pub type R = crate::R<DDR3_MR1rs>;
3pub type W = crate::W<DDR3_MR1rs>;
5pub type DE_R = crate::BitReader;
7pub type DE_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type DIC0_R = crate::BitReader;
11pub type DIC0_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type RTT0_R = crate::BitReader;
15pub type RTT0_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type AL_R = crate::FieldReader;
19pub type AL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
21pub type DIC1_R = crate::BitReader;
23pub type DIC1_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type RTT1_R = crate::BitReader;
27pub type RTT1_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type LEVEL_R = crate::BitReader;
31pub type LEVEL_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type RTT2_R = crate::BitReader;
35pub type RTT2_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type TDQS_R = crate::BitReader;
39pub type TDQS_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type QOFF_R = crate::BitReader;
43pub type QOFF_W<'a, REG> = crate::BitWriter<'a, REG>;
45impl R {
46 #[inline(always)]
48 pub fn de(&self) -> DE_R {
49 DE_R::new((self.bits & 1) != 0)
50 }
51 #[inline(always)]
53 pub fn dic0(&self) -> DIC0_R {
54 DIC0_R::new(((self.bits >> 1) & 1) != 0)
55 }
56 #[inline(always)]
58 pub fn rtt0(&self) -> RTT0_R {
59 RTT0_R::new(((self.bits >> 2) & 1) != 0)
60 }
61 #[inline(always)]
63 pub fn al(&self) -> AL_R {
64 AL_R::new(((self.bits >> 3) & 3) as u8)
65 }
66 #[inline(always)]
68 pub fn dic1(&self) -> DIC1_R {
69 DIC1_R::new(((self.bits >> 5) & 1) != 0)
70 }
71 #[inline(always)]
73 pub fn rtt1(&self) -> RTT1_R {
74 RTT1_R::new(((self.bits >> 6) & 1) != 0)
75 }
76 #[inline(always)]
78 pub fn level(&self) -> LEVEL_R {
79 LEVEL_R::new(((self.bits >> 7) & 1) != 0)
80 }
81 #[inline(always)]
83 pub fn rtt2(&self) -> RTT2_R {
84 RTT2_R::new(((self.bits >> 9) & 1) != 0)
85 }
86 #[inline(always)]
88 pub fn tdqs(&self) -> TDQS_R {
89 TDQS_R::new(((self.bits >> 11) & 1) != 0)
90 }
91 #[inline(always)]
93 pub fn qoff(&self) -> QOFF_R {
94 QOFF_R::new(((self.bits >> 12) & 1) != 0)
95 }
96}
97impl core::fmt::Debug for R {
98 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
99 f.debug_struct("DDR3_MR1")
100 .field("de", &self.de())
101 .field("dic0", &self.dic0())
102 .field("rtt0", &self.rtt0())
103 .field("al", &self.al())
104 .field("dic1", &self.dic1())
105 .field("rtt1", &self.rtt1())
106 .field("level", &self.level())
107 .field("rtt2", &self.rtt2())
108 .field("tdqs", &self.tdqs())
109 .field("qoff", &self.qoff())
110 .finish()
111 }
112}
113impl W {
114 #[inline(always)]
116 pub fn de(&mut self) -> DE_W<DDR3_MR1rs> {
117 DE_W::new(self, 0)
118 }
119 #[inline(always)]
121 pub fn dic0(&mut self) -> DIC0_W<DDR3_MR1rs> {
122 DIC0_W::new(self, 1)
123 }
124 #[inline(always)]
126 pub fn rtt0(&mut self) -> RTT0_W<DDR3_MR1rs> {
127 RTT0_W::new(self, 2)
128 }
129 #[inline(always)]
131 pub fn al(&mut self) -> AL_W<DDR3_MR1rs> {
132 AL_W::new(self, 3)
133 }
134 #[inline(always)]
136 pub fn dic1(&mut self) -> DIC1_W<DDR3_MR1rs> {
137 DIC1_W::new(self, 5)
138 }
139 #[inline(always)]
141 pub fn rtt1(&mut self) -> RTT1_W<DDR3_MR1rs> {
142 RTT1_W::new(self, 6)
143 }
144 #[inline(always)]
146 pub fn level(&mut self) -> LEVEL_W<DDR3_MR1rs> {
147 LEVEL_W::new(self, 7)
148 }
149 #[inline(always)]
151 pub fn rtt2(&mut self) -> RTT2_W<DDR3_MR1rs> {
152 RTT2_W::new(self, 9)
153 }
154 #[inline(always)]
156 pub fn tdqs(&mut self) -> TDQS_W<DDR3_MR1rs> {
157 TDQS_W::new(self, 11)
158 }
159 #[inline(always)]
161 pub fn qoff(&mut self) -> QOFF_W<DDR3_MR1rs> {
162 QOFF_W::new(self, 12)
163 }
164}
165pub struct DDR3_MR1rs;
171impl crate::RegisterSpec for DDR3_MR1rs {
172 type Ux = u16;
173}
174impl crate::Readable for DDR3_MR1rs {}
176impl crate::Writable for DDR3_MR1rs {
178 type Safety = crate::Unsafe;
179}
180impl crate::Resettable for DDR3_MR1rs {}