stm32f7_staging/stm32f779/dsi/
cmcr.rs1pub type R = crate::R<CMCRrs>;
3pub type W = crate::W<CMCRrs>;
5pub type TEARE_R = crate::BitReader;
7pub type TEARE_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type ARE_R = crate::BitReader;
11pub type ARE_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type GSW0TX_R = crate::BitReader;
15pub type GSW0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type GSW1TX_R = crate::BitReader;
19pub type GSW1TX_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type GSW2TX_R = crate::BitReader;
23pub type GSW2TX_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type GSR0TX_R = crate::BitReader;
27pub type GSR0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type GSR1TX_R = crate::BitReader;
31pub type GSR1TX_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type GSR2TX_R = crate::BitReader;
35pub type GSR2TX_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type GLWTX_R = crate::BitReader;
39pub type GLWTX_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type DSW0TX_R = crate::BitReader;
43pub type DSW0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type DSW1TX_R = crate::BitReader;
47pub type DSW1TX_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type DSR0TX_R = crate::BitReader;
51pub type DSR0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
53pub type DLWTX_R = crate::BitReader;
55pub type DLWTX_W<'a, REG> = crate::BitWriter<'a, REG>;
57pub type MRDPS_R = crate::BitReader;
59pub type MRDPS_W<'a, REG> = crate::BitWriter<'a, REG>;
61impl R {
62 #[inline(always)]
64 pub fn teare(&self) -> TEARE_R {
65 TEARE_R::new((self.bits & 1) != 0)
66 }
67 #[inline(always)]
69 pub fn are(&self) -> ARE_R {
70 ARE_R::new(((self.bits >> 1) & 1) != 0)
71 }
72 #[inline(always)]
74 pub fn gsw0tx(&self) -> GSW0TX_R {
75 GSW0TX_R::new(((self.bits >> 8) & 1) != 0)
76 }
77 #[inline(always)]
79 pub fn gsw1tx(&self) -> GSW1TX_R {
80 GSW1TX_R::new(((self.bits >> 9) & 1) != 0)
81 }
82 #[inline(always)]
84 pub fn gsw2tx(&self) -> GSW2TX_R {
85 GSW2TX_R::new(((self.bits >> 10) & 1) != 0)
86 }
87 #[inline(always)]
89 pub fn gsr0tx(&self) -> GSR0TX_R {
90 GSR0TX_R::new(((self.bits >> 11) & 1) != 0)
91 }
92 #[inline(always)]
94 pub fn gsr1tx(&self) -> GSR1TX_R {
95 GSR1TX_R::new(((self.bits >> 12) & 1) != 0)
96 }
97 #[inline(always)]
99 pub fn gsr2tx(&self) -> GSR2TX_R {
100 GSR2TX_R::new(((self.bits >> 13) & 1) != 0)
101 }
102 #[inline(always)]
104 pub fn glwtx(&self) -> GLWTX_R {
105 GLWTX_R::new(((self.bits >> 14) & 1) != 0)
106 }
107 #[inline(always)]
109 pub fn dsw0tx(&self) -> DSW0TX_R {
110 DSW0TX_R::new(((self.bits >> 16) & 1) != 0)
111 }
112 #[inline(always)]
114 pub fn dsw1tx(&self) -> DSW1TX_R {
115 DSW1TX_R::new(((self.bits >> 17) & 1) != 0)
116 }
117 #[inline(always)]
119 pub fn dsr0tx(&self) -> DSR0TX_R {
120 DSR0TX_R::new(((self.bits >> 18) & 1) != 0)
121 }
122 #[inline(always)]
124 pub fn dlwtx(&self) -> DLWTX_R {
125 DLWTX_R::new(((self.bits >> 19) & 1) != 0)
126 }
127 #[inline(always)]
129 pub fn mrdps(&self) -> MRDPS_R {
130 MRDPS_R::new(((self.bits >> 24) & 1) != 0)
131 }
132}
133impl core::fmt::Debug for R {
134 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
135 f.debug_struct("CMCR")
136 .field("teare", &self.teare())
137 .field("are", &self.are())
138 .field("gsw0tx", &self.gsw0tx())
139 .field("gsw1tx", &self.gsw1tx())
140 .field("gsw2tx", &self.gsw2tx())
141 .field("gsr0tx", &self.gsr0tx())
142 .field("gsr1tx", &self.gsr1tx())
143 .field("gsr2tx", &self.gsr2tx())
144 .field("glwtx", &self.glwtx())
145 .field("dsw0tx", &self.dsw0tx())
146 .field("dsw1tx", &self.dsw1tx())
147 .field("dsr0tx", &self.dsr0tx())
148 .field("dlwtx", &self.dlwtx())
149 .field("mrdps", &self.mrdps())
150 .finish()
151 }
152}
153impl W {
154 #[inline(always)]
156 pub fn teare(&mut self) -> TEARE_W<CMCRrs> {
157 TEARE_W::new(self, 0)
158 }
159 #[inline(always)]
161 pub fn are(&mut self) -> ARE_W<CMCRrs> {
162 ARE_W::new(self, 1)
163 }
164 #[inline(always)]
166 pub fn gsw0tx(&mut self) -> GSW0TX_W<CMCRrs> {
167 GSW0TX_W::new(self, 8)
168 }
169 #[inline(always)]
171 pub fn gsw1tx(&mut self) -> GSW1TX_W<CMCRrs> {
172 GSW1TX_W::new(self, 9)
173 }
174 #[inline(always)]
176 pub fn gsw2tx(&mut self) -> GSW2TX_W<CMCRrs> {
177 GSW2TX_W::new(self, 10)
178 }
179 #[inline(always)]
181 pub fn gsr0tx(&mut self) -> GSR0TX_W<CMCRrs> {
182 GSR0TX_W::new(self, 11)
183 }
184 #[inline(always)]
186 pub fn gsr1tx(&mut self) -> GSR1TX_W<CMCRrs> {
187 GSR1TX_W::new(self, 12)
188 }
189 #[inline(always)]
191 pub fn gsr2tx(&mut self) -> GSR2TX_W<CMCRrs> {
192 GSR2TX_W::new(self, 13)
193 }
194 #[inline(always)]
196 pub fn glwtx(&mut self) -> GLWTX_W<CMCRrs> {
197 GLWTX_W::new(self, 14)
198 }
199 #[inline(always)]
201 pub fn dsw0tx(&mut self) -> DSW0TX_W<CMCRrs> {
202 DSW0TX_W::new(self, 16)
203 }
204 #[inline(always)]
206 pub fn dsw1tx(&mut self) -> DSW1TX_W<CMCRrs> {
207 DSW1TX_W::new(self, 17)
208 }
209 #[inline(always)]
211 pub fn dsr0tx(&mut self) -> DSR0TX_W<CMCRrs> {
212 DSR0TX_W::new(self, 18)
213 }
214 #[inline(always)]
216 pub fn dlwtx(&mut self) -> DLWTX_W<CMCRrs> {
217 DLWTX_W::new(self, 19)
218 }
219 #[inline(always)]
221 pub fn mrdps(&mut self) -> MRDPS_W<CMCRrs> {
222 MRDPS_W::new(self, 24)
223 }
224}
225pub struct CMCRrs;
231impl crate::RegisterSpec for CMCRrs {
232 type Ux = u32;
233}
234impl crate::Readable for CMCRrs {}
236impl crate::Writable for CMCRrs {
238 type Safety = crate::Unsafe;
239}
240impl crate::Resettable for CMCRrs {}