nrfxlib API 3.4.99
Loading...
Searching...
No Matches

◆ nrf_sqspi_reconfigure()

nrf_sqspi_error_t nrf_sqspi_reconfigure ( nrf_sqspi_t const * p_qspi,
nrf_sqspi_cfg_t const * p_config )

#include <nrf_sqspi.h>

Reconfigure the QSPI driver instance.

This function allows changing the configuration of an already initialized QSPI instance.

This function must be called when the driver is deactivated. Calling this function on an activated driver instance (e.g. during a transfer) results in an error.

Parameters
[in]p_qspiIdentifier of the QSPI instance to reconfigure.
[in]p_configPointer to the structure with the new configuration.
Return values
NRF_SQSPI_SUCCESSReconfiguration was successful.
NRF_SQSPI_ERROR_INVALID_STATEThe driver is not initialized or is activated.
NRF_SQSPI_ERROR_INVALID_PARAMThe pin configuration is incorrect.