@@ -541,10 +541,8 @@ pub trait SpiExt<SPI, WORD>: Sized {
541
541
CONFIG : Into < Config > ;
542
542
}
543
543
544
- pub trait SpiEnabledExt :
545
- SpiAllExt + FullDuplex < Self :: Word , Error = Error >
546
- {
547
- type Disabled : SpiDisabledExt <
544
+ pub trait SpiEnabled : SpiAll + FullDuplex < Self :: Word , Error = Error > {
545
+ type Disabled : SpiDisabled <
548
546
Spi = Self :: Spi ,
549
547
Word = Self :: Word ,
550
548
Enabled = Self ,
@@ -558,8 +556,8 @@ pub trait SpiEnabledExt:
558
556
/// disabled.
559
557
fn disable ( self ) -> Self :: Disabled ;
560
558
561
- /// Resets the SPI peripheral. This is just a call to [SpiEnabledExt ::disable]
562
- /// and [SpiDisabledExt ::enable]
559
+ /// Resets the SPI peripheral. This is just a call to [SpiEnabled ::disable]
560
+ /// and [SpiDisabled ::enable]
563
561
fn reset ( self ) -> Self {
564
562
self . disable ( ) . enable ( )
565
563
}
@@ -587,9 +585,9 @@ pub trait SpiEnabledExt:
587
585
fn end_transaction ( & mut self ) -> Result < ( ) , Error > ;
588
586
}
589
587
590
- pub trait SpiDisabledExt : SpiAllExt {
588
+ pub trait SpiDisabled : SpiAll {
591
589
type Rec ;
592
- type Enabled : SpiEnabledExt < Spi = Self :: Spi , Word = Self :: Word > ;
590
+ type Enabled : SpiEnabled < Spi = Self :: Spi , Word = Self :: Word > ;
593
591
594
592
/// Enables the SPI peripheral.
595
593
/// Clears the MODF flag, the SSI flag, and sets the SPE bit.
@@ -613,7 +611,7 @@ pub trait SpiDisabledExt: SpiAllExt {
613
611
fn free ( self ) -> ( Self :: Spi , Self :: Rec ) ;
614
612
}
615
613
616
- pub trait SpiAllExt : Sized {
614
+ pub trait SpiAll : Sized {
617
615
type Spi ;
618
616
type Word ;
619
617
@@ -807,7 +805,7 @@ macro_rules! spi {
807
805
}
808
806
}
809
807
810
- impl SpiEnabledExt for Spi <$SPIX, Enabled , $TY> {
808
+ impl SpiEnabled for Spi <$SPIX, Enabled , $TY> {
811
809
type Disabled = Spi <Self :: Spi , Disabled , Self :: Word >;
812
810
813
811
fn disable( self ) -> Spi <$SPIX, Disabled , $TY> {
@@ -861,7 +859,7 @@ macro_rules! spi {
861
859
}
862
860
}
863
861
864
- impl SpiDisabledExt for Spi <$SPIX, Disabled , $TY> {
862
+ impl SpiDisabled for Spi <$SPIX, Disabled , $TY> {
865
863
type Rec = rec:: $Rec;
866
864
type Enabled = Spi <Self :: Spi , Enabled , Self :: Word >;
867
865
@@ -897,7 +895,7 @@ macro_rules! spi {
897
895
}
898
896
}
899
897
900
- impl <EN > SpiAllExt for Spi <$SPIX, EN , $TY>
898
+ impl <EN > SpiAll for Spi <$SPIX, EN , $TY>
901
899
{
902
900
type Word = $TY;
903
901
type Spi = $SPIX;
0 commit comments