19.6.2.1 Struct spi_config

Configuration structure for an SPI instance. This structure should be initialized by the spi_get_config_defaults function before being modified by the user application.

Table 19-3. Members
TypeNameDescription
enum spi_character_sizecharacter_size

SPI character size

enum spi_data_orderdata_order

Data order

enum gclk_generatorgenerator_source

GCLK generator to use as clock source

boolmaster_slave_select_enable

Enable Master Slave Select

enum spi_modemode

SPI mode

union spi_config.mode_specificmode_specific

Union for slave or master specific configuration

enum spi_signal_mux_settingmux_setting

MUX setting

uint32_tpinmux_pad0

PAD0 pinmux

uint32_tpinmux_pad1

PAD1 pinmux

uint32_tpinmux_pad2

PAD2 pinmux

uint32_tpinmux_pad3

PAD3 pinmux

boolreceiver_enable

Enable receiver

boolrun_in_standby

Enabled in sleep modes

boolselect_slave_low_detect_enable

Enable Slave Select Low Detect

enum spi_transfer_modetransfer_mode

Transfer mode