stm32l4/stm32l4x5/fmc/
bcr.rs1pub type R = crate::R<BCRrs>;
3pub type W = crate::W<BCRrs>;
5pub use super::bcr1::ASYNCWAIT;
7pub use super::bcr1::ASYNCWAIT_R;
9pub use super::bcr1::ASYNCWAIT_W;
11pub use super::bcr1::BURSTEN;
13pub use super::bcr1::BURSTEN_R;
15pub use super::bcr1::BURSTEN_W;
17pub use super::bcr1::CBURSTRW;
19pub use super::bcr1::CBURSTRW_R;
21pub use super::bcr1::CBURSTRW_W;
23pub use super::bcr1::CPSIZE;
25pub use super::bcr1::CPSIZE_R;
27pub use super::bcr1::CPSIZE_W;
29pub use super::bcr1::EXTMOD;
31pub use super::bcr1::EXTMOD_R;
33pub use super::bcr1::EXTMOD_W;
35pub use super::bcr1::FACCEN;
37pub use super::bcr1::FACCEN_R;
39pub use super::bcr1::FACCEN_W;
41pub use super::bcr1::MBKEN;
43pub use super::bcr1::MBKEN_R;
45pub use super::bcr1::MBKEN_W;
47pub use super::bcr1::MTYP;
49pub use super::bcr1::MTYP_R;
51pub use super::bcr1::MTYP_W;
53pub use super::bcr1::MUXEN;
55pub use super::bcr1::MUXEN_R;
57pub use super::bcr1::MUXEN_W;
59pub use super::bcr1::MWID;
61pub use super::bcr1::MWID_R;
63pub use super::bcr1::MWID_W;
65pub use super::bcr1::WAITCFG;
67pub use super::bcr1::WAITCFG_R;
69pub use super::bcr1::WAITCFG_W;
71pub use super::bcr1::WAITEN;
73pub use super::bcr1::WAITEN_R;
75pub use super::bcr1::WAITEN_W;
77pub use super::bcr1::WAITPOL;
79pub use super::bcr1::WAITPOL_R;
81pub use super::bcr1::WAITPOL_W;
83pub use super::bcr1::WREN;
85pub use super::bcr1::WREN_R;
87pub use super::bcr1::WREN_W;
89impl R {
90 #[inline(always)]
92 pub fn mbken(&self) -> MBKEN_R {
93 MBKEN_R::new((self.bits & 1) != 0)
94 }
95 #[inline(always)]
97 pub fn muxen(&self) -> MUXEN_R {
98 MUXEN_R::new(((self.bits >> 1) & 1) != 0)
99 }
100 #[inline(always)]
102 pub fn mtyp(&self) -> MTYP_R {
103 MTYP_R::new(((self.bits >> 2) & 3) as u8)
104 }
105 #[inline(always)]
107 pub fn mwid(&self) -> MWID_R {
108 MWID_R::new(((self.bits >> 4) & 3) as u8)
109 }
110 #[inline(always)]
112 pub fn faccen(&self) -> FACCEN_R {
113 FACCEN_R::new(((self.bits >> 6) & 1) != 0)
114 }
115 #[inline(always)]
117 pub fn bursten(&self) -> BURSTEN_R {
118 BURSTEN_R::new(((self.bits >> 8) & 1) != 0)
119 }
120 #[inline(always)]
122 pub fn waitpol(&self) -> WAITPOL_R {
123 WAITPOL_R::new(((self.bits >> 9) & 1) != 0)
124 }
125 #[inline(always)]
127 pub fn waitcfg(&self) -> WAITCFG_R {
128 WAITCFG_R::new(((self.bits >> 11) & 1) != 0)
129 }
130 #[inline(always)]
132 pub fn wren(&self) -> WREN_R {
133 WREN_R::new(((self.bits >> 12) & 1) != 0)
134 }
135 #[inline(always)]
137 pub fn waiten(&self) -> WAITEN_R {
138 WAITEN_R::new(((self.bits >> 13) & 1) != 0)
139 }
140 #[inline(always)]
142 pub fn extmod(&self) -> EXTMOD_R {
143 EXTMOD_R::new(((self.bits >> 14) & 1) != 0)
144 }
145 #[inline(always)]
147 pub fn asyncwait(&self) -> ASYNCWAIT_R {
148 ASYNCWAIT_R::new(((self.bits >> 15) & 1) != 0)
149 }
150 #[inline(always)]
152 pub fn cpsize(&self) -> CPSIZE_R {
153 CPSIZE_R::new(((self.bits >> 16) & 7) as u8)
154 }
155 #[inline(always)]
157 pub fn cburstrw(&self) -> CBURSTRW_R {
158 CBURSTRW_R::new(((self.bits >> 19) & 1) != 0)
159 }
160}
161impl core::fmt::Debug for R {
162 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
163 f.debug_struct("BCR")
164 .field("cburstrw", &self.cburstrw())
165 .field("asyncwait", &self.asyncwait())
166 .field("extmod", &self.extmod())
167 .field("waiten", &self.waiten())
168 .field("wren", &self.wren())
169 .field("waitcfg", &self.waitcfg())
170 .field("waitpol", &self.waitpol())
171 .field("bursten", &self.bursten())
172 .field("faccen", &self.faccen())
173 .field("mwid", &self.mwid())
174 .field("mtyp", &self.mtyp())
175 .field("muxen", &self.muxen())
176 .field("mbken", &self.mbken())
177 .field("cpsize", &self.cpsize())
178 .finish()
179 }
180}
181impl W {
182 #[inline(always)]
184 pub fn mbken(&mut self) -> MBKEN_W<BCRrs> {
185 MBKEN_W::new(self, 0)
186 }
187 #[inline(always)]
189 pub fn muxen(&mut self) -> MUXEN_W<BCRrs> {
190 MUXEN_W::new(self, 1)
191 }
192 #[inline(always)]
194 pub fn mtyp(&mut self) -> MTYP_W<BCRrs> {
195 MTYP_W::new(self, 2)
196 }
197 #[inline(always)]
199 pub fn mwid(&mut self) -> MWID_W<BCRrs> {
200 MWID_W::new(self, 4)
201 }
202 #[inline(always)]
204 pub fn faccen(&mut self) -> FACCEN_W<BCRrs> {
205 FACCEN_W::new(self, 6)
206 }
207 #[inline(always)]
209 pub fn bursten(&mut self) -> BURSTEN_W<BCRrs> {
210 BURSTEN_W::new(self, 8)
211 }
212 #[inline(always)]
214 pub fn waitpol(&mut self) -> WAITPOL_W<BCRrs> {
215 WAITPOL_W::new(self, 9)
216 }
217 #[inline(always)]
219 pub fn waitcfg(&mut self) -> WAITCFG_W<BCRrs> {
220 WAITCFG_W::new(self, 11)
221 }
222 #[inline(always)]
224 pub fn wren(&mut self) -> WREN_W<BCRrs> {
225 WREN_W::new(self, 12)
226 }
227 #[inline(always)]
229 pub fn waiten(&mut self) -> WAITEN_W<BCRrs> {
230 WAITEN_W::new(self, 13)
231 }
232 #[inline(always)]
234 pub fn extmod(&mut self) -> EXTMOD_W<BCRrs> {
235 EXTMOD_W::new(self, 14)
236 }
237 #[inline(always)]
239 pub fn asyncwait(&mut self) -> ASYNCWAIT_W<BCRrs> {
240 ASYNCWAIT_W::new(self, 15)
241 }
242 #[inline(always)]
244 pub fn cpsize(&mut self) -> CPSIZE_W<BCRrs> {
245 CPSIZE_W::new(self, 16)
246 }
247 #[inline(always)]
249 pub fn cburstrw(&mut self) -> CBURSTRW_W<BCRrs> {
250 CBURSTRW_W::new(self, 19)
251 }
252}
253pub struct BCRrs;
259impl crate::RegisterSpec for BCRrs {
260 type Ux = u32;
261}
262impl crate::Readable for BCRrs {}
264impl crate::Writable for BCRrs {
266 type Safety = crate::Unsafe;
267}
268impl crate::Resettable for BCRrs {
270 const RESET_VALUE: u32 = 0x30d0;
271}