19.6.4.1.1 Function spi_get_config_defaults()

Initializes an SPI configuration structure to default values.

void spi_get_config_defaults( struct spi_config *const config)

This function will initialize a given SPI configuration structure to a set of known default values. This function should be called on any new instance of the configuration structures before being modified by the user application.

The default configuration is as follows:
  • Master mode enabled

  • MSB of the data is transmitted first

  • Transfer mode 0

  • MUX Setting D

  • Character size eight bits

  • Not enabled in sleep mode

  • Receiver enabled

  • Baudrate 100000

  • Default pinmux settings for all pads

  • GCLK generator 0

Table 19-9. Parameters
Data directionParameter nameDescription

[out]

config

Configuration structure to initialize to default values