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

◆ nrf_sqspi_dev_cfg()

nrf_sqspi_error_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 <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
NRF_SQSPI_SUCCESSDevice configured successfully
NRF_SQSPI_ERROR_BUSYThe device is during a transfer. Can't reconfigure
NRF_SQSPI_ERROR_INVALID_PARAMAt least one configuration option has invalid value
NRF_SQSPI_ERROR_UNSUPPORTEDAt least one configuration option is not supported by this driver