Atmel Software Framework

spi_options_t Struct Reference

Option structure for SPI channels.

#include <spi.h>

Data Fields

uint32_t baudrate
 Preferred baudrate for the SPI. More...
 
uint8_t bits
 Number of bits in each character (8 to 16). More...
 
uint8_t modfdis
 Disables the mode fault detection. More...
 
uint8_t reg
 The SPI channel to set up. More...
 
uint8_t spck_delay
 Delay before first clock pulse after selecting slave (in PBA clock periods). More...
 
uint8_t spi_mode
 Which SPI mode to use when transmitting. More...
 
uint8_t stay_act
 Sets this chip to stay active after last transfer to it. More...
 
uint8_t trans_delay
 Delay between each transfer/character (in PBA clock periods). More...
 

uint32_t spi_options_t::baudrate

Preferred baudrate for the SPI.

Referenced by sd_mmc_spi_internal_init(), and spi_setupChipReg().

uint8_t spi_options_t::bits

Number of bits in each character (8 to 16).

Referenced by spi_setupChipReg().

uint8_t spi_options_t::modfdis

Disables the mode fault detection.

With this bit cleared, the SPI master mode will disable itself if another master tries to address it.

Referenced by init_spi(), and spi_initMaster().

uint8_t spi_options_t::spck_delay

Delay before first clock pulse after selecting slave (in PBA clock periods).

Referenced by spi_setupChipReg().

uint8_t spi_options_t::spi_mode

Which SPI mode to use when transmitting.

Referenced by spi_setupChipReg().

uint8_t spi_options_t::stay_act

Sets this chip to stay active after last transfer to it.

Referenced by spi_setupChipReg().

uint8_t spi_options_t::trans_delay

Delay between each transfer/character (in PBA clock periods).

Referenced by spi_setupChipReg().