Function bl602_sdk::spi::init [−][src]
pub fn init(
spi: *mut spi_dev_t,
port: u8,
mode: u8,
polar_phase: u8,
freq: u32,
tx_dma_ch: u8,
rx_dma_ch: u8,
pin_clk: u8,
pin_cs: u8,
pin_mosi: u8,
pin_miso: u8
) -> BlResult<()>
Expand description
Initialise an SPI Port. See spi_init
in “Initialise SPI Port” https://lupyuen.github.io/articles/spi#initialise-spi-port