stm32f7_staging/stm32f779/dsi/
wcfgr.rs1pub type R = crate::R<WCFGRrs>;
3pub type W = crate::W<WCFGRrs>;
5pub type DSIM_R = crate::BitReader;
7pub type DSIM_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type COLMUX_R = crate::FieldReader;
11pub type COLMUX_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
13pub type TESRC_R = crate::BitReader;
15pub type TESRC_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type TEPOL_R = crate::BitReader;
19pub type TEPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type AR_R = crate::BitReader;
23pub type AR_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type VSPOL_R = crate::BitReader;
27pub type VSPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
29impl R {
30 #[inline(always)]
32 pub fn dsim(&self) -> DSIM_R {
33 DSIM_R::new((self.bits & 1) != 0)
34 }
35 #[inline(always)]
37 pub fn colmux(&self) -> COLMUX_R {
38 COLMUX_R::new(((self.bits >> 1) & 7) as u8)
39 }
40 #[inline(always)]
42 pub fn tesrc(&self) -> TESRC_R {
43 TESRC_R::new(((self.bits >> 4) & 1) != 0)
44 }
45 #[inline(always)]
47 pub fn tepol(&self) -> TEPOL_R {
48 TEPOL_R::new(((self.bits >> 5) & 1) != 0)
49 }
50 #[inline(always)]
52 pub fn ar(&self) -> AR_R {
53 AR_R::new(((self.bits >> 6) & 1) != 0)
54 }
55 #[inline(always)]
57 pub fn vspol(&self) -> VSPOL_R {
58 VSPOL_R::new(((self.bits >> 7) & 1) != 0)
59 }
60}
61impl core::fmt::Debug for R {
62 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
63 f.debug_struct("WCFGR")
64 .field("vspol", &self.vspol())
65 .field("ar", &self.ar())
66 .field("tepol", &self.tepol())
67 .field("tesrc", &self.tesrc())
68 .field("colmux", &self.colmux())
69 .field("dsim", &self.dsim())
70 .finish()
71 }
72}
73impl W {
74 #[inline(always)]
76 pub fn dsim(&mut self) -> DSIM_W<WCFGRrs> {
77 DSIM_W::new(self, 0)
78 }
79 #[inline(always)]
81 pub fn colmux(&mut self) -> COLMUX_W<WCFGRrs> {
82 COLMUX_W::new(self, 1)
83 }
84 #[inline(always)]
86 pub fn tesrc(&mut self) -> TESRC_W<WCFGRrs> {
87 TESRC_W::new(self, 4)
88 }
89 #[inline(always)]
91 pub fn tepol(&mut self) -> TEPOL_W<WCFGRrs> {
92 TEPOL_W::new(self, 5)
93 }
94 #[inline(always)]
96 pub fn ar(&mut self) -> AR_W<WCFGRrs> {
97 AR_W::new(self, 6)
98 }
99 #[inline(always)]
101 pub fn vspol(&mut self) -> VSPOL_W<WCFGRrs> {
102 VSPOL_W::new(self, 7)
103 }
104}
105pub struct WCFGRrs;
111impl crate::RegisterSpec for WCFGRrs {
112 type Ux = u32;
113}
114impl crate::Readable for WCFGRrs {}
116impl crate::Writable for WCFGRrs {
118 type Safety = crate::Unsafe;
119}
120impl crate::Resettable for WCFGRrs {}