nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
spi_master_config_t Struct Reference

A structure containing configuration parameters of the SPI master driver. More...

#include <spi_master.h>

Data Fields

uint32_t SPI_Freq
 
uint32_t SPI_Pin_SCK
 
uint32_t SPI_Pin_MISO
 
uint32_t SPI_Pin_MOSI
 
uint32_t SPI_Pin_SS
 
uint32_t SPI_PriorityIRQ
 
uint8_t SPI_CONFIG_ORDER
 
uint8_t SPI_CONFIG_CPOL
 
uint8_t SPI_CONFIG_CPHA
 
uint8_t SPI_DisableAllIRQ
 

Detailed Description

A structure containing configuration parameters of the SPI master driver.

Field Documentation

uint8_t spi_master_config_t::SPI_CONFIG_CPHA

Serial clock phase LEADING or TRAILING.

uint8_t spi_master_config_t::SPI_CONFIG_CPOL

Serial clock polarity ACTIVEHIGH or ACTIVELOW.

uint8_t spi_master_config_t::SPI_CONFIG_ORDER

Bytes order LSB or MSB shifted out first.

uint8_t spi_master_config_t::SPI_DisableAllIRQ

Disable all IRQs in critical section.

uint32_t spi_master_config_t::SPI_Freq

SPI master frequency

uint32_t spi_master_config_t::SPI_Pin_MISO

MISO pin number.

uint32_t spi_master_config_t::SPI_Pin_MOSI

MOSI pin number .

uint32_t spi_master_config_t::SPI_Pin_SCK

SCK pin number.

uint32_t spi_master_config_t::SPI_Pin_SS

Slave select pin number.

uint32_t spi_master_config_t::SPI_PriorityIRQ

SPI master interrupt priority.