17.6.3.2.2 Function i2c_master_get_config_defaults()

Gets the I2C master default configurations.

void i2c_master_get_config_defaults( struct i2c_master_config *const config)

Use to initialize the configuration structure to known default values.

The default configuration is as follows:
  • Baudrate 100KHz

  • GCLK generator 0

  • Do not run in standby

  • Start bit hold time 300ns - 600ns

  • Buffer timeout = 65535

  • Unknown bus status timeout = 65535

  • Do not run in standby

  • PINMUX_DEFAULT for SERCOM pads

Those default configuration only available if the device supports it:
  • High speed baudrate 3.4MHz

  • Standard-mode and Fast-mode transfer speed

  • SCL stretch disabled

  • Slave SCL low extend time-out disabled

  • Master SCL low extend time-out disabled

Table 17-10. Parameters
Data directionParameter nameDescription

[out]

config

Pointer to configuration structure to be initiated