[−][src]Function mraa_sys::mraa_spi_lookup
pub unsafe extern "C" fn mraa_spi_lookup(spi_name: *const c_char) -> c_int
Get SPI bus index by bus name, board must be initialised.
@param spi_name: Name of SPI bus. Eg: SPI2 @return int of MRAA index for SPI bus or -1 if not found.