1.8.10.1 MCSPIx_Initialize Function
C
/* x = MCSPI instance number */ /* MCSPI master and slave mode */ void MCSPIx_Initialize (void)
Summary
Initializes MCSPI module of the device
Description
This function initializes MCSPI PLIB of the device with the values configured in MCC GUI. Once the peripheral is initialized, transfer APIs can be used to transfer the data.
Precondition
MCC GUI should be configured with the right values.
Parameters
None.
Returns
None.
Example
MCSPI1_Initialize();
Remarks
This function must be called only once and before any other MCSPI function is called.