[−][src]Function sodaq_one::spi_master
pub fn spi_master<F: Into<Hertz>>(
clocks: &mut GenericClockController,
bus_speed: F,
sercom0: SERCOM0,
pm: &mut PM,
sck: Pa11<Input<Floating>>,
mosi: Pa10<Input<Floating>>,
miso: Pa8<Input<Floating>>,
port: &mut Port
) -> SPIMaster0
Convenience for setting up pins D8-D11 for SPI. This powers up SERCOM0 and configures it for use as an SPI Master in SPI Mode 0.