Jump to main content

##

# 2.131.26 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 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

    USART1_SPI_Initialize();

## Remarks

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