#include <softperipheral/sQSPI/include/nrf_sqspi.h>
Configure a device attached to the QSPI-controlled bus.
- Parameters
-
| [in] | p_qspi | Identifier of the QSPI instance to which this device is connected. |
| [in] | p_config | Pointer to the structure with the device configuration. |
| [in] | callback | Function called when an asynchronous operation ends. |
| [in] | p_context | User-defined context passed as is to the callback function. |
- Return values
-
| NRFX_SUCCESS | Device configured successfully |
| NRFX_ERROR_BUSY | The device is during a transfer. Can't reconfigure |
| NRFX_ERROR_NOMEM | Not enough memory to support more serial devices |
| NRFX_ERROR_INVALID_PARAM | At least one configuration option has invalid value |
| NRFX_ERROR_NOT_SUPPORTED | At least one configuration option is not supported by this driver |