1.35.21.39 USARTx_SPI_Initialize Function

C

/* x = USART SPI instance number */

/* USART SPI master mode */
void USARTx_SPI_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

USART1_SPI_Initialize();

Remarks

This function must be called only once and before any other SPI function is called.