pub fn init<F: Into<Hertz>>(
        self,
        clocks: &mut GenericClockController,
        bus_speed: F,
        sercom1: pac::SERCOM1,
        mclk: &mut MCLK,
        port: &mut Port,
    ) -> SPIMaster1<
        hal::sercom::Sercom1Pad2<Pb22<PfC>>,
        hal::sercom::Sercom1Pad3<Pb23<PfC>>,
        hal::sercom::Sercom1Pad1<Pa17<PfC>>,
    > {
        let gclk0 = clocks.gclk0();
        SPIMaster1::new(
            &clocks.sercom1_core(&gclk0).unwrap(),
            bus_speed.into(),
            spi::Mode {
                phase: spi::Phase::CaptureOnFirstTransition,
                polarity: spi::Polarity::IdleLow,
            },
            sercom1,
            mclk,
            (
                self.miso.into_pad(port),
                self.mosi.into_pad(port),
                self.sck.into_pad(port),
            ),
        )
    }
/// Convenience for setting up the labelled pins to operate
/// as an SPI master, running at the specified frequency.
Convenience for setting up the labelled pins to operate
as an SPI master, running at the specified frequency.
Convenience for setting up the labelled pins to operate as an SPI master running at the specified frequency .
pub fn init<F: Into<Hertz>>(
        self,
        clocks: &mut GenericClockController,
        bus_speed: F,
        sercom1: pac::SERCOM1,
        mclk: &mut MCLK,
        port: &mut Port,
    ) -> SPIMaster1<
        hal::sercom::Sercom1Pad2<Pb22<PfC>>,
        hal::sercom::Sercom1Pad3<Pb23<PfC>>,
        hal::sercom::Sercom1Pad1<Pa17<PfC>>,
    > {
        let gclk0 = clocks.gclk0();
        SPIMaster1::new(
            &clocks.sercom1_core(&gclk0).unwrap(),
            bus_speed.into(),
            spi::Mode {
                phase: spi::Phase::CaptureOnFirstTransition,
                polarity: spi::Polarity::IdleLow,
            },
            sercom1,
            mclk,
            (
                self.miso.into_pad(port),
                self.mosi.into_pad(port),
                self.sck.into_pad(port),
            ),
        )
    }
pub fn init < F : Into < Hertz > > ( self , clocks : & mut GenericClockController , bus_speed : F , sercom1 : pac :: SERCOM1 , mclk : & mut MCLK , port : & mut Port , ) -> SPIMaster1 < hal :: sercom :: Sercom1Pad2 < Pb22 < PfC > > , hal :: sercom :: Sercom1Pad3 < Pb23 < PfC > > , hal :: sercom :: Sercom1Pad1 < Pa17 < PfC > > , > { let gclk0 = clocks . gclk0 ( ) ; SPIMaster1 :: new ( & clocks . sercom1_core ( & gclk0 ) . unwrap ( ) , bus_speed . into ( ) , spi :: Mode { phase : spi :: Phase :: CaptureOnFirstTransition , polarity : spi :: Polarity :: IdleLow , } , sercom1 , mclk , ( self . miso . into_pad ( port ) , self . mosi . into_pad ( port ) , self . sck . into_pad ( port ) , ) , ) }
Convenience for setting up the labelled pins to operate
as an SPI master, running at the specified frequency.
Convenience for setting up the labelled pins to operate as an SPI master running at the specified frequency .
self
clocks
&mut GenericClockController
bus_speed
F
sercom1
pac::SERCOM1
mclk
&mut MCLK
port
&mut Port
self
clocks
&mut GenericClockController
bus_speed
F
sercom1
pac::SERCOM1
mclk
&mut MCLK
port
&mut Port