1.5.25.70 SERCOMx_I2C_Initialize Function

C

/* x = SERCOM instance number */

/* I2C master and slave mode */

void SERCOMx_I2C_Initialize(void)	

Summary

Initializes the instance of the SERCOM I2C peripheral in either master or slave mode.

Description

This function initializes the given instance of the SERCOM I2C peripheral as configured by the user from the MHC.

Precondition

The Generic Clock Generator should have been assigned to the SERCOMx Peripheral Clock Channel.

Parameters

None.

Returns

None.

Example

SERCOM0_I2C_Initialize();

Remarks

Resets the SERCOM I2C module if it was already running and reinitializes it