Configuration structure of the SPIM driver instance. More...
#include <nrfx_spim.h>
Data Fields | |
uint32_t | sck_pin |
SCK pin number. | |
uint32_t | mosi_pin |
MOSI pin number (optional). | |
uint32_t | miso_pin |
MISO pin number (optional). | |
uint32_t | ss_pin |
Slave Select pin number (optional). | |
bool | ss_active_high |
Polarity of the Slave Select pin during transmission. | |
uint8_t | irq_priority |
Interrupt priority. | |
uint8_t | orc |
Overrun character. | |
uint32_t | frequency |
SPIM frequency in Hz. | |
nrf_spim_mode_t | mode |
SPIM mode. | |
nrf_spim_bit_order_t | bit_order |
SPIM bit order. | |
nrf_gpio_pin_pull_t | miso_pull |
MISO pull up configuration. | |
uint32_t | dcx_pin |
D/CX pin number (optional). | |
uint8_t | rx_delay |
Sample delay for input serial data on MISO. | |
bool | use_hw_ss |
Indication to use software or hardware controlled Slave Select pin. | |
uint8_t | ss_duration |
Slave Select duration before and after transmission. | |
bool | skip_gpio_cfg |
Skip GPIO configuration of pins. | |
bool | skip_psel_cfg |
Skip pin selection configuration. | |
Configuration structure of the SPIM driver instance.
uint32_t nrfx_spim_config_t::miso_pin |
MISO pin number (optional).
Set to NRF_SPIM_PIN_NOT_CONNECTED if this signal is not needed.
uint32_t nrfx_spim_config_t::mosi_pin |
MOSI pin number (optional).
Set to NRF_SPIM_PIN_NOT_CONNECTED if this signal is not needed.
uint8_t nrfx_spim_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_spim_config_t::rx_delay |
Sample delay for input serial data on MISO.
The value specifies the delay, in number of 64 MHz clock cycles (15.625 ns), from the the sampling edge of SCK (leading edge for CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until the input serial data is sampled.
bool nrfx_spim_config_t::skip_gpio_cfg |
Skip GPIO configuration of pins.
When set to true, the driver does not modify any GPIO parameters of the used pins. Those parameters are supposed to be configured externally before the driver is initialized.
bool nrfx_spim_config_t::skip_psel_cfg |
Skip pin selection configuration.
When set to true, the driver does not modify pin select registers in the peripheral. Those registers are supposed to be set up externally before the driver is initialized.
ss_pin
field, unless it is to be controlled by hardware. uint8_t nrfx_spim_config_t::ss_duration |
Slave Select duration before and after transmission.
Minimum duration between the edge of CSN and the edge of SCK. Also, minimum duration of CSN inactivity between transactions. The value is specified in number of 64 MHz clock cycles (15.625 ns). Supported only for hardware-controlled Slave Select.
uint32_t nrfx_spim_config_t::ss_pin |
Slave Select pin number (optional).
Set to NRF_SPIM_PIN_NOT_CONNECTED if this signal is not needed.