1.2.21.46 1.3.25.46 1.4.21.46 1.5.25.46 1.6.22.46 1.7.23.46 1.9.19.46 1.29.23.46 1.30.18.46 1.31.18.46 1.32.26.46 1.33.16.46 1.37.18.46 1.38.21.46 1.39.18.46 1.40.20.46 SERCOMx_SPI_Initialize Function

C

/* x = SERCOM instance number */

/* SPI master and slave mode */

void SERCOMx_SPI_Initialize (void);	

Summary

Initializes instance x of the SERCOM module in SPI master or slave mode.

Description

This function initializes instance x of SERCOM module in SPI master or slave mode. This function should be called before any other library function. The SERCOM module will be configured as per the MHC settings.

Precondition

MCC GUI should be configured with the right values

Parameters

None.

Returns

None.

Example

SERCOM0_SPI_Initialize();

Remarks

This function must be called once before any other SPI function is called