nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_sqspi_init()

nrfx_err_t nrf_sqspi_init ( nrf_sqspi_t const * p_qspi,
nrf_sqspi_cfg_t const * p_config )

#include <softperipheral/sQSPI/include/nrf_sqspi.h>

Initialize the QSPI driver instance.

This function configures the peripheral.

Note
The function does not activate the peripheral instance. The activation is done during the first transfer after initialization or when calling nrf_sqspi_activate function. The activation process starts the clocks and ensures registers retention of the peripheral. An active peripheral can start transfers with minimal latency.

This function configures the SoC peripheral attached to the serial bus. To configure the devices on the bus use nrf_sqspi_dev_cfg.

Parameters
[in]p_qspiIdentifier of the QSPI instance to initialize.
[in]p_configPointer to the structure with the initial configuration.
Return values
NRFX_SUCCESSInitialization was successful.
NRFX_ERROR_ALREADYThe driver is already initialized.
NRFX_ERROR_INVALID_PARAMThe pin configuration is incorrect.