| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
spi_master_config_t Struct Reference

Struct containing configuration parameters of the SPI master. More...

`#include <spi_5W_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
uint8_t | SPI_ORDER
uint8_t | SPI_CPOL
uint8_t | SPI_CPHA

## Detailed Description

Struct containing configuration parameters of the SPI master.

## Field Documentation

uint8_t spi_master_config_t::SPI_CPHA

Serial clock phase LEADING or TRAILING.

uint8_t spi_master_config_t::SPI_CPOL

Serial clock polarity ACTIVEHIGH or ACTIVELOW.

uint32_t spi_master_config_t::SPI_Freq

SPI frequency.

uint8_t spi_master_config_t::SPI_ORDER

Bytes order MSBFIRST or LSBFIRST.

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.