Function itsybitsy_m4::spi_master[][src]

pub fn spi_master(
    clocks: &mut GenericClockController,
    baud: impl Into<Hertz>,
    sercom1: SERCOM1,
    mclk: &mut MCLK,
    sck: impl Into<Sck>,
    mosi: impl Into<Mosi>,
    miso: impl Into<Miso>
) -> Spi
Expand description

Convenience for setting up the default SPI. This powers up SERCOM1 and configures it for use as an SPI Master in SPI Mode 0.