1pub type R = crate::R<CFGR1rs>;
3pub type W = crate::W<CFGR1rs>;
5#[cfg_attr(feature = "defmt", derive(defmt::Format))]
9#[derive(Clone, Copy, Debug, PartialEq, Eq)]
10#[repr(u8)]
11pub enum MEM_MODE {
12 MainFlash = 0,
14 SystemFlash = 1,
16 Sram = 3,
18 Fmc = 4,
20}
21impl From<MEM_MODE> for u8 {
22 #[inline(always)]
23 fn from(variant: MEM_MODE) -> Self {
24 variant as _
25 }
26}
27impl crate::FieldSpec for MEM_MODE {
28 type Ux = u8;
29}
30impl crate::IsEnum for MEM_MODE {}
31pub type MEM_MODE_R = crate::FieldReader<MEM_MODE>;
33impl MEM_MODE_R {
34 #[inline(always)]
36 pub const fn variant(&self) -> Option<MEM_MODE> {
37 match self.bits {
38 0 => Some(MEM_MODE::MainFlash),
39 1 => Some(MEM_MODE::SystemFlash),
40 3 => Some(MEM_MODE::Sram),
41 4 => Some(MEM_MODE::Fmc),
42 _ => None,
43 }
44 }
45 #[inline(always)]
47 pub fn is_main_flash(&self) -> bool {
48 *self == MEM_MODE::MainFlash
49 }
50 #[inline(always)]
52 pub fn is_system_flash(&self) -> bool {
53 *self == MEM_MODE::SystemFlash
54 }
55 #[inline(always)]
57 pub fn is_sram(&self) -> bool {
58 *self == MEM_MODE::Sram
59 }
60 #[inline(always)]
62 pub fn is_fmc(&self) -> bool {
63 *self == MEM_MODE::Fmc
64 }
65}
66pub type MEM_MODE_W<'a, REG> = crate::FieldWriter<'a, REG, 3, MEM_MODE>;
68impl<'a, REG> MEM_MODE_W<'a, REG>
69where
70 REG: crate::Writable + crate::RegisterSpec,
71 REG::Ux: From<u8>,
72{
73 #[inline(always)]
75 pub fn main_flash(self) -> &'a mut crate::W<REG> {
76 self.variant(MEM_MODE::MainFlash)
77 }
78 #[inline(always)]
80 pub fn system_flash(self) -> &'a mut crate::W<REG> {
81 self.variant(MEM_MODE::SystemFlash)
82 }
83 #[inline(always)]
85 pub fn sram(self) -> &'a mut crate::W<REG> {
86 self.variant(MEM_MODE::Sram)
87 }
88 #[inline(always)]
90 pub fn fmc(self) -> &'a mut crate::W<REG> {
91 self.variant(MEM_MODE::Fmc)
92 }
93}
94#[cfg_attr(feature = "defmt", derive(defmt::Format))]
98#[derive(Clone, Copy, Debug, PartialEq, Eq)]
99pub enum USB_IT_RMP {
100 NotRemapped = 0,
102 Remapped = 1,
104}
105impl From<USB_IT_RMP> for bool {
106 #[inline(always)]
107 fn from(variant: USB_IT_RMP) -> Self {
108 variant as u8 != 0
109 }
110}
111pub type USB_IT_RMP_R = crate::BitReader<USB_IT_RMP>;
113impl USB_IT_RMP_R {
114 #[inline(always)]
116 pub const fn variant(&self) -> USB_IT_RMP {
117 match self.bits {
118 false => USB_IT_RMP::NotRemapped,
119 true => USB_IT_RMP::Remapped,
120 }
121 }
122 #[inline(always)]
124 pub fn is_not_remapped(&self) -> bool {
125 *self == USB_IT_RMP::NotRemapped
126 }
127 #[inline(always)]
129 pub fn is_remapped(&self) -> bool {
130 *self == USB_IT_RMP::Remapped
131 }
132}
133pub type USB_IT_RMP_W<'a, REG> = crate::BitWriter<'a, REG, USB_IT_RMP>;
135impl<'a, REG> USB_IT_RMP_W<'a, REG>
136where
137 REG: crate::Writable + crate::RegisterSpec,
138{
139 #[inline(always)]
141 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
142 self.variant(USB_IT_RMP::NotRemapped)
143 }
144 #[inline(always)]
146 pub fn remapped(self) -> &'a mut crate::W<REG> {
147 self.variant(USB_IT_RMP::Remapped)
148 }
149}
150#[cfg_attr(feature = "defmt", derive(defmt::Format))]
154#[derive(Clone, Copy, Debug, PartialEq, Eq)]
155pub enum TIM1_ITR3_RMP {
156 NotRemapped = 0,
158 Remapped = 1,
160}
161impl From<TIM1_ITR3_RMP> for bool {
162 #[inline(always)]
163 fn from(variant: TIM1_ITR3_RMP) -> Self {
164 variant as u8 != 0
165 }
166}
167pub type TIM1_ITR3_RMP_R = crate::BitReader<TIM1_ITR3_RMP>;
169impl TIM1_ITR3_RMP_R {
170 #[inline(always)]
172 pub const fn variant(&self) -> TIM1_ITR3_RMP {
173 match self.bits {
174 false => TIM1_ITR3_RMP::NotRemapped,
175 true => TIM1_ITR3_RMP::Remapped,
176 }
177 }
178 #[inline(always)]
180 pub fn is_not_remapped(&self) -> bool {
181 *self == TIM1_ITR3_RMP::NotRemapped
182 }
183 #[inline(always)]
185 pub fn is_remapped(&self) -> bool {
186 *self == TIM1_ITR3_RMP::Remapped
187 }
188}
189pub type TIM1_ITR3_RMP_W<'a, REG> = crate::BitWriter<'a, REG, TIM1_ITR3_RMP>;
191impl<'a, REG> TIM1_ITR3_RMP_W<'a, REG>
192where
193 REG: crate::Writable + crate::RegisterSpec,
194{
195 #[inline(always)]
197 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
198 self.variant(TIM1_ITR3_RMP::NotRemapped)
199 }
200 #[inline(always)]
202 pub fn remapped(self) -> &'a mut crate::W<REG> {
203 self.variant(TIM1_ITR3_RMP::Remapped)
204 }
205}
206#[cfg_attr(feature = "defmt", derive(defmt::Format))]
210#[derive(Clone, Copy, Debug, PartialEq, Eq)]
211pub enum DAC1_TRIG_RMP {
212 NotRemapped = 0,
214 Remapped = 1,
216}
217impl From<DAC1_TRIG_RMP> for bool {
218 #[inline(always)]
219 fn from(variant: DAC1_TRIG_RMP) -> Self {
220 variant as u8 != 0
221 }
222}
223pub type DAC1_TRIG_RMP_R = crate::BitReader<DAC1_TRIG_RMP>;
225impl DAC1_TRIG_RMP_R {
226 #[inline(always)]
228 pub const fn variant(&self) -> DAC1_TRIG_RMP {
229 match self.bits {
230 false => DAC1_TRIG_RMP::NotRemapped,
231 true => DAC1_TRIG_RMP::Remapped,
232 }
233 }
234 #[inline(always)]
236 pub fn is_not_remapped(&self) -> bool {
237 *self == DAC1_TRIG_RMP::NotRemapped
238 }
239 #[inline(always)]
241 pub fn is_remapped(&self) -> bool {
242 *self == DAC1_TRIG_RMP::Remapped
243 }
244}
245pub type DAC1_TRIG_RMP_W<'a, REG> = crate::BitWriter<'a, REG, DAC1_TRIG_RMP>;
247impl<'a, REG> DAC1_TRIG_RMP_W<'a, REG>
248where
249 REG: crate::Writable + crate::RegisterSpec,
250{
251 #[inline(always)]
253 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
254 self.variant(DAC1_TRIG_RMP::NotRemapped)
255 }
256 #[inline(always)]
258 pub fn remapped(self) -> &'a mut crate::W<REG> {
259 self.variant(DAC1_TRIG_RMP::Remapped)
260 }
261}
262#[cfg_attr(feature = "defmt", derive(defmt::Format))]
266#[derive(Clone, Copy, Debug, PartialEq, Eq)]
267pub enum ADC2_DMA_RMP {
268 NotRemapped = 0,
270 Remapped = 1,
272}
273impl From<ADC2_DMA_RMP> for bool {
274 #[inline(always)]
275 fn from(variant: ADC2_DMA_RMP) -> Self {
276 variant as u8 != 0
277 }
278}
279pub type ADC2_DMA_RMP_R = crate::BitReader<ADC2_DMA_RMP>;
281impl ADC2_DMA_RMP_R {
282 #[inline(always)]
284 pub const fn variant(&self) -> ADC2_DMA_RMP {
285 match self.bits {
286 false => ADC2_DMA_RMP::NotRemapped,
287 true => ADC2_DMA_RMP::Remapped,
288 }
289 }
290 #[inline(always)]
292 pub fn is_not_remapped(&self) -> bool {
293 *self == ADC2_DMA_RMP::NotRemapped
294 }
295 #[inline(always)]
297 pub fn is_remapped(&self) -> bool {
298 *self == ADC2_DMA_RMP::Remapped
299 }
300}
301pub type ADC2_DMA_RMP_W<'a, REG> = crate::BitWriter<'a, REG, ADC2_DMA_RMP>;
303impl<'a, REG> ADC2_DMA_RMP_W<'a, REG>
304where
305 REG: crate::Writable + crate::RegisterSpec,
306{
307 #[inline(always)]
309 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
310 self.variant(ADC2_DMA_RMP::NotRemapped)
311 }
312 #[inline(always)]
314 pub fn remapped(self) -> &'a mut crate::W<REG> {
315 self.variant(ADC2_DMA_RMP::Remapped)
316 }
317}
318#[cfg_attr(feature = "defmt", derive(defmt::Format))]
322#[derive(Clone, Copy, Debug, PartialEq, Eq)]
323pub enum TIM16_DMA_RMP {
324 NotRemapped = 0,
326 Remapped = 1,
328}
329impl From<TIM16_DMA_RMP> for bool {
330 #[inline(always)]
331 fn from(variant: TIM16_DMA_RMP) -> Self {
332 variant as u8 != 0
333 }
334}
335pub type TIM16_DMA_RMP_R = crate::BitReader<TIM16_DMA_RMP>;
337impl TIM16_DMA_RMP_R {
338 #[inline(always)]
340 pub const fn variant(&self) -> TIM16_DMA_RMP {
341 match self.bits {
342 false => TIM16_DMA_RMP::NotRemapped,
343 true => TIM16_DMA_RMP::Remapped,
344 }
345 }
346 #[inline(always)]
348 pub fn is_not_remapped(&self) -> bool {
349 *self == TIM16_DMA_RMP::NotRemapped
350 }
351 #[inline(always)]
353 pub fn is_remapped(&self) -> bool {
354 *self == TIM16_DMA_RMP::Remapped
355 }
356}
357pub type TIM16_DMA_RMP_W<'a, REG> = crate::BitWriter<'a, REG, TIM16_DMA_RMP>;
359impl<'a, REG> TIM16_DMA_RMP_W<'a, REG>
360where
361 REG: crate::Writable + crate::RegisterSpec,
362{
363 #[inline(always)]
365 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
366 self.variant(TIM16_DMA_RMP::NotRemapped)
367 }
368 #[inline(always)]
370 pub fn remapped(self) -> &'a mut crate::W<REG> {
371 self.variant(TIM16_DMA_RMP::Remapped)
372 }
373}
374#[cfg_attr(feature = "defmt", derive(defmt::Format))]
378#[derive(Clone, Copy, Debug, PartialEq, Eq)]
379pub enum TIM17_DMA_RMP {
380 NotRemapped = 0,
382 Remapped = 1,
384}
385impl From<TIM17_DMA_RMP> for bool {
386 #[inline(always)]
387 fn from(variant: TIM17_DMA_RMP) -> Self {
388 variant as u8 != 0
389 }
390}
391pub type TIM17_DMA_RMP_R = crate::BitReader<TIM17_DMA_RMP>;
393impl TIM17_DMA_RMP_R {
394 #[inline(always)]
396 pub const fn variant(&self) -> TIM17_DMA_RMP {
397 match self.bits {
398 false => TIM17_DMA_RMP::NotRemapped,
399 true => TIM17_DMA_RMP::Remapped,
400 }
401 }
402 #[inline(always)]
404 pub fn is_not_remapped(&self) -> bool {
405 *self == TIM17_DMA_RMP::NotRemapped
406 }
407 #[inline(always)]
409 pub fn is_remapped(&self) -> bool {
410 *self == TIM17_DMA_RMP::Remapped
411 }
412}
413pub type TIM17_DMA_RMP_W<'a, REG> = crate::BitWriter<'a, REG, TIM17_DMA_RMP>;
415impl<'a, REG> TIM17_DMA_RMP_W<'a, REG>
416where
417 REG: crate::Writable + crate::RegisterSpec,
418{
419 #[inline(always)]
421 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
422 self.variant(TIM17_DMA_RMP::NotRemapped)
423 }
424 #[inline(always)]
426 pub fn remapped(self) -> &'a mut crate::W<REG> {
427 self.variant(TIM17_DMA_RMP::Remapped)
428 }
429}
430#[cfg_attr(feature = "defmt", derive(defmt::Format))]
434#[derive(Clone, Copy, Debug, PartialEq, Eq)]
435pub enum TIM6_DAC1_DMA_RMP {
436 NotRemapped = 0,
438 Remapped = 1,
440}
441impl From<TIM6_DAC1_DMA_RMP> for bool {
442 #[inline(always)]
443 fn from(variant: TIM6_DAC1_DMA_RMP) -> Self {
444 variant as u8 != 0
445 }
446}
447pub type TIM6_DAC1_DMA_RMP_R = crate::BitReader<TIM6_DAC1_DMA_RMP>;
449impl TIM6_DAC1_DMA_RMP_R {
450 #[inline(always)]
452 pub const fn variant(&self) -> TIM6_DAC1_DMA_RMP {
453 match self.bits {
454 false => TIM6_DAC1_DMA_RMP::NotRemapped,
455 true => TIM6_DAC1_DMA_RMP::Remapped,
456 }
457 }
458 #[inline(always)]
460 pub fn is_not_remapped(&self) -> bool {
461 *self == TIM6_DAC1_DMA_RMP::NotRemapped
462 }
463 #[inline(always)]
465 pub fn is_remapped(&self) -> bool {
466 *self == TIM6_DAC1_DMA_RMP::Remapped
467 }
468}
469pub type TIM6_DAC1_DMA_RMP_W<'a, REG> = crate::BitWriter<'a, REG, TIM6_DAC1_DMA_RMP>;
471impl<'a, REG> TIM6_DAC1_DMA_RMP_W<'a, REG>
472where
473 REG: crate::Writable + crate::RegisterSpec,
474{
475 #[inline(always)]
477 pub fn not_remapped(self) -> &'a mut crate::W<REG> {
478 self.variant(TIM6_DAC1_DMA_RMP::NotRemapped)
479 }
480 #[inline(always)]
482 pub fn remapped(self) -> &'a mut crate::W<REG> {
483 self.variant(TIM6_DAC1_DMA_RMP::Remapped)
484 }
485}
486#[cfg_attr(feature = "defmt", derive(defmt::Format))]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum I2C_PB6_FMP {
492 Standard = 0,
494 Fmp = 1,
496}
497impl From<I2C_PB6_FMP> for bool {
498 #[inline(always)]
499 fn from(variant: I2C_PB6_FMP) -> Self {
500 variant as u8 != 0
501 }
502}
503pub type I2C_PB6_FMP_R = crate::BitReader<I2C_PB6_FMP>;
505impl I2C_PB6_FMP_R {
506 #[inline(always)]
508 pub const fn variant(&self) -> I2C_PB6_FMP {
509 match self.bits {
510 false => I2C_PB6_FMP::Standard,
511 true => I2C_PB6_FMP::Fmp,
512 }
513 }
514 #[inline(always)]
516 pub fn is_standard(&self) -> bool {
517 *self == I2C_PB6_FMP::Standard
518 }
519 #[inline(always)]
521 pub fn is_fmp(&self) -> bool {
522 *self == I2C_PB6_FMP::Fmp
523 }
524}
525pub type I2C_PB6_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C_PB6_FMP>;
527impl<'a, REG> I2C_PB6_FMP_W<'a, REG>
528where
529 REG: crate::Writable + crate::RegisterSpec,
530{
531 #[inline(always)]
533 pub fn standard(self) -> &'a mut crate::W<REG> {
534 self.variant(I2C_PB6_FMP::Standard)
535 }
536 #[inline(always)]
538 pub fn fmp(self) -> &'a mut crate::W<REG> {
539 self.variant(I2C_PB6_FMP::Fmp)
540 }
541}
542#[cfg_attr(feature = "defmt", derive(defmt::Format))]
546#[derive(Clone, Copy, Debug, PartialEq, Eq)]
547pub enum I2C_PB7_FMP {
548 Standard = 0,
550 Fmp = 1,
552}
553impl From<I2C_PB7_FMP> for bool {
554 #[inline(always)]
555 fn from(variant: I2C_PB7_FMP) -> Self {
556 variant as u8 != 0
557 }
558}
559pub type I2C_PB7_FMP_R = crate::BitReader<I2C_PB7_FMP>;
561impl I2C_PB7_FMP_R {
562 #[inline(always)]
564 pub const fn variant(&self) -> I2C_PB7_FMP {
565 match self.bits {
566 false => I2C_PB7_FMP::Standard,
567 true => I2C_PB7_FMP::Fmp,
568 }
569 }
570 #[inline(always)]
572 pub fn is_standard(&self) -> bool {
573 *self == I2C_PB7_FMP::Standard
574 }
575 #[inline(always)]
577 pub fn is_fmp(&self) -> bool {
578 *self == I2C_PB7_FMP::Fmp
579 }
580}
581pub type I2C_PB7_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C_PB7_FMP>;
583impl<'a, REG> I2C_PB7_FMP_W<'a, REG>
584where
585 REG: crate::Writable + crate::RegisterSpec,
586{
587 #[inline(always)]
589 pub fn standard(self) -> &'a mut crate::W<REG> {
590 self.variant(I2C_PB7_FMP::Standard)
591 }
592 #[inline(always)]
594 pub fn fmp(self) -> &'a mut crate::W<REG> {
595 self.variant(I2C_PB7_FMP::Fmp)
596 }
597}
598#[cfg_attr(feature = "defmt", derive(defmt::Format))]
602#[derive(Clone, Copy, Debug, PartialEq, Eq)]
603pub enum I2C_PB8_FMP {
604 Standard = 0,
606 Fmp = 1,
608}
609impl From<I2C_PB8_FMP> for bool {
610 #[inline(always)]
611 fn from(variant: I2C_PB8_FMP) -> Self {
612 variant as u8 != 0
613 }
614}
615pub type I2C_PB8_FMP_R = crate::BitReader<I2C_PB8_FMP>;
617impl I2C_PB8_FMP_R {
618 #[inline(always)]
620 pub const fn variant(&self) -> I2C_PB8_FMP {
621 match self.bits {
622 false => I2C_PB8_FMP::Standard,
623 true => I2C_PB8_FMP::Fmp,
624 }
625 }
626 #[inline(always)]
628 pub fn is_standard(&self) -> bool {
629 *self == I2C_PB8_FMP::Standard
630 }
631 #[inline(always)]
633 pub fn is_fmp(&self) -> bool {
634 *self == I2C_PB8_FMP::Fmp
635 }
636}
637pub type I2C_PB8_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C_PB8_FMP>;
639impl<'a, REG> I2C_PB8_FMP_W<'a, REG>
640where
641 REG: crate::Writable + crate::RegisterSpec,
642{
643 #[inline(always)]
645 pub fn standard(self) -> &'a mut crate::W<REG> {
646 self.variant(I2C_PB8_FMP::Standard)
647 }
648 #[inline(always)]
650 pub fn fmp(self) -> &'a mut crate::W<REG> {
651 self.variant(I2C_PB8_FMP::Fmp)
652 }
653}
654#[cfg_attr(feature = "defmt", derive(defmt::Format))]
658#[derive(Clone, Copy, Debug, PartialEq, Eq)]
659pub enum I2C_PB9_FMP {
660 Standard = 0,
662 Fmp = 1,
664}
665impl From<I2C_PB9_FMP> for bool {
666 #[inline(always)]
667 fn from(variant: I2C_PB9_FMP) -> Self {
668 variant as u8 != 0
669 }
670}
671pub type I2C_PB9_FMP_R = crate::BitReader<I2C_PB9_FMP>;
673impl I2C_PB9_FMP_R {
674 #[inline(always)]
676 pub const fn variant(&self) -> I2C_PB9_FMP {
677 match self.bits {
678 false => I2C_PB9_FMP::Standard,
679 true => I2C_PB9_FMP::Fmp,
680 }
681 }
682 #[inline(always)]
684 pub fn is_standard(&self) -> bool {
685 *self == I2C_PB9_FMP::Standard
686 }
687 #[inline(always)]
689 pub fn is_fmp(&self) -> bool {
690 *self == I2C_PB9_FMP::Fmp
691 }
692}
693pub type I2C_PB9_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C_PB9_FMP>;
695impl<'a, REG> I2C_PB9_FMP_W<'a, REG>
696where
697 REG: crate::Writable + crate::RegisterSpec,
698{
699 #[inline(always)]
701 pub fn standard(self) -> &'a mut crate::W<REG> {
702 self.variant(I2C_PB9_FMP::Standard)
703 }
704 #[inline(always)]
706 pub fn fmp(self) -> &'a mut crate::W<REG> {
707 self.variant(I2C_PB9_FMP::Fmp)
708 }
709}
710#[cfg_attr(feature = "defmt", derive(defmt::Format))]
714#[derive(Clone, Copy, Debug, PartialEq, Eq)]
715pub enum I2C1_FMP {
716 Standard = 0,
718 Fmp = 1,
720}
721impl From<I2C1_FMP> for bool {
722 #[inline(always)]
723 fn from(variant: I2C1_FMP) -> Self {
724 variant as u8 != 0
725 }
726}
727pub type I2C1_FMP_R = crate::BitReader<I2C1_FMP>;
729impl I2C1_FMP_R {
730 #[inline(always)]
732 pub const fn variant(&self) -> I2C1_FMP {
733 match self.bits {
734 false => I2C1_FMP::Standard,
735 true => I2C1_FMP::Fmp,
736 }
737 }
738 #[inline(always)]
740 pub fn is_standard(&self) -> bool {
741 *self == I2C1_FMP::Standard
742 }
743 #[inline(always)]
745 pub fn is_fmp(&self) -> bool {
746 *self == I2C1_FMP::Fmp
747 }
748}
749pub type I2C1_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C1_FMP>;
751impl<'a, REG> I2C1_FMP_W<'a, REG>
752where
753 REG: crate::Writable + crate::RegisterSpec,
754{
755 #[inline(always)]
757 pub fn standard(self) -> &'a mut crate::W<REG> {
758 self.variant(I2C1_FMP::Standard)
759 }
760 #[inline(always)]
762 pub fn fmp(self) -> &'a mut crate::W<REG> {
763 self.variant(I2C1_FMP::Fmp)
764 }
765}
766#[cfg_attr(feature = "defmt", derive(defmt::Format))]
770#[derive(Clone, Copy, Debug, PartialEq, Eq)]
771pub enum I2C2_FMP {
772 Standard = 0,
774 Fmp = 1,
776}
777impl From<I2C2_FMP> for bool {
778 #[inline(always)]
779 fn from(variant: I2C2_FMP) -> Self {
780 variant as u8 != 0
781 }
782}
783pub type I2C2_FMP_R = crate::BitReader<I2C2_FMP>;
785impl I2C2_FMP_R {
786 #[inline(always)]
788 pub const fn variant(&self) -> I2C2_FMP {
789 match self.bits {
790 false => I2C2_FMP::Standard,
791 true => I2C2_FMP::Fmp,
792 }
793 }
794 #[inline(always)]
796 pub fn is_standard(&self) -> bool {
797 *self == I2C2_FMP::Standard
798 }
799 #[inline(always)]
801 pub fn is_fmp(&self) -> bool {
802 *self == I2C2_FMP::Fmp
803 }
804}
805pub type I2C2_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C2_FMP>;
807impl<'a, REG> I2C2_FMP_W<'a, REG>
808where
809 REG: crate::Writable + crate::RegisterSpec,
810{
811 #[inline(always)]
813 pub fn standard(self) -> &'a mut crate::W<REG> {
814 self.variant(I2C2_FMP::Standard)
815 }
816 #[inline(always)]
818 pub fn fmp(self) -> &'a mut crate::W<REG> {
819 self.variant(I2C2_FMP::Fmp)
820 }
821}
822#[cfg_attr(feature = "defmt", derive(defmt::Format))]
826#[derive(Clone, Copy, Debug, PartialEq, Eq)]
827#[repr(u8)]
828pub enum ENCODER_MODE {
829 NoRedirection = 0,
831 MapTim2tim15 = 1,
833 MapTim3tim15 = 2,
835 MapTim4tim15 = 3,
837}
838impl From<ENCODER_MODE> for u8 {
839 #[inline(always)]
840 fn from(variant: ENCODER_MODE) -> Self {
841 variant as _
842 }
843}
844impl crate::FieldSpec for ENCODER_MODE {
845 type Ux = u8;
846}
847impl crate::IsEnum for ENCODER_MODE {}
848pub type ENCODER_MODE_R = crate::FieldReader<ENCODER_MODE>;
850impl ENCODER_MODE_R {
851 #[inline(always)]
853 pub const fn variant(&self) -> ENCODER_MODE {
854 match self.bits {
855 0 => ENCODER_MODE::NoRedirection,
856 1 => ENCODER_MODE::MapTim2tim15,
857 2 => ENCODER_MODE::MapTim3tim15,
858 3 => ENCODER_MODE::MapTim4tim15,
859 _ => unreachable!(),
860 }
861 }
862 #[inline(always)]
864 pub fn is_no_redirection(&self) -> bool {
865 *self == ENCODER_MODE::NoRedirection
866 }
867 #[inline(always)]
869 pub fn is_map_tim2tim15(&self) -> bool {
870 *self == ENCODER_MODE::MapTim2tim15
871 }
872 #[inline(always)]
874 pub fn is_map_tim3tim15(&self) -> bool {
875 *self == ENCODER_MODE::MapTim3tim15
876 }
877 #[inline(always)]
879 pub fn is_map_tim4tim15(&self) -> bool {
880 *self == ENCODER_MODE::MapTim4tim15
881 }
882}
883pub type ENCODER_MODE_W<'a, REG> = crate::FieldWriter<'a, REG, 2, ENCODER_MODE, crate::Safe>;
885impl<'a, REG> ENCODER_MODE_W<'a, REG>
886where
887 REG: crate::Writable + crate::RegisterSpec,
888 REG::Ux: From<u8>,
889{
890 #[inline(always)]
892 pub fn no_redirection(self) -> &'a mut crate::W<REG> {
893 self.variant(ENCODER_MODE::NoRedirection)
894 }
895 #[inline(always)]
897 pub fn map_tim2tim15(self) -> &'a mut crate::W<REG> {
898 self.variant(ENCODER_MODE::MapTim2tim15)
899 }
900 #[inline(always)]
902 pub fn map_tim3tim15(self) -> &'a mut crate::W<REG> {
903 self.variant(ENCODER_MODE::MapTim3tim15)
904 }
905 #[inline(always)]
907 pub fn map_tim4tim15(self) -> &'a mut crate::W<REG> {
908 self.variant(ENCODER_MODE::MapTim4tim15)
909 }
910}
911#[cfg_attr(feature = "defmt", derive(defmt::Format))]
915#[derive(Clone, Copy, Debug, PartialEq, Eq)]
916pub enum I2C3_FMP {
917 Standard = 0,
919 Fmp = 1,
921}
922impl From<I2C3_FMP> for bool {
923 #[inline(always)]
924 fn from(variant: I2C3_FMP) -> Self {
925 variant as u8 != 0
926 }
927}
928pub type I2C3_FMP_R = crate::BitReader<I2C3_FMP>;
930impl I2C3_FMP_R {
931 #[inline(always)]
933 pub const fn variant(&self) -> I2C3_FMP {
934 match self.bits {
935 false => I2C3_FMP::Standard,
936 true => I2C3_FMP::Fmp,
937 }
938 }
939 #[inline(always)]
941 pub fn is_standard(&self) -> bool {
942 *self == I2C3_FMP::Standard
943 }
944 #[inline(always)]
946 pub fn is_fmp(&self) -> bool {
947 *self == I2C3_FMP::Fmp
948 }
949}
950pub type I2C3_FMP_W<'a, REG> = crate::BitWriter<'a, REG, I2C3_FMP>;
952impl<'a, REG> I2C3_FMP_W<'a, REG>
953where
954 REG: crate::Writable + crate::RegisterSpec,
955{
956 #[inline(always)]
958 pub fn standard(self) -> &'a mut crate::W<REG> {
959 self.variant(I2C3_FMP::Standard)
960 }
961 #[inline(always)]
963 pub fn fmp(self) -> &'a mut crate::W<REG> {
964 self.variant(I2C3_FMP::Fmp)
965 }
966}
967#[cfg_attr(feature = "defmt", derive(defmt::Format))]
971#[derive(Clone, Copy, Debug, PartialEq, Eq)]
972pub enum FPU_IE0 {
973 Disabled = 0,
975 Enabled = 1,
977}
978impl From<FPU_IE0> for bool {
979 #[inline(always)]
980 fn from(variant: FPU_IE0) -> Self {
981 variant as u8 != 0
982 }
983}
984pub type FPU_IE0_R = crate::BitReader<FPU_IE0>;
986impl FPU_IE0_R {
987 #[inline(always)]
989 pub const fn variant(&self) -> FPU_IE0 {
990 match self.bits {
991 false => FPU_IE0::Disabled,
992 true => FPU_IE0::Enabled,
993 }
994 }
995 #[inline(always)]
997 pub fn is_disabled(&self) -> bool {
998 *self == FPU_IE0::Disabled
999 }
1000 #[inline(always)]
1002 pub fn is_enabled(&self) -> bool {
1003 *self == FPU_IE0::Enabled
1004 }
1005}
1006pub type FPU_IE0_W<'a, REG> = crate::BitWriter<'a, REG, FPU_IE0>;
1008impl<'a, REG> FPU_IE0_W<'a, REG>
1009where
1010 REG: crate::Writable + crate::RegisterSpec,
1011{
1012 #[inline(always)]
1014 pub fn disabled(self) -> &'a mut crate::W<REG> {
1015 self.variant(FPU_IE0::Disabled)
1016 }
1017 #[inline(always)]
1019 pub fn enabled(self) -> &'a mut crate::W<REG> {
1020 self.variant(FPU_IE0::Enabled)
1021 }
1022}
1023#[cfg_attr(feature = "defmt", derive(defmt::Format))]
1027#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1028pub enum FPU_IE1 {
1029 Disabled = 0,
1031 Enabled = 1,
1033}
1034impl From<FPU_IE1> for bool {
1035 #[inline(always)]
1036 fn from(variant: FPU_IE1) -> Self {
1037 variant as u8 != 0
1038 }
1039}
1040pub type FPU_IE1_R = crate::BitReader<FPU_IE1>;
1042impl FPU_IE1_R {
1043 #[inline(always)]
1045 pub const fn variant(&self) -> FPU_IE1 {
1046 match self.bits {
1047 false => FPU_IE1::Disabled,
1048 true => FPU_IE1::Enabled,
1049 }
1050 }
1051 #[inline(always)]
1053 pub fn is_disabled(&self) -> bool {
1054 *self == FPU_IE1::Disabled
1055 }
1056 #[inline(always)]
1058 pub fn is_enabled(&self) -> bool {
1059 *self == FPU_IE1::Enabled
1060 }
1061}
1062pub type FPU_IE1_W<'a, REG> = crate::BitWriter<'a, REG, FPU_IE1>;
1064impl<'a, REG> FPU_IE1_W<'a, REG>
1065where
1066 REG: crate::Writable + crate::RegisterSpec,
1067{
1068 #[inline(always)]
1070 pub fn disabled(self) -> &'a mut crate::W<REG> {
1071 self.variant(FPU_IE1::Disabled)
1072 }
1073 #[inline(always)]
1075 pub fn enabled(self) -> &'a mut crate::W<REG> {
1076 self.variant(FPU_IE1::Enabled)
1077 }
1078}
1079#[cfg_attr(feature = "defmt", derive(defmt::Format))]
1083#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1084pub enum FPU_IE2 {
1085 Disabled = 0,
1087 Enabled = 1,
1089}
1090impl From<FPU_IE2> for bool {
1091 #[inline(always)]
1092 fn from(variant: FPU_IE2) -> Self {
1093 variant as u8 != 0
1094 }
1095}
1096pub type FPU_IE2_R = crate::BitReader<FPU_IE2>;
1098impl FPU_IE2_R {
1099 #[inline(always)]
1101 pub const fn variant(&self) -> FPU_IE2 {
1102 match self.bits {
1103 false => FPU_IE2::Disabled,
1104 true => FPU_IE2::Enabled,
1105 }
1106 }
1107 #[inline(always)]
1109 pub fn is_disabled(&self) -> bool {
1110 *self == FPU_IE2::Disabled
1111 }
1112 #[inline(always)]
1114 pub fn is_enabled(&self) -> bool {
1115 *self == FPU_IE2::Enabled
1116 }
1117}
1118pub type FPU_IE2_W<'a, REG> = crate::BitWriter<'a, REG, FPU_IE2>;
1120impl<'a, REG> FPU_IE2_W<'a, REG>
1121where
1122 REG: crate::Writable + crate::RegisterSpec,
1123{
1124 #[inline(always)]
1126 pub fn disabled(self) -> &'a mut crate::W<REG> {
1127 self.variant(FPU_IE2::Disabled)
1128 }
1129 #[inline(always)]
1131 pub fn enabled(self) -> &'a mut crate::W<REG> {
1132 self.variant(FPU_IE2::Enabled)
1133 }
1134}
1135#[cfg_attr(feature = "defmt", derive(defmt::Format))]
1139#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1140pub enum FPU_IE3 {
1141 Disabled = 0,
1143 Enabled = 1,
1145}
1146impl From<FPU_IE3> for bool {
1147 #[inline(always)]
1148 fn from(variant: FPU_IE3) -> Self {
1149 variant as u8 != 0
1150 }
1151}
1152pub type FPU_IE3_R = crate::BitReader<FPU_IE3>;
1154impl FPU_IE3_R {
1155 #[inline(always)]
1157 pub const fn variant(&self) -> FPU_IE3 {
1158 match self.bits {
1159 false => FPU_IE3::Disabled,
1160 true => FPU_IE3::Enabled,
1161 }
1162 }
1163 #[inline(always)]
1165 pub fn is_disabled(&self) -> bool {
1166 *self == FPU_IE3::Disabled
1167 }
1168 #[inline(always)]
1170 pub fn is_enabled(&self) -> bool {
1171 *self == FPU_IE3::Enabled
1172 }
1173}
1174pub type FPU_IE3_W<'a, REG> = crate::BitWriter<'a, REG, FPU_IE3>;
1176impl<'a, REG> FPU_IE3_W<'a, REG>
1177where
1178 REG: crate::Writable + crate::RegisterSpec,
1179{
1180 #[inline(always)]
1182 pub fn disabled(self) -> &'a mut crate::W<REG> {
1183 self.variant(FPU_IE3::Disabled)
1184 }
1185 #[inline(always)]
1187 pub fn enabled(self) -> &'a mut crate::W<REG> {
1188 self.variant(FPU_IE3::Enabled)
1189 }
1190}
1191#[cfg_attr(feature = "defmt", derive(defmt::Format))]
1195#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1196pub enum FPU_IE4 {
1197 Disabled = 0,
1199 Enabled = 1,
1201}
1202impl From<FPU_IE4> for bool {
1203 #[inline(always)]
1204 fn from(variant: FPU_IE4) -> Self {
1205 variant as u8 != 0
1206 }
1207}
1208pub type FPU_IE4_R = crate::BitReader<FPU_IE4>;
1210impl FPU_IE4_R {
1211 #[inline(always)]
1213 pub const fn variant(&self) -> FPU_IE4 {
1214 match self.bits {
1215 false => FPU_IE4::Disabled,
1216 true => FPU_IE4::Enabled,
1217 }
1218 }
1219 #[inline(always)]
1221 pub fn is_disabled(&self) -> bool {
1222 *self == FPU_IE4::Disabled
1223 }
1224 #[inline(always)]
1226 pub fn is_enabled(&self) -> bool {
1227 *self == FPU_IE4::Enabled
1228 }
1229}
1230pub type FPU_IE4_W<'a, REG> = crate::BitWriter<'a, REG, FPU_IE4>;
1232impl<'a, REG> FPU_IE4_W<'a, REG>
1233where
1234 REG: crate::Writable + crate::RegisterSpec,
1235{
1236 #[inline(always)]
1238 pub fn disabled(self) -> &'a mut crate::W<REG> {
1239 self.variant(FPU_IE4::Disabled)
1240 }
1241 #[inline(always)]
1243 pub fn enabled(self) -> &'a mut crate::W<REG> {
1244 self.variant(FPU_IE4::Enabled)
1245 }
1246}
1247#[cfg_attr(feature = "defmt", derive(defmt::Format))]
1251#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1252pub enum FPU_IE5 {
1253 Disabled = 0,
1255 Enabled = 1,
1257}
1258impl From<FPU_IE5> for bool {
1259 #[inline(always)]
1260 fn from(variant: FPU_IE5) -> Self {
1261 variant as u8 != 0
1262 }
1263}
1264pub type FPU_IE5_R = crate::BitReader<FPU_IE5>;
1266impl FPU_IE5_R {
1267 #[inline(always)]
1269 pub const fn variant(&self) -> FPU_IE5 {
1270 match self.bits {
1271 false => FPU_IE5::Disabled,
1272 true => FPU_IE5::Enabled,
1273 }
1274 }
1275 #[inline(always)]
1277 pub fn is_disabled(&self) -> bool {
1278 *self == FPU_IE5::Disabled
1279 }
1280 #[inline(always)]
1282 pub fn is_enabled(&self) -> bool {
1283 *self == FPU_IE5::Enabled
1284 }
1285}
1286pub type FPU_IE5_W<'a, REG> = crate::BitWriter<'a, REG, FPU_IE5>;
1288impl<'a, REG> FPU_IE5_W<'a, REG>
1289where
1290 REG: crate::Writable + crate::RegisterSpec,
1291{
1292 #[inline(always)]
1294 pub fn disabled(self) -> &'a mut crate::W<REG> {
1295 self.variant(FPU_IE5::Disabled)
1296 }
1297 #[inline(always)]
1299 pub fn enabled(self) -> &'a mut crate::W<REG> {
1300 self.variant(FPU_IE5::Enabled)
1301 }
1302}
1303impl R {
1304 #[inline(always)]
1306 pub fn mem_mode(&self) -> MEM_MODE_R {
1307 MEM_MODE_R::new((self.bits & 7) as u8)
1308 }
1309 #[inline(always)]
1311 pub fn usb_it_rmp(&self) -> USB_IT_RMP_R {
1312 USB_IT_RMP_R::new(((self.bits >> 5) & 1) != 0)
1313 }
1314 #[inline(always)]
1316 pub fn tim1_itr3_rmp(&self) -> TIM1_ITR3_RMP_R {
1317 TIM1_ITR3_RMP_R::new(((self.bits >> 6) & 1) != 0)
1318 }
1319 #[inline(always)]
1321 pub fn dac1_trig_rmp(&self) -> DAC1_TRIG_RMP_R {
1322 DAC1_TRIG_RMP_R::new(((self.bits >> 7) & 1) != 0)
1323 }
1324 #[inline(always)]
1326 pub fn adc2_dma_rmp(&self) -> ADC2_DMA_RMP_R {
1327 ADC2_DMA_RMP_R::new(((self.bits >> 8) & 1) != 0)
1328 }
1329 #[inline(always)]
1331 pub fn tim16_dma_rmp(&self) -> TIM16_DMA_RMP_R {
1332 TIM16_DMA_RMP_R::new(((self.bits >> 11) & 1) != 0)
1333 }
1334 #[inline(always)]
1336 pub fn tim17_dma_rmp(&self) -> TIM17_DMA_RMP_R {
1337 TIM17_DMA_RMP_R::new(((self.bits >> 12) & 1) != 0)
1338 }
1339 #[inline(always)]
1341 pub fn tim6_dac1_dma_rmp(&self) -> TIM6_DAC1_DMA_RMP_R {
1342 TIM6_DAC1_DMA_RMP_R::new(((self.bits >> 13) & 1) != 0)
1343 }
1344 #[inline(always)]
1346 pub fn i2c_pb6_fmp(&self) -> I2C_PB6_FMP_R {
1347 I2C_PB6_FMP_R::new(((self.bits >> 16) & 1) != 0)
1348 }
1349 #[inline(always)]
1351 pub fn i2c_pb7_fmp(&self) -> I2C_PB7_FMP_R {
1352 I2C_PB7_FMP_R::new(((self.bits >> 17) & 1) != 0)
1353 }
1354 #[inline(always)]
1356 pub fn i2c_pb8_fmp(&self) -> I2C_PB8_FMP_R {
1357 I2C_PB8_FMP_R::new(((self.bits >> 18) & 1) != 0)
1358 }
1359 #[inline(always)]
1361 pub fn i2c_pb9_fmp(&self) -> I2C_PB9_FMP_R {
1362 I2C_PB9_FMP_R::new(((self.bits >> 19) & 1) != 0)
1363 }
1364 #[inline(always)]
1366 pub fn i2c1_fmp(&self) -> I2C1_FMP_R {
1367 I2C1_FMP_R::new(((self.bits >> 20) & 1) != 0)
1368 }
1369 #[inline(always)]
1371 pub fn i2c2_fmp(&self) -> I2C2_FMP_R {
1372 I2C2_FMP_R::new(((self.bits >> 21) & 1) != 0)
1373 }
1374 #[inline(always)]
1376 pub fn encoder_mode(&self) -> ENCODER_MODE_R {
1377 ENCODER_MODE_R::new(((self.bits >> 22) & 3) as u8)
1378 }
1379 #[inline(always)]
1381 pub fn i2c3_fmp(&self) -> I2C3_FMP_R {
1382 I2C3_FMP_R::new(((self.bits >> 24) & 1) != 0)
1383 }
1384 #[inline(always)]
1386 pub fn fpu_ie0(&self) -> FPU_IE0_R {
1387 FPU_IE0_R::new(((self.bits >> 26) & 1) != 0)
1388 }
1389 #[inline(always)]
1391 pub fn fpu_ie1(&self) -> FPU_IE1_R {
1392 FPU_IE1_R::new(((self.bits >> 27) & 1) != 0)
1393 }
1394 #[inline(always)]
1396 pub fn fpu_ie2(&self) -> FPU_IE2_R {
1397 FPU_IE2_R::new(((self.bits >> 28) & 1) != 0)
1398 }
1399 #[inline(always)]
1401 pub fn fpu_ie3(&self) -> FPU_IE3_R {
1402 FPU_IE3_R::new(((self.bits >> 29) & 1) != 0)
1403 }
1404 #[inline(always)]
1406 pub fn fpu_ie4(&self) -> FPU_IE4_R {
1407 FPU_IE4_R::new(((self.bits >> 30) & 1) != 0)
1408 }
1409 #[inline(always)]
1411 pub fn fpu_ie5(&self) -> FPU_IE5_R {
1412 FPU_IE5_R::new(((self.bits >> 31) & 1) != 0)
1413 }
1414}
1415impl core::fmt::Debug for R {
1416 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1417 f.debug_struct("CFGR1")
1418 .field("mem_mode", &self.mem_mode())
1419 .field("usb_it_rmp", &self.usb_it_rmp())
1420 .field("tim1_itr3_rmp", &self.tim1_itr3_rmp())
1421 .field("dac1_trig_rmp", &self.dac1_trig_rmp())
1422 .field("adc2_dma_rmp", &self.adc2_dma_rmp())
1423 .field("tim16_dma_rmp", &self.tim16_dma_rmp())
1424 .field("tim17_dma_rmp", &self.tim17_dma_rmp())
1425 .field("tim6_dac1_dma_rmp", &self.tim6_dac1_dma_rmp())
1426 .field("i2c_pb6_fmp", &self.i2c_pb6_fmp())
1427 .field("i2c_pb7_fmp", &self.i2c_pb7_fmp())
1428 .field("i2c_pb8_fmp", &self.i2c_pb8_fmp())
1429 .field("i2c_pb9_fmp", &self.i2c_pb9_fmp())
1430 .field("i2c1_fmp", &self.i2c1_fmp())
1431 .field("i2c2_fmp", &self.i2c2_fmp())
1432 .field("encoder_mode", &self.encoder_mode())
1433 .field("fpu_ie5", &self.fpu_ie5())
1434 .field("fpu_ie4", &self.fpu_ie4())
1435 .field("fpu_ie3", &self.fpu_ie3())
1436 .field("fpu_ie2", &self.fpu_ie2())
1437 .field("fpu_ie1", &self.fpu_ie1())
1438 .field("fpu_ie0", &self.fpu_ie0())
1439 .field("i2c3_fmp", &self.i2c3_fmp())
1440 .finish()
1441 }
1442}
1443impl W {
1444 #[inline(always)]
1446 pub fn mem_mode(&mut self) -> MEM_MODE_W<CFGR1rs> {
1447 MEM_MODE_W::new(self, 0)
1448 }
1449 #[inline(always)]
1451 pub fn usb_it_rmp(&mut self) -> USB_IT_RMP_W<CFGR1rs> {
1452 USB_IT_RMP_W::new(self, 5)
1453 }
1454 #[inline(always)]
1456 pub fn tim1_itr3_rmp(&mut self) -> TIM1_ITR3_RMP_W<CFGR1rs> {
1457 TIM1_ITR3_RMP_W::new(self, 6)
1458 }
1459 #[inline(always)]
1461 pub fn dac1_trig_rmp(&mut self) -> DAC1_TRIG_RMP_W<CFGR1rs> {
1462 DAC1_TRIG_RMP_W::new(self, 7)
1463 }
1464 #[inline(always)]
1466 pub fn adc2_dma_rmp(&mut self) -> ADC2_DMA_RMP_W<CFGR1rs> {
1467 ADC2_DMA_RMP_W::new(self, 8)
1468 }
1469 #[inline(always)]
1471 pub fn tim16_dma_rmp(&mut self) -> TIM16_DMA_RMP_W<CFGR1rs> {
1472 TIM16_DMA_RMP_W::new(self, 11)
1473 }
1474 #[inline(always)]
1476 pub fn tim17_dma_rmp(&mut self) -> TIM17_DMA_RMP_W<CFGR1rs> {
1477 TIM17_DMA_RMP_W::new(self, 12)
1478 }
1479 #[inline(always)]
1481 pub fn tim6_dac1_dma_rmp(&mut self) -> TIM6_DAC1_DMA_RMP_W<CFGR1rs> {
1482 TIM6_DAC1_DMA_RMP_W::new(self, 13)
1483 }
1484 #[inline(always)]
1486 pub fn i2c_pb6_fmp(&mut self) -> I2C_PB6_FMP_W<CFGR1rs> {
1487 I2C_PB6_FMP_W::new(self, 16)
1488 }
1489 #[inline(always)]
1491 pub fn i2c_pb7_fmp(&mut self) -> I2C_PB7_FMP_W<CFGR1rs> {
1492 I2C_PB7_FMP_W::new(self, 17)
1493 }
1494 #[inline(always)]
1496 pub fn i2c_pb8_fmp(&mut self) -> I2C_PB8_FMP_W<CFGR1rs> {
1497 I2C_PB8_FMP_W::new(self, 18)
1498 }
1499 #[inline(always)]
1501 pub fn i2c_pb9_fmp(&mut self) -> I2C_PB9_FMP_W<CFGR1rs> {
1502 I2C_PB9_FMP_W::new(self, 19)
1503 }
1504 #[inline(always)]
1506 pub fn i2c1_fmp(&mut self) -> I2C1_FMP_W<CFGR1rs> {
1507 I2C1_FMP_W::new(self, 20)
1508 }
1509 #[inline(always)]
1511 pub fn i2c2_fmp(&mut self) -> I2C2_FMP_W<CFGR1rs> {
1512 I2C2_FMP_W::new(self, 21)
1513 }
1514 #[inline(always)]
1516 pub fn encoder_mode(&mut self) -> ENCODER_MODE_W<CFGR1rs> {
1517 ENCODER_MODE_W::new(self, 22)
1518 }
1519 #[inline(always)]
1521 pub fn i2c3_fmp(&mut self) -> I2C3_FMP_W<CFGR1rs> {
1522 I2C3_FMP_W::new(self, 24)
1523 }
1524 #[inline(always)]
1526 pub fn fpu_ie0(&mut self) -> FPU_IE0_W<CFGR1rs> {
1527 FPU_IE0_W::new(self, 26)
1528 }
1529 #[inline(always)]
1531 pub fn fpu_ie1(&mut self) -> FPU_IE1_W<CFGR1rs> {
1532 FPU_IE1_W::new(self, 27)
1533 }
1534 #[inline(always)]
1536 pub fn fpu_ie2(&mut self) -> FPU_IE2_W<CFGR1rs> {
1537 FPU_IE2_W::new(self, 28)
1538 }
1539 #[inline(always)]
1541 pub fn fpu_ie3(&mut self) -> FPU_IE3_W<CFGR1rs> {
1542 FPU_IE3_W::new(self, 29)
1543 }
1544 #[inline(always)]
1546 pub fn fpu_ie4(&mut self) -> FPU_IE4_W<CFGR1rs> {
1547 FPU_IE4_W::new(self, 30)
1548 }
1549 #[inline(always)]
1551 pub fn fpu_ie5(&mut self) -> FPU_IE5_W<CFGR1rs> {
1552 FPU_IE5_W::new(self, 31)
1553 }
1554}
1555pub struct CFGR1rs;
1561impl crate::RegisterSpec for CFGR1rs {
1562 type Ux = u32;
1563}
1564impl crate::Readable for CFGR1rs {}
1566impl crate::Writable for CFGR1rs {
1568 type Safety = crate::Unsafe;
1569}
1570impl crate::Resettable for CFGR1rs {}