nRF5 SDK v15.2.0
Data Fields
nrf_drv_spi_config_t Struct Reference

SPI master driver instance configuration structure. More...

#include <nrf_drv_spi.h>

Data Fields

uint8_t sck_pin
 SCK pin number.
 
uint8_t mosi_pin
 MOSI pin number (optional). More...
 
uint8_t miso_pin
 MISO pin number (optional). More...
 
uint8_t ss_pin
 Slave Select pin number (optional). More...
 
uint8_t irq_priority
 Interrupt priority.
 
uint8_t orc
 Over-run character. More...
 
nrf_drv_spi_frequency_t frequency
 SPI frequency.
 
nrf_drv_spi_mode_t mode
 SPI mode.
 
nrf_drv_spi_bit_order_t bit_order
 SPI bit order.
 

Detailed Description

SPI master driver instance configuration structure.

Field Documentation

uint8_t nrf_drv_spi_config_t::miso_pin

MISO pin number (optional).

Set to NRF_DRV_SPI_PIN_NOT_USED if this signal is not needed.

uint8_t nrf_drv_spi_config_t::mosi_pin

MOSI pin number (optional).

Set to NRF_DRV_SPI_PIN_NOT_USED if this signal is not needed.

uint8_t nrf_drv_spi_config_t::orc

Over-run character.

This character is used when all bytes from the TX buffer are sent, but the transfer continues due to RX.

uint8_t nrf_drv_spi_config_t::ss_pin

Slave Select pin number (optional).

Set to NRF_DRV_SPI_PIN_NOT_USED if this signal is not needed. The driver supports only active low for this signal. If the signal should be active high, it must be controlled externally.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated