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.
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
Data direction | Parameter name | Description |
---|---|---|
[out] | config |
Configuration structure to initialize to default values |