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.
Type | Name | Description |
---|---|---|
enum spi_character_size | character_size |
SPI character size |
enum spi_data_order | data_order |
Data order |
enum gclk_generator | generator_source |
GCLK generator to use as clock source |
bool | master_slave_select_enable |
Enable Master Slave Select |
enum spi_mode | mode |
SPI mode |
union spi_config.mode_specific | mode_specific |
Union for slave or master specific configuration |
enum spi_signal_mux_setting | mux_setting |
MUX setting |
uint32_t | pinmux_pad0 |
PAD0 pinmux |
uint32_t | pinmux_pad1 |
PAD1 pinmux |
uint32_t | pinmux_pad2 |
PAD2 pinmux |
uint32_t | pinmux_pad3 |
PAD3 pinmux |
bool | receiver_enable |
Enable receiver |
bool | run_in_standby |
Enabled in sleep modes |
bool | select_slave_low_detect_enable |
Enable Slave Select Low Detect |
enum spi_transfer_mode | transfer_mode |
Transfer mode |