stm32f7_staging/stm32f779/dsi/
wpcr0.rs1pub type R = crate::R<WPCR0rs>;
3pub type W = crate::W<WPCR0rs>;
5pub type UIX4_R = crate::FieldReader;
7pub type UIX4_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
9pub type SWCL_R = crate::BitReader;
11pub type SWCL_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type SWDL0_R = crate::BitReader;
15pub type SWDL0_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type SWDL1_R = crate::BitReader;
19pub type SWDL1_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type HSICL_R = crate::BitReader;
23pub type HSICL_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type HSIDL0_R = crate::BitReader;
27pub type HSIDL0_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type HSIDL1_R = crate::BitReader;
31pub type HSIDL1_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type FTXSMCL_R = crate::BitReader;
35pub type FTXSMCL_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type FTXSMDL_R = crate::BitReader;
39pub type FTXSMDL_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type CDOFFDL_R = crate::BitReader;
43pub type CDOFFDL_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type TDDL_R = crate::BitReader;
47pub type TDDL_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type PDEN_R = crate::BitReader;
51pub type PDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
53pub type TCLKPREPEN_R = crate::BitReader;
55pub type TCLKPREPEN_W<'a, REG> = crate::BitWriter<'a, REG>;
57pub type TCLKZEROEN_R = crate::BitReader;
59pub type TCLKZEROEN_W<'a, REG> = crate::BitWriter<'a, REG>;
61pub type THSPREPEN_R = crate::BitReader;
63pub type THSPREPEN_W<'a, REG> = crate::BitWriter<'a, REG>;
65pub type THSTRAILEN_R = crate::BitReader;
67pub type THSTRAILEN_W<'a, REG> = crate::BitWriter<'a, REG>;
69pub type THSZEROEN_R = crate::BitReader;
71pub type THSZEROEN_W<'a, REG> = crate::BitWriter<'a, REG>;
73pub type TLPXDEN_R = crate::BitReader;
75pub type TLPXDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
77pub type THSEXITEN_R = crate::BitReader;
79pub type THSEXITEN_W<'a, REG> = crate::BitWriter<'a, REG>;
81pub type TLPXCEN_R = crate::BitReader;
83pub type TLPXCEN_W<'a, REG> = crate::BitWriter<'a, REG>;
85pub type TCLKPOSTEN_R = crate::BitReader;
87pub type TCLKPOSTEN_W<'a, REG> = crate::BitWriter<'a, REG>;
89impl R {
90 #[inline(always)]
92 pub fn uix4(&self) -> UIX4_R {
93 UIX4_R::new((self.bits & 0x3f) as u8)
94 }
95 #[inline(always)]
97 pub fn swcl(&self) -> SWCL_R {
98 SWCL_R::new(((self.bits >> 6) & 1) != 0)
99 }
100 #[inline(always)]
102 pub fn swdl0(&self) -> SWDL0_R {
103 SWDL0_R::new(((self.bits >> 7) & 1) != 0)
104 }
105 #[inline(always)]
107 pub fn swdl1(&self) -> SWDL1_R {
108 SWDL1_R::new(((self.bits >> 8) & 1) != 0)
109 }
110 #[inline(always)]
112 pub fn hsicl(&self) -> HSICL_R {
113 HSICL_R::new(((self.bits >> 9) & 1) != 0)
114 }
115 #[inline(always)]
117 pub fn hsidl0(&self) -> HSIDL0_R {
118 HSIDL0_R::new(((self.bits >> 10) & 1) != 0)
119 }
120 #[inline(always)]
122 pub fn hsidl1(&self) -> HSIDL1_R {
123 HSIDL1_R::new(((self.bits >> 11) & 1) != 0)
124 }
125 #[inline(always)]
127 pub fn ftxsmcl(&self) -> FTXSMCL_R {
128 FTXSMCL_R::new(((self.bits >> 12) & 1) != 0)
129 }
130 #[inline(always)]
132 pub fn ftxsmdl(&self) -> FTXSMDL_R {
133 FTXSMDL_R::new(((self.bits >> 13) & 1) != 0)
134 }
135 #[inline(always)]
137 pub fn cdoffdl(&self) -> CDOFFDL_R {
138 CDOFFDL_R::new(((self.bits >> 14) & 1) != 0)
139 }
140 #[inline(always)]
142 pub fn tddl(&self) -> TDDL_R {
143 TDDL_R::new(((self.bits >> 16) & 1) != 0)
144 }
145 #[inline(always)]
147 pub fn pden(&self) -> PDEN_R {
148 PDEN_R::new(((self.bits >> 18) & 1) != 0)
149 }
150 #[inline(always)]
152 pub fn tclkprepen(&self) -> TCLKPREPEN_R {
153 TCLKPREPEN_R::new(((self.bits >> 19) & 1) != 0)
154 }
155 #[inline(always)]
157 pub fn tclkzeroen(&self) -> TCLKZEROEN_R {
158 TCLKZEROEN_R::new(((self.bits >> 20) & 1) != 0)
159 }
160 #[inline(always)]
162 pub fn thsprepen(&self) -> THSPREPEN_R {
163 THSPREPEN_R::new(((self.bits >> 21) & 1) != 0)
164 }
165 #[inline(always)]
167 pub fn thstrailen(&self) -> THSTRAILEN_R {
168 THSTRAILEN_R::new(((self.bits >> 22) & 1) != 0)
169 }
170 #[inline(always)]
172 pub fn thszeroen(&self) -> THSZEROEN_R {
173 THSZEROEN_R::new(((self.bits >> 23) & 1) != 0)
174 }
175 #[inline(always)]
177 pub fn tlpxden(&self) -> TLPXDEN_R {
178 TLPXDEN_R::new(((self.bits >> 24) & 1) != 0)
179 }
180 #[inline(always)]
182 pub fn thsexiten(&self) -> THSEXITEN_R {
183 THSEXITEN_R::new(((self.bits >> 25) & 1) != 0)
184 }
185 #[inline(always)]
187 pub fn tlpxcen(&self) -> TLPXCEN_R {
188 TLPXCEN_R::new(((self.bits >> 26) & 1) != 0)
189 }
190 #[inline(always)]
192 pub fn tclkposten(&self) -> TCLKPOSTEN_R {
193 TCLKPOSTEN_R::new(((self.bits >> 27) & 1) != 0)
194 }
195}
196impl core::fmt::Debug for R {
197 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
198 f.debug_struct("WPCR0")
199 .field("tclkposten", &self.tclkposten())
200 .field("tlpxcen", &self.tlpxcen())
201 .field("thsexiten", &self.thsexiten())
202 .field("tlpxden", &self.tlpxden())
203 .field("thszeroen", &self.thszeroen())
204 .field("thstrailen", &self.thstrailen())
205 .field("thsprepen", &self.thsprepen())
206 .field("tclkzeroen", &self.tclkzeroen())
207 .field("tclkprepen", &self.tclkprepen())
208 .field("pden", &self.pden())
209 .field("tddl", &self.tddl())
210 .field("cdoffdl", &self.cdoffdl())
211 .field("ftxsmdl", &self.ftxsmdl())
212 .field("ftxsmcl", &self.ftxsmcl())
213 .field("hsidl1", &self.hsidl1())
214 .field("hsidl0", &self.hsidl0())
215 .field("hsicl", &self.hsicl())
216 .field("swdl1", &self.swdl1())
217 .field("swdl0", &self.swdl0())
218 .field("swcl", &self.swcl())
219 .field("uix4", &self.uix4())
220 .finish()
221 }
222}
223impl W {
224 #[inline(always)]
226 pub fn uix4(&mut self) -> UIX4_W<WPCR0rs> {
227 UIX4_W::new(self, 0)
228 }
229 #[inline(always)]
231 pub fn swcl(&mut self) -> SWCL_W<WPCR0rs> {
232 SWCL_W::new(self, 6)
233 }
234 #[inline(always)]
236 pub fn swdl0(&mut self) -> SWDL0_W<WPCR0rs> {
237 SWDL0_W::new(self, 7)
238 }
239 #[inline(always)]
241 pub fn swdl1(&mut self) -> SWDL1_W<WPCR0rs> {
242 SWDL1_W::new(self, 8)
243 }
244 #[inline(always)]
246 pub fn hsicl(&mut self) -> HSICL_W<WPCR0rs> {
247 HSICL_W::new(self, 9)
248 }
249 #[inline(always)]
251 pub fn hsidl0(&mut self) -> HSIDL0_W<WPCR0rs> {
252 HSIDL0_W::new(self, 10)
253 }
254 #[inline(always)]
256 pub fn hsidl1(&mut self) -> HSIDL1_W<WPCR0rs> {
257 HSIDL1_W::new(self, 11)
258 }
259 #[inline(always)]
261 pub fn ftxsmcl(&mut self) -> FTXSMCL_W<WPCR0rs> {
262 FTXSMCL_W::new(self, 12)
263 }
264 #[inline(always)]
266 pub fn ftxsmdl(&mut self) -> FTXSMDL_W<WPCR0rs> {
267 FTXSMDL_W::new(self, 13)
268 }
269 #[inline(always)]
271 pub fn cdoffdl(&mut self) -> CDOFFDL_W<WPCR0rs> {
272 CDOFFDL_W::new(self, 14)
273 }
274 #[inline(always)]
276 pub fn tddl(&mut self) -> TDDL_W<WPCR0rs> {
277 TDDL_W::new(self, 16)
278 }
279 #[inline(always)]
281 pub fn pden(&mut self) -> PDEN_W<WPCR0rs> {
282 PDEN_W::new(self, 18)
283 }
284 #[inline(always)]
286 pub fn tclkprepen(&mut self) -> TCLKPREPEN_W<WPCR0rs> {
287 TCLKPREPEN_W::new(self, 19)
288 }
289 #[inline(always)]
291 pub fn tclkzeroen(&mut self) -> TCLKZEROEN_W<WPCR0rs> {
292 TCLKZEROEN_W::new(self, 20)
293 }
294 #[inline(always)]
296 pub fn thsprepen(&mut self) -> THSPREPEN_W<WPCR0rs> {
297 THSPREPEN_W::new(self, 21)
298 }
299 #[inline(always)]
301 pub fn thstrailen(&mut self) -> THSTRAILEN_W<WPCR0rs> {
302 THSTRAILEN_W::new(self, 22)
303 }
304 #[inline(always)]
306 pub fn thszeroen(&mut self) -> THSZEROEN_W<WPCR0rs> {
307 THSZEROEN_W::new(self, 23)
308 }
309 #[inline(always)]
311 pub fn tlpxden(&mut self) -> TLPXDEN_W<WPCR0rs> {
312 TLPXDEN_W::new(self, 24)
313 }
314 #[inline(always)]
316 pub fn thsexiten(&mut self) -> THSEXITEN_W<WPCR0rs> {
317 THSEXITEN_W::new(self, 25)
318 }
319 #[inline(always)]
321 pub fn tlpxcen(&mut self) -> TLPXCEN_W<WPCR0rs> {
322 TLPXCEN_W::new(self, 26)
323 }
324 #[inline(always)]
326 pub fn tclkposten(&mut self) -> TCLKPOSTEN_W<WPCR0rs> {
327 TCLKPOSTEN_W::new(self, 27)
328 }
329}
330pub struct WPCR0rs;
336impl crate::RegisterSpec for WPCR0rs {
337 type Ux = u32;
338}
339impl crate::Readable for WPCR0rs {}
341impl crate::Writable for WPCR0rs {
343 type Safety = crate::Unsafe;
344}
345impl crate::Resettable for WPCR0rs {}