spi_init()
QNX SDP8.0SPI Framework TechnotesAPIConfiguration
Initialize the SPI hardware interface
Synopsis:
int spi_init( spi_bus_t *bus );
Arguments:
- spi_bus_t *bus
- A pointer to the SPI bus (controller) structure.
Description:
The spi_init() function initializes the SPI hardware interface and accesses the device driver where io-spi gets the other SPI driver functions.
Errors:
The spi_init() function returns EOK for success or errno if an error occurred. For values of errno, refer to the C Library Reference.
Page updated: