Function circuit_playground_express::spi_master [−][src]
pub fn spi_master(
clocks: &mut GenericClockController,
baud: impl Into<Hertz>,
sercom0: SERCOM0,
pm: &mut PM,
sck: impl Into<Sck>,
mosi: impl Into<Mosi>,
miso: impl Into<Miso>
) -> Spi
Expand description
Convenience for setting up the SPI bus on A1, A2, A3.
This powers up SERCOM0 and configures it for use as an
SPI Master in SPI Mode 0.
Unlike the flash_spi_master
function, this
one does not accept a CS pin; configuring a pin for CS
is the responsibility of the caller, because it could be
any OutputPin, or even a pulled up line on the slave.