19.6.4.1.2 Function spi_slave_inst_get_config_defaults()

Initializes an SPI peripheral slave device configuration structure to default values.

void spi_slave_inst_get_config_defaults( struct spi_slave_inst_config *const config)

This function will initialize a given SPI slave device 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:
  • Slave Select on GPIO pin 10

  • Addressing not enabled

Table 19-10. Parameters
Data directionParameter nameDescription

[out]

config

Configuration structure to initialize to default values