@@ -405,7 +405,7 @@ pub struct Safe;
405
405
pub struct Unsafe ;
406
406
407
407
#[ doc( hidden) ]
408
- pub struct FieldWriterRaw < ' a , U , REG , N , FI , Safety , const WI : u8 , const O : u8 >
408
+ pub struct FieldWriterRaw < ' a , U , REG , const WI : u8 , const O : u8 , N , FI , Safety >
409
409
where
410
410
REG : Writable + RegisterSpec < Ux = U > ,
411
411
N : From < FI > ,
@@ -414,8 +414,8 @@ where
414
414
_field : marker:: PhantomData < ( N , FI , Safety ) > ,
415
415
}
416
416
417
- impl < ' a , U , REG , N , FI , Safety , const WI : u8 , const O : u8 >
418
- FieldWriterRaw < ' a , U , REG , N , FI , Safety , WI , O >
417
+ impl < ' a , U , REG , const WI : u8 , const O : u8 , N , FI , Safety >
418
+ FieldWriterRaw < ' a , U , REG , WI , O , N , FI , Safety >
419
419
where
420
420
REG : Writable + RegisterSpec < Ux = U > ,
421
421
N : From < FI > ,
@@ -432,7 +432,7 @@ where
432
432
}
433
433
434
434
#[ doc( hidden) ]
435
- pub struct BitWriterRaw < ' a , U , REG , FI , M , const O : u8 >
435
+ pub struct BitWriterRaw < ' a , U , REG , const O : u8 , FI , M >
436
436
where
437
437
REG : Writable + RegisterSpec < Ux = U > ,
438
438
bool : From < FI > ,
@@ -441,7 +441,7 @@ where
441
441
_field : marker:: PhantomData < ( FI , M ) > ,
442
442
}
443
443
444
- impl < ' a , U , REG , FI , M , const O : u8 > BitWriterRaw < ' a , U , REG , FI , M , O >
444
+ impl < ' a , U , REG , const O : u8 , FI , M > BitWriterRaw < ' a , U , REG , O , FI , M >
445
445
where
446
446
REG : Writable + RegisterSpec < Ux = U > ,
447
447
bool : From < FI > ,
@@ -458,13 +458,13 @@ where
458
458
}
459
459
460
460
/// Write field Proxy with unsafe `bits`
461
- pub type FieldWriter < ' a , U , REG , N , FI , const WI : u8 , const O : u8 > =
462
- FieldWriterRaw < ' a , U , REG , N , FI , Unsafe , WI , O > ;
461
+ pub type FieldWriter < ' a , U , REG , const WI : u8 , const O : u8 , N = u8 , FI = u8 > =
462
+ FieldWriterRaw < ' a , U , REG , WI , O , N , FI , Unsafe > ;
463
463
/// Write field Proxy with safe `bits`
464
- pub type FieldWriterSafe < ' a , U , REG , N , FI , const WI : u8 , const O : u8 > =
465
- FieldWriterRaw < ' a , U , REG , N , FI , Safe , WI , O > ;
464
+ pub type FieldWriterSafe < ' a , U , REG , const WI : u8 , const O : u8 , N = u8 , FI = u8 > =
465
+ FieldWriterRaw < ' a , U , REG , WI , O , N , FI , Safe > ;
466
466
467
- impl < ' a , U , REG , N , FI , const WI : u8 , const OF : u8 > FieldWriter < ' a , U , REG , N , FI , WI , OF >
467
+ impl < ' a , U , REG , const WI : u8 , const OF : u8 , N , FI > FieldWriter < ' a , U , REG , WI , OF , N , FI >
468
468
where
469
469
REG : Writable + RegisterSpec < Ux = U > ,
470
470
N : From < FI > ,
@@ -473,7 +473,7 @@ where
473
473
pub const WIDTH : u8 = WI ;
474
474
}
475
475
476
- impl < ' a , U , REG , N , FI , const WI : u8 , const OF : u8 > FieldWriterSafe < ' a , U , REG , N , FI , WI , OF >
476
+ impl < ' a , U , REG , const WI : u8 , const OF : u8 , N , FI > FieldWriterSafe < ' a , U , REG , WI , OF , N , FI >
477
477
where
478
478
REG : Writable + RegisterSpec < Ux = U > ,
479
479
N : From < FI > ,
@@ -488,9 +488,9 @@ macro_rules! bit_proxy {
488
488
pub struct $mwv;
489
489
490
490
/// Bit-wise write field proxy
491
- pub type $writer<' a, U , REG , FI , const O : u8 > = BitWriterRaw <' a, U , REG , FI , $mwv, O >;
491
+ pub type $writer<' a, U , REG , const O : u8 , FI = bool > = BitWriterRaw <' a, U , REG , O , FI , $mwv>;
492
492
493
- impl <' a, U , REG , FI , const OF : u8 > $writer<' a, U , REG , FI , OF >
493
+ impl <' a, U , REG , const OF : u8 , FI > $writer<' a, U , REG , OF , FI >
494
494
where
495
495
REG : Writable + RegisterSpec <Ux = U >,
496
496
bool : From <FI >,
@@ -503,7 +503,7 @@ macro_rules! bit_proxy {
503
503
504
504
macro_rules! impl_bit_proxy {
505
505
( $writer: ident) => {
506
- impl <' a, U , REG , FI , const OF : u8 > $writer<' a, U , REG , FI , OF >
506
+ impl <' a, U , REG , const OF : u8 , FI > $writer<' a, U , REG , OF , FI >
507
507
where
508
508
REG : Writable + RegisterSpec <Ux = U >,
509
509
U : RawReg ,
@@ -533,7 +533,7 @@ bit_proxy!(BitWriter0S, Bit0S);
533
533
bit_proxy ! ( BitWriter1T , Bit1T ) ;
534
534
bit_proxy ! ( BitWriter0T , Bit0T ) ;
535
535
536
- impl < ' a , U , REG , N , FI , const WI : u8 , const OF : u8 > FieldWriter < ' a , U , REG , N , FI , WI , OF >
536
+ impl < ' a , U , REG , const WI : u8 , const OF : u8 , N , FI > FieldWriter < ' a , U , REG , WI , OF , N , FI >
537
537
where
538
538
REG : Writable + RegisterSpec < Ux = U > ,
539
539
U : RawReg + From < N > ,
@@ -556,7 +556,7 @@ where
556
556
unsafe { self . bits ( N :: from ( variant) ) }
557
557
}
558
558
}
559
- impl < ' a , U , REG , N , FI , const WI : u8 , const OF : u8 > FieldWriterSafe < ' a , U , REG , N , FI , WI , OF >
559
+ impl < ' a , U , REG , const WI : u8 , const OF : u8 , N , FI > FieldWriterSafe < ' a , U , REG , WI , OF , N , FI >
560
560
where
561
561
REG : Writable + RegisterSpec < Ux = U > ,
562
562
U : RawReg + From < N > ,
@@ -584,7 +584,7 @@ impl_bit_proxy!(BitWriter0S);
584
584
impl_bit_proxy ! ( BitWriter1T ) ;
585
585
impl_bit_proxy ! ( BitWriter0T ) ;
586
586
587
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter < ' a , U , REG , FI , OF >
587
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter < ' a , U , REG , OF , FI >
588
588
where
589
589
REG : Writable + RegisterSpec < Ux = U > ,
590
590
U : RawReg ,
@@ -604,7 +604,7 @@ where
604
604
}
605
605
}
606
606
607
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter1S < ' a , U , REG , FI , OF >
607
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter1S < ' a , U , REG , OF , FI >
608
608
where
609
609
REG : Writable + RegisterSpec < Ux = U > ,
610
610
U : RawReg ,
@@ -618,7 +618,7 @@ where
618
618
}
619
619
}
620
620
621
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter0C < ' a , U , REG , FI , OF >
621
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter0C < ' a , U , REG , OF , FI >
622
622
where
623
623
REG : Writable + RegisterSpec < Ux = U > ,
624
624
U : RawReg ,
@@ -632,7 +632,7 @@ where
632
632
}
633
633
}
634
634
635
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter1C < ' a , U , REG , FI , OF >
635
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter1C < ' a , U , REG , OF , FI >
636
636
where
637
637
REG : Writable + RegisterSpec < Ux = U > ,
638
638
U : RawReg ,
@@ -646,7 +646,7 @@ where
646
646
}
647
647
}
648
648
649
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter0S < ' a , U , REG , FI , OF >
649
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter0S < ' a , U , REG , OF , FI >
650
650
where
651
651
REG : Writable + RegisterSpec < Ux = U > ,
652
652
U : RawReg ,
@@ -660,7 +660,7 @@ where
660
660
}
661
661
}
662
662
663
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter1T < ' a , U , REG , FI , OF >
663
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter1T < ' a , U , REG , OF , FI >
664
664
where
665
665
REG : Writable + RegisterSpec < Ux = U > ,
666
666
U : RawReg ,
@@ -674,7 +674,7 @@ where
674
674
}
675
675
}
676
676
677
- impl < ' a , U , REG , FI , const OF : u8 > BitWriter0T < ' a , U , REG , FI , OF >
677
+ impl < ' a , U , REG , const OF : u8 , FI > BitWriter0T < ' a , U , REG , OF , FI >
678
678
where
679
679
REG : Writable + RegisterSpec < Ux = U > ,
680
680
U : RawReg ,
0 commit comments