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

◆ nrf_sqspi_dev_cfg()

nrfx_err_t nrf_sqspi_dev_cfg ( nrf_sqspi_t const * p_qspi,
nrf_sqspi_dev_cfg_t const * p_config,
nrf_sqspi_callback_t callback,
void * p_context )

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

Configure a device attached to the QSPI-controlled bus.

Parameters
[in]p_qspiIdentifier of the QSPI instance to which this device is connected.
[in]p_configPointer to the structure with the device configuration.
[in]callbackFunction called when an asynchronous operation ends.
[in]p_contextUser-defined context passed as is to the callback function.
Return values
NRFX_SUCCESSDevice configured successfully
NRFX_ERROR_BUSYThe device is during a transfer. Can't reconfigure
NRFX_ERROR_NOMEMNot enough memory to support more serial devices
NRFX_ERROR_INVALID_PARAMAt least one configuration option has invalid value
NRFX_ERROR_NOT_SUPPORTEDAt least one configuration option is not supported by this driver