1#[doc = "Register `FPCCR` reader"]
2pub type R = crate::R<FPCCR_SPEC>;
3#[doc = "Register `FPCCR` writer"]
4pub type W = crate::W<FPCCR_SPEC>;
5#[doc = "Lazy State Preservation Active\n\nValue on reset: 0"]
6#[derive(Clone, Copy, Debug, PartialEq, Eq)]
7pub enum LSPACT_A {
8 #[doc = "0: Lazy state preservation is not active."]
9 VALUE1 = 0,
10 #[doc = "1: Lazy state preservation is active. floating-point stack frame has been allocated but saving state to it has been deferred."]
11 VALUE2 = 1,
12}
13impl From<LSPACT_A> for bool {
14 #[inline(always)]
15 fn from(variant: LSPACT_A) -> Self {
16 variant as u8 != 0
17 }
18}
19#[doc = "Field `LSPACT` reader - Lazy State Preservation Active"]
20pub type LSPACT_R = crate::BitReader<LSPACT_A>;
21impl LSPACT_R {
22 #[doc = "Get enumerated values variant"]
23 #[inline(always)]
24 pub const fn variant(&self) -> LSPACT_A {
25 match self.bits {
26 false => LSPACT_A::VALUE1,
27 true => LSPACT_A::VALUE2,
28 }
29 }
30 #[doc = "Lazy state preservation is not active."]
31 #[inline(always)]
32 pub fn is_value1(&self) -> bool {
33 *self == LSPACT_A::VALUE1
34 }
35 #[doc = "Lazy state preservation is active. floating-point stack frame has been allocated but saving state to it has been deferred."]
36 #[inline(always)]
37 pub fn is_value2(&self) -> bool {
38 *self == LSPACT_A::VALUE2
39 }
40}
41#[doc = "Field `LSPACT` writer - Lazy State Preservation Active"]
42pub type LSPACT_W<'a, REG> = crate::BitWriter<'a, REG, LSPACT_A>;
43impl<'a, REG> LSPACT_W<'a, REG>
44where
45 REG: crate::Writable + crate::RegisterSpec,
46{
47 #[doc = "Lazy state preservation is not active."]
48 #[inline(always)]
49 pub fn value1(self) -> &'a mut crate::W<REG> {
50 self.variant(LSPACT_A::VALUE1)
51 }
52 #[doc = "Lazy state preservation is active. floating-point stack frame has been allocated but saving state to it has been deferred."]
53 #[inline(always)]
54 pub fn value2(self) -> &'a mut crate::W<REG> {
55 self.variant(LSPACT_A::VALUE2)
56 }
57}
58#[doc = "User allocated Stack Frame\n\nValue on reset: 0"]
59#[derive(Clone, Copy, Debug, PartialEq, Eq)]
60pub enum USER_A {
61 #[doc = "0: Privilege level was not user when the floating-point stack frame was allocated."]
62 VALUE1 = 0,
63 #[doc = "1: Privilege level was user when the floating-point stack frame was allocated."]
64 VALUE2 = 1,
65}
66impl From<USER_A> for bool {
67 #[inline(always)]
68 fn from(variant: USER_A) -> Self {
69 variant as u8 != 0
70 }
71}
72#[doc = "Field `USER` reader - User allocated Stack Frame"]
73pub type USER_R = crate::BitReader<USER_A>;
74impl USER_R {
75 #[doc = "Get enumerated values variant"]
76 #[inline(always)]
77 pub const fn variant(&self) -> USER_A {
78 match self.bits {
79 false => USER_A::VALUE1,
80 true => USER_A::VALUE2,
81 }
82 }
83 #[doc = "Privilege level was not user when the floating-point stack frame was allocated."]
84 #[inline(always)]
85 pub fn is_value1(&self) -> bool {
86 *self == USER_A::VALUE1
87 }
88 #[doc = "Privilege level was user when the floating-point stack frame was allocated."]
89 #[inline(always)]
90 pub fn is_value2(&self) -> bool {
91 *self == USER_A::VALUE2
92 }
93}
94#[doc = "Field `USER` writer - User allocated Stack Frame"]
95pub type USER_W<'a, REG> = crate::BitWriter<'a, REG, USER_A>;
96impl<'a, REG> USER_W<'a, REG>
97where
98 REG: crate::Writable + crate::RegisterSpec,
99{
100 #[doc = "Privilege level was not user when the floating-point stack frame was allocated."]
101 #[inline(always)]
102 pub fn value1(self) -> &'a mut crate::W<REG> {
103 self.variant(USER_A::VALUE1)
104 }
105 #[doc = "Privilege level was user when the floating-point stack frame was allocated."]
106 #[inline(always)]
107 pub fn value2(self) -> &'a mut crate::W<REG> {
108 self.variant(USER_A::VALUE2)
109 }
110}
111#[doc = "Thread Mode allocated Stack Frame\n\nValue on reset: 0"]
112#[derive(Clone, Copy, Debug, PartialEq, Eq)]
113pub enum THREAD_A {
114 #[doc = "0: Mode was not Thread Mode when the floating-point stack frame was allocated."]
115 VALUE1 = 0,
116 #[doc = "1: Mode was Thread Mode when the floating-point stack frame was allocated."]
117 VALUE2 = 1,
118}
119impl From<THREAD_A> for bool {
120 #[inline(always)]
121 fn from(variant: THREAD_A) -> Self {
122 variant as u8 != 0
123 }
124}
125#[doc = "Field `THREAD` reader - Thread Mode allocated Stack Frame"]
126pub type THREAD_R = crate::BitReader<THREAD_A>;
127impl THREAD_R {
128 #[doc = "Get enumerated values variant"]
129 #[inline(always)]
130 pub const fn variant(&self) -> THREAD_A {
131 match self.bits {
132 false => THREAD_A::VALUE1,
133 true => THREAD_A::VALUE2,
134 }
135 }
136 #[doc = "Mode was not Thread Mode when the floating-point stack frame was allocated."]
137 #[inline(always)]
138 pub fn is_value1(&self) -> bool {
139 *self == THREAD_A::VALUE1
140 }
141 #[doc = "Mode was Thread Mode when the floating-point stack frame was allocated."]
142 #[inline(always)]
143 pub fn is_value2(&self) -> bool {
144 *self == THREAD_A::VALUE2
145 }
146}
147#[doc = "Field `THREAD` writer - Thread Mode allocated Stack Frame"]
148pub type THREAD_W<'a, REG> = crate::BitWriter<'a, REG, THREAD_A>;
149impl<'a, REG> THREAD_W<'a, REG>
150where
151 REG: crate::Writable + crate::RegisterSpec,
152{
153 #[doc = "Mode was not Thread Mode when the floating-point stack frame was allocated."]
154 #[inline(always)]
155 pub fn value1(self) -> &'a mut crate::W<REG> {
156 self.variant(THREAD_A::VALUE1)
157 }
158 #[doc = "Mode was Thread Mode when the floating-point stack frame was allocated."]
159 #[inline(always)]
160 pub fn value2(self) -> &'a mut crate::W<REG> {
161 self.variant(THREAD_A::VALUE2)
162 }
163}
164#[doc = "HardFault Ready\n\nValue on reset: 0"]
165#[derive(Clone, Copy, Debug, PartialEq, Eq)]
166pub enum HFRDY_A {
167 #[doc = "0: Priority did not permit setting the HardFault handler to the pending state when the floating-point stack frame was allocated."]
168 VALUE1 = 0,
169 #[doc = "1: Priority permitted setting the HardFault handler to the pending state when the floating-point stack frame was allocated."]
170 VALUE2 = 1,
171}
172impl From<HFRDY_A> for bool {
173 #[inline(always)]
174 fn from(variant: HFRDY_A) -> Self {
175 variant as u8 != 0
176 }
177}
178#[doc = "Field `HFRDY` reader - HardFault Ready"]
179pub type HFRDY_R = crate::BitReader<HFRDY_A>;
180impl HFRDY_R {
181 #[doc = "Get enumerated values variant"]
182 #[inline(always)]
183 pub const fn variant(&self) -> HFRDY_A {
184 match self.bits {
185 false => HFRDY_A::VALUE1,
186 true => HFRDY_A::VALUE2,
187 }
188 }
189 #[doc = "Priority did not permit setting the HardFault handler to the pending state when the floating-point stack frame was allocated."]
190 #[inline(always)]
191 pub fn is_value1(&self) -> bool {
192 *self == HFRDY_A::VALUE1
193 }
194 #[doc = "Priority permitted setting the HardFault handler to the pending state when the floating-point stack frame was allocated."]
195 #[inline(always)]
196 pub fn is_value2(&self) -> bool {
197 *self == HFRDY_A::VALUE2
198 }
199}
200#[doc = "Field `HFRDY` writer - HardFault Ready"]
201pub type HFRDY_W<'a, REG> = crate::BitWriter<'a, REG, HFRDY_A>;
202impl<'a, REG> HFRDY_W<'a, REG>
203where
204 REG: crate::Writable + crate::RegisterSpec,
205{
206 #[doc = "Priority did not permit setting the HardFault handler to the pending state when the floating-point stack frame was allocated."]
207 #[inline(always)]
208 pub fn value1(self) -> &'a mut crate::W<REG> {
209 self.variant(HFRDY_A::VALUE1)
210 }
211 #[doc = "Priority permitted setting the HardFault handler to the pending state when the floating-point stack frame was allocated."]
212 #[inline(always)]
213 pub fn value2(self) -> &'a mut crate::W<REG> {
214 self.variant(HFRDY_A::VALUE2)
215 }
216}
217#[doc = "MemManage Ready\n\nValue on reset: 0"]
218#[derive(Clone, Copy, Debug, PartialEq, Eq)]
219pub enum MMRDY_A {
220 #[doc = "0: MemManage is disabled or priority did not permit setting the MemManage handler to the pending state when the floating-point stack frame was allocated."]
221 VALUE1 = 0,
222 #[doc = "1: MemManage is enabled and priority permitted setting the MemManage handler to the pending state when the floating-point stack frame was allocated."]
223 VALUE2 = 1,
224}
225impl From<MMRDY_A> for bool {
226 #[inline(always)]
227 fn from(variant: MMRDY_A) -> Self {
228 variant as u8 != 0
229 }
230}
231#[doc = "Field `MMRDY` reader - MemManage Ready"]
232pub type MMRDY_R = crate::BitReader<MMRDY_A>;
233impl MMRDY_R {
234 #[doc = "Get enumerated values variant"]
235 #[inline(always)]
236 pub const fn variant(&self) -> MMRDY_A {
237 match self.bits {
238 false => MMRDY_A::VALUE1,
239 true => MMRDY_A::VALUE2,
240 }
241 }
242 #[doc = "MemManage is disabled or priority did not permit setting the MemManage handler to the pending state when the floating-point stack frame was allocated."]
243 #[inline(always)]
244 pub fn is_value1(&self) -> bool {
245 *self == MMRDY_A::VALUE1
246 }
247 #[doc = "MemManage is enabled and priority permitted setting the MemManage handler to the pending state when the floating-point stack frame was allocated."]
248 #[inline(always)]
249 pub fn is_value2(&self) -> bool {
250 *self == MMRDY_A::VALUE2
251 }
252}
253#[doc = "Field `MMRDY` writer - MemManage Ready"]
254pub type MMRDY_W<'a, REG> = crate::BitWriter<'a, REG, MMRDY_A>;
255impl<'a, REG> MMRDY_W<'a, REG>
256where
257 REG: crate::Writable + crate::RegisterSpec,
258{
259 #[doc = "MemManage is disabled or priority did not permit setting the MemManage handler to the pending state when the floating-point stack frame was allocated."]
260 #[inline(always)]
261 pub fn value1(self) -> &'a mut crate::W<REG> {
262 self.variant(MMRDY_A::VALUE1)
263 }
264 #[doc = "MemManage is enabled and priority permitted setting the MemManage handler to the pending state when the floating-point stack frame was allocated."]
265 #[inline(always)]
266 pub fn value2(self) -> &'a mut crate::W<REG> {
267 self.variant(MMRDY_A::VALUE2)
268 }
269}
270#[doc = "BusFault Ready\n\nValue on reset: 0"]
271#[derive(Clone, Copy, Debug, PartialEq, Eq)]
272pub enum BFRDY_A {
273 #[doc = "0: BusFault is disabled or priority did not permit setting the BusFault handler to the pending state when the floating-point stack frame was allocated."]
274 VALUE1 = 0,
275 #[doc = "1: BusFault is enabled and priority permitted setting the BusFault handler to the pending state when the floating-point stack frame was allocated."]
276 VALUE2 = 1,
277}
278impl From<BFRDY_A> for bool {
279 #[inline(always)]
280 fn from(variant: BFRDY_A) -> Self {
281 variant as u8 != 0
282 }
283}
284#[doc = "Field `BFRDY` reader - BusFault Ready"]
285pub type BFRDY_R = crate::BitReader<BFRDY_A>;
286impl BFRDY_R {
287 #[doc = "Get enumerated values variant"]
288 #[inline(always)]
289 pub const fn variant(&self) -> BFRDY_A {
290 match self.bits {
291 false => BFRDY_A::VALUE1,
292 true => BFRDY_A::VALUE2,
293 }
294 }
295 #[doc = "BusFault is disabled or priority did not permit setting the BusFault handler to the pending state when the floating-point stack frame was allocated."]
296 #[inline(always)]
297 pub fn is_value1(&self) -> bool {
298 *self == BFRDY_A::VALUE1
299 }
300 #[doc = "BusFault is enabled and priority permitted setting the BusFault handler to the pending state when the floating-point stack frame was allocated."]
301 #[inline(always)]
302 pub fn is_value2(&self) -> bool {
303 *self == BFRDY_A::VALUE2
304 }
305}
306#[doc = "Field `BFRDY` writer - BusFault Ready"]
307pub type BFRDY_W<'a, REG> = crate::BitWriter<'a, REG, BFRDY_A>;
308impl<'a, REG> BFRDY_W<'a, REG>
309where
310 REG: crate::Writable + crate::RegisterSpec,
311{
312 #[doc = "BusFault is disabled or priority did not permit setting the BusFault handler to the pending state when the floating-point stack frame was allocated."]
313 #[inline(always)]
314 pub fn value1(self) -> &'a mut crate::W<REG> {
315 self.variant(BFRDY_A::VALUE1)
316 }
317 #[doc = "BusFault is enabled and priority permitted setting the BusFault handler to the pending state when the floating-point stack frame was allocated."]
318 #[inline(always)]
319 pub fn value2(self) -> &'a mut crate::W<REG> {
320 self.variant(BFRDY_A::VALUE2)
321 }
322}
323#[doc = "Monitor Ready\n\nValue on reset: 0"]
324#[derive(Clone, Copy, Debug, PartialEq, Eq)]
325pub enum MONRDY_A {
326 #[doc = "0: Debug Monitor is disabled or priority did not permit setting MON_PEND when the floating-point stack frame was allocated."]
327 VALUE1 = 0,
328 #[doc = "1: Debug Monitor is enabled and priority permits setting MON_PEND when the floating-point stack frame was allocated."]
329 VALUE2 = 1,
330}
331impl From<MONRDY_A> for bool {
332 #[inline(always)]
333 fn from(variant: MONRDY_A) -> Self {
334 variant as u8 != 0
335 }
336}
337#[doc = "Field `MONRDY` reader - Monitor Ready"]
338pub type MONRDY_R = crate::BitReader<MONRDY_A>;
339impl MONRDY_R {
340 #[doc = "Get enumerated values variant"]
341 #[inline(always)]
342 pub const fn variant(&self) -> MONRDY_A {
343 match self.bits {
344 false => MONRDY_A::VALUE1,
345 true => MONRDY_A::VALUE2,
346 }
347 }
348 #[doc = "Debug Monitor is disabled or priority did not permit setting MON_PEND when the floating-point stack frame was allocated."]
349 #[inline(always)]
350 pub fn is_value1(&self) -> bool {
351 *self == MONRDY_A::VALUE1
352 }
353 #[doc = "Debug Monitor is enabled and priority permits setting MON_PEND when the floating-point stack frame was allocated."]
354 #[inline(always)]
355 pub fn is_value2(&self) -> bool {
356 *self == MONRDY_A::VALUE2
357 }
358}
359#[doc = "Field `MONRDY` writer - Monitor Ready"]
360pub type MONRDY_W<'a, REG> = crate::BitWriter<'a, REG, MONRDY_A>;
361impl<'a, REG> MONRDY_W<'a, REG>
362where
363 REG: crate::Writable + crate::RegisterSpec,
364{
365 #[doc = "Debug Monitor is disabled or priority did not permit setting MON_PEND when the floating-point stack frame was allocated."]
366 #[inline(always)]
367 pub fn value1(self) -> &'a mut crate::W<REG> {
368 self.variant(MONRDY_A::VALUE1)
369 }
370 #[doc = "Debug Monitor is enabled and priority permits setting MON_PEND when the floating-point stack frame was allocated."]
371 #[inline(always)]
372 pub fn value2(self) -> &'a mut crate::W<REG> {
373 self.variant(MONRDY_A::VALUE2)
374 }
375}
376#[doc = "Lazy State Preservation Enabled\n\nValue on reset: 0"]
377#[derive(Clone, Copy, Debug, PartialEq, Eq)]
378pub enum LSPEN_A {
379 #[doc = "0: Disable automatic lazy state preservation for floating-point context."]
380 VALUE1 = 0,
381 #[doc = "1: Enable automatic lazy state preservation for floating-point context."]
382 VALUE2 = 1,
383}
384impl From<LSPEN_A> for bool {
385 #[inline(always)]
386 fn from(variant: LSPEN_A) -> Self {
387 variant as u8 != 0
388 }
389}
390#[doc = "Field `LSPEN` reader - Lazy State Preservation Enabled"]
391pub type LSPEN_R = crate::BitReader<LSPEN_A>;
392impl LSPEN_R {
393 #[doc = "Get enumerated values variant"]
394 #[inline(always)]
395 pub const fn variant(&self) -> LSPEN_A {
396 match self.bits {
397 false => LSPEN_A::VALUE1,
398 true => LSPEN_A::VALUE2,
399 }
400 }
401 #[doc = "Disable automatic lazy state preservation for floating-point context."]
402 #[inline(always)]
403 pub fn is_value1(&self) -> bool {
404 *self == LSPEN_A::VALUE1
405 }
406 #[doc = "Enable automatic lazy state preservation for floating-point context."]
407 #[inline(always)]
408 pub fn is_value2(&self) -> bool {
409 *self == LSPEN_A::VALUE2
410 }
411}
412#[doc = "Field `LSPEN` writer - Lazy State Preservation Enabled"]
413pub type LSPEN_W<'a, REG> = crate::BitWriter<'a, REG, LSPEN_A>;
414impl<'a, REG> LSPEN_W<'a, REG>
415where
416 REG: crate::Writable + crate::RegisterSpec,
417{
418 #[doc = "Disable automatic lazy state preservation for floating-point context."]
419 #[inline(always)]
420 pub fn value1(self) -> &'a mut crate::W<REG> {
421 self.variant(LSPEN_A::VALUE1)
422 }
423 #[doc = "Enable automatic lazy state preservation for floating-point context."]
424 #[inline(always)]
425 pub fn value2(self) -> &'a mut crate::W<REG> {
426 self.variant(LSPEN_A::VALUE2)
427 }
428}
429#[doc = "Automatic State Preservation\n\nValue on reset: 0"]
430#[derive(Clone, Copy, Debug, PartialEq, Eq)]
431pub enum ASPEN_A {
432 #[doc = "0: Disable CONTROL setting on execution of a floating-point instruction."]
433 VALUE1 = 0,
434 #[doc = "1: Enable CONTROL setting on execution of a floating-point instruction."]
435 VALUE2 = 1,
436}
437impl From<ASPEN_A> for bool {
438 #[inline(always)]
439 fn from(variant: ASPEN_A) -> Self {
440 variant as u8 != 0
441 }
442}
443#[doc = "Field `ASPEN` reader - Automatic State Preservation"]
444pub type ASPEN_R = crate::BitReader<ASPEN_A>;
445impl ASPEN_R {
446 #[doc = "Get enumerated values variant"]
447 #[inline(always)]
448 pub const fn variant(&self) -> ASPEN_A {
449 match self.bits {
450 false => ASPEN_A::VALUE1,
451 true => ASPEN_A::VALUE2,
452 }
453 }
454 #[doc = "Disable CONTROL setting on execution of a floating-point instruction."]
455 #[inline(always)]
456 pub fn is_value1(&self) -> bool {
457 *self == ASPEN_A::VALUE1
458 }
459 #[doc = "Enable CONTROL setting on execution of a floating-point instruction."]
460 #[inline(always)]
461 pub fn is_value2(&self) -> bool {
462 *self == ASPEN_A::VALUE2
463 }
464}
465#[doc = "Field `ASPEN` writer - Automatic State Preservation"]
466pub type ASPEN_W<'a, REG> = crate::BitWriter<'a, REG, ASPEN_A>;
467impl<'a, REG> ASPEN_W<'a, REG>
468where
469 REG: crate::Writable + crate::RegisterSpec,
470{
471 #[doc = "Disable CONTROL setting on execution of a floating-point instruction."]
472 #[inline(always)]
473 pub fn value1(self) -> &'a mut crate::W<REG> {
474 self.variant(ASPEN_A::VALUE1)
475 }
476 #[doc = "Enable CONTROL setting on execution of a floating-point instruction."]
477 #[inline(always)]
478 pub fn value2(self) -> &'a mut crate::W<REG> {
479 self.variant(ASPEN_A::VALUE2)
480 }
481}
482impl R {
483 #[doc = "Bit 0 - Lazy State Preservation Active"]
484 #[inline(always)]
485 pub fn lspact(&self) -> LSPACT_R {
486 LSPACT_R::new((self.bits & 1) != 0)
487 }
488 #[doc = "Bit 1 - User allocated Stack Frame"]
489 #[inline(always)]
490 pub fn user(&self) -> USER_R {
491 USER_R::new(((self.bits >> 1) & 1) != 0)
492 }
493 #[doc = "Bit 3 - Thread Mode allocated Stack Frame"]
494 #[inline(always)]
495 pub fn thread(&self) -> THREAD_R {
496 THREAD_R::new(((self.bits >> 3) & 1) != 0)
497 }
498 #[doc = "Bit 4 - HardFault Ready"]
499 #[inline(always)]
500 pub fn hfrdy(&self) -> HFRDY_R {
501 HFRDY_R::new(((self.bits >> 4) & 1) != 0)
502 }
503 #[doc = "Bit 5 - MemManage Ready"]
504 #[inline(always)]
505 pub fn mmrdy(&self) -> MMRDY_R {
506 MMRDY_R::new(((self.bits >> 5) & 1) != 0)
507 }
508 #[doc = "Bit 6 - BusFault Ready"]
509 #[inline(always)]
510 pub fn bfrdy(&self) -> BFRDY_R {
511 BFRDY_R::new(((self.bits >> 6) & 1) != 0)
512 }
513 #[doc = "Bit 8 - Monitor Ready"]
514 #[inline(always)]
515 pub fn monrdy(&self) -> MONRDY_R {
516 MONRDY_R::new(((self.bits >> 8) & 1) != 0)
517 }
518 #[doc = "Bit 30 - Lazy State Preservation Enabled"]
519 #[inline(always)]
520 pub fn lspen(&self) -> LSPEN_R {
521 LSPEN_R::new(((self.bits >> 30) & 1) != 0)
522 }
523 #[doc = "Bit 31 - Automatic State Preservation"]
524 #[inline(always)]
525 pub fn aspen(&self) -> ASPEN_R {
526 ASPEN_R::new(((self.bits >> 31) & 1) != 0)
527 }
528}
529impl W {
530 #[doc = "Bit 0 - Lazy State Preservation Active"]
531 #[inline(always)]
532 pub fn lspact(&mut self) -> LSPACT_W<FPCCR_SPEC> {
533 LSPACT_W::new(self, 0)
534 }
535 #[doc = "Bit 1 - User allocated Stack Frame"]
536 #[inline(always)]
537 pub fn user(&mut self) -> USER_W<FPCCR_SPEC> {
538 USER_W::new(self, 1)
539 }
540 #[doc = "Bit 3 - Thread Mode allocated Stack Frame"]
541 #[inline(always)]
542 pub fn thread(&mut self) -> THREAD_W<FPCCR_SPEC> {
543 THREAD_W::new(self, 3)
544 }
545 #[doc = "Bit 4 - HardFault Ready"]
546 #[inline(always)]
547 pub fn hfrdy(&mut self) -> HFRDY_W<FPCCR_SPEC> {
548 HFRDY_W::new(self, 4)
549 }
550 #[doc = "Bit 5 - MemManage Ready"]
551 #[inline(always)]
552 pub fn mmrdy(&mut self) -> MMRDY_W<FPCCR_SPEC> {
553 MMRDY_W::new(self, 5)
554 }
555 #[doc = "Bit 6 - BusFault Ready"]
556 #[inline(always)]
557 pub fn bfrdy(&mut self) -> BFRDY_W<FPCCR_SPEC> {
558 BFRDY_W::new(self, 6)
559 }
560 #[doc = "Bit 8 - Monitor Ready"]
561 #[inline(always)]
562 pub fn monrdy(&mut self) -> MONRDY_W<FPCCR_SPEC> {
563 MONRDY_W::new(self, 8)
564 }
565 #[doc = "Bit 30 - Lazy State Preservation Enabled"]
566 #[inline(always)]
567 pub fn lspen(&mut self) -> LSPEN_W<FPCCR_SPEC> {
568 LSPEN_W::new(self, 30)
569 }
570 #[doc = "Bit 31 - Automatic State Preservation"]
571 #[inline(always)]
572 pub fn aspen(&mut self) -> ASPEN_W<FPCCR_SPEC> {
573 ASPEN_W::new(self, 31)
574 }
575}
576#[doc = "Floating-point Context Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`fpccr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fpccr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
577pub struct FPCCR_SPEC;
578impl crate::RegisterSpec for FPCCR_SPEC {
579 type Ux = u32;
580}
581#[doc = "`read()` method returns [`fpccr::R`](R) reader structure"]
582impl crate::Readable for FPCCR_SPEC {}
583#[doc = "`write(|w| ..)` method takes [`fpccr::W`](W) writer structure"]
584impl crate::Writable for FPCCR_SPEC {
585 type Safety = crate::Unsafe;
586 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
587 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
588}
589#[doc = "`reset()` method sets FPCCR to value 0"]
590impl crate::Resettable for FPCCR_SPEC {
591 const RESET_VALUE: u32 = 0;
592}