18.6.3.2.2 Function i2c_slave_get_config_defaults()

Gets the I2C slave default configurations.

void i2c_slave_get_config_defaults( struct i2c_slave_config *const config)

This will initialize the configuration structure to known default values.

The default configuration is as follows:
  • Disable SCL low timeout

  • 300ns - 600ns SDA hold time

  • Buffer timeout = 65535

  • Address with mask

  • Address = 0

  • Address mask = 0 (one single address)

  • General call address disabled

  • Address nack disabled if the interrupt driver is used

  • GCLK generator 0

  • Do not run in standby

  • PINMUX_DEFAULT for SERCOM pads

Those default configuration only available if the device supports it:
  • Not using 10-bit addressing

  • Standard-mode and Fast-mode transfer speed

  • SCL stretch disabled

  • Slave SCL low extend time-out disabled

Table 18-10. Parameters
Data directionParameter nameDescription

[out]

config

Pointer to configuration structure to be initialized