Microchip® Advanced Software Framework

Driver configuration structure.

See Also
asfdoc_sam0_sercom_spi_master_vec_special_considerations for more information regarding SERCOM pad and pin MUX.

#include <spi_master_vec.h>

Data Fields

uint32_t baudrate
 Baud rate in Hertz. More...
 
enum spi_data_order data_order
 Data order. More...
 
enum gclk_generator gclk_generator
 GCLK generator to use for the SERCOM. More...
 
enum spi_signal_mux_setting mux_setting
 SERCOM pad MUX setting. More...
 
uint32_t pinmux_pad0
 Pin MUX setting for SERCOM pad 0. More...
 
uint32_t pinmux_pad1
 Pin MUX setting for SERCOM pad 1. More...
 
uint32_t pinmux_pad2
 Pin MUX setting for SERCOM pad 2. More...
 
uint32_t pinmux_pad3
 Pin MUX setting for SERCOM pad 4. More...
 
bool run_in_standby
 Enabled in sleep modes. More...
 
enum spi_transfer_mode transfer_mode
 Transfer mode. More...
 

uint32_t spi_master_vec_config::baudrate

Baud rate in Hertz.

Referenced by main(), spi_master_vec_get_config_defaults(), and spi_master_vec_init().

enum spi_data_order spi_master_vec_config::data_order
enum gclk_generator spi_master_vec_config::gclk_generator

GCLK generator to use for the SERCOM.

Referenced by spi_master_vec_get_config_defaults(), and spi_master_vec_init().

enum spi_signal_mux_setting spi_master_vec_config::mux_setting

SERCOM pad MUX setting.

Referenced by main(), spi_master_vec_get_config_defaults(), and spi_master_vec_init().

uint32_t spi_master_vec_config::pinmux_pad0

Pin MUX setting for SERCOM pad 0.

Referenced by main(), spi_master_vec_get_config_defaults(), and spi_master_vec_init().

uint32_t spi_master_vec_config::pinmux_pad1

Pin MUX setting for SERCOM pad 1.

Referenced by main(), spi_master_vec_get_config_defaults(), and spi_master_vec_init().

uint32_t spi_master_vec_config::pinmux_pad2

Pin MUX setting for SERCOM pad 2.

Referenced by main(), spi_master_vec_get_config_defaults(), and spi_master_vec_init().

uint32_t spi_master_vec_config::pinmux_pad3

Pin MUX setting for SERCOM pad 4.

Referenced by main(), spi_master_vec_get_config_defaults(), and spi_master_vec_init().

bool spi_master_vec_config::run_in_standby

Enabled in sleep modes.

Referenced by spi_master_vec_get_config_defaults(), and spi_master_vec_init().

enum spi_transfer_mode spi_master_vec_config::transfer_mode