1.10.21.10 1.11.21.10 1.12.22.10 1.13.20.10 1.14.15.10 1.15.16.10 1.16.22.10 1.17.18.10 1.18.18.10 1.19.18.10 1.20.22.10 1.21.23.10 1.22.25.10 1.23.23.10 1.24.20.10 1.27.22.10 1.34.20.10 1.35.13.10 SPIx_Initialize Function
C
/* x = SPI instance number */ /* SPI master and slave mode */ void SPIx_Initialize (void)
Summary
Initializes SPI module of the device
Description
This function initializes SPI PLIB of the device with the values configured in MHC GUI. Once the peripheral is initialized, transfer APIs can be used to transfer the data.
Precondition
MHC GUI should be configured with the right values.
Parameters
None.
Returns
None.
Example
SPI1_Initialize();
Remarks
This function must be called only once and before any other SPI function is called.