stm32f7_staging/stm32f779/dsi/wpcr4.rs
1///Register `WPCR4` reader
2pub type R = crate::R<WPCR4rs>;
3///Register `WPCR4` writer
4pub type W = crate::W<WPCR4rs>;
5///Field `THSZERO` reader - tCLK-POST
6pub type THSZERO_R = crate::FieldReader;
7///Field `THSZERO` writer - tCLK-POST
8pub type THSZERO_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 ///Bits 0:7 - tCLK-POST
11 #[inline(always)]
12 pub fn thszero(&self) -> THSZERO_R {
13 THSZERO_R::new((self.bits & 0xff) as u8)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("WPCR4")
19 .field("thszero", &self.thszero())
20 .finish()
21 }
22}
23impl W {
24 ///Bits 0:7 - tCLK-POST
25 #[inline(always)]
26 pub fn thszero(&mut self) -> THSZERO_W<WPCR4rs> {
27 THSZERO_W::new(self, 0)
28 }
29}
30/**DSI Wrapper PHY Configuration Register 5
31
32You can [`read`](crate::Reg::read) this register and get [`wpcr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wpcr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
33
34See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#DSI:WPCR4)*/
35pub struct WPCR4rs;
36impl crate::RegisterSpec for WPCR4rs {
37 type Ux = u32;
38}
39///`read()` method returns [`wpcr4::R`](R) reader structure
40impl crate::Readable for WPCR4rs {}
41///`write(|w| ..)` method takes [`wpcr4::W`](W) writer structure
42impl crate::Writable for WPCR4rs {
43 type Safety = crate::Unsafe;
44}
45///`reset()` method sets WPCR4 to value 0
46impl crate::Resettable for WPCR4rs {}