1.1.2 System - SPI

The SPI interface API connects the WINCS02 driver to an appropriate SPI driver within the Harmony framework. Depending on hardware and system configuration Harmony will construct a suitable SPI interface layer for use by the WINCS02 driver.

A structure WDRV_WINC_SPI_CFG is provided for SPI driver specific configuration to be passed through the WINCS02 driver initialization to the SPI interface via WDRV_WINC_SPIInitialize.

Once initialized, the WINCS02 driver will open the SPI driver by calling WDRV_WINC_SPIOpen and send and receive data by calling WDRV_WINC_SPISendReceive.

If the WINCS02 driver is de-initialized it will call WDRV_WINC_SPIDeinitialize to close and de-initialize the SPI driver.