Function itsybitsy_m0::spi_master
source · pub fn spi_master(
clocks: &mut GenericClockController,
baud: impl Into<Hertz>,
sercom: SpiSercom,
pm: &mut PM,
sclk: impl Into<Sclk>,
mosi: impl Into<Mosi>,
miso: impl Into<Miso>
) -> Spi
Expand description
Convenience for setting up the labelled SPI peripheral. This powers up the SPI SERCOM and configures it for use as an SPI Master in SPI Mode 0.