nrfx_spi_config_t

nRF5 SDK v16.0.0

Configuration structure of the SPI master driver instance. More...

#include <nrfx_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
Overrun character. More...
nrf_spi_frequency_t frequency
SPI frequency.
nrf_spi_mode_t mode
SPI mode.
nrf_spi_bit_order_t bit_order
SPI bit order.

Detailed Description

Configuration structure of the SPI master driver instance.

Field Documentation

uint8_t nrfx_spi_config_t::miso_pin

MISO pin number (optional).

Set to NRFX_SPI_PIN_NOT_USED if this signal is not needed.

uint8_t nrfx_spi_config_t::mosi_pin

MOSI pin number (optional).

Set to NRFX_SPI_PIN_NOT_USED if this signal is not needed.

uint8_t nrfx_spi_config_t::orc

Overrun character.

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

uint8_t nrfx_spi_config_t::ss_pin

Slave Select pin number (optional).

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

  • modules/nrfx/drivers/include/nrfx_spi.h