#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
-
| NRF_SQSPI_SUCCESS | Device configured successfully |
| NRF_SQSPI_ERROR_BUSY | The device is during a transfer. Can't reconfigure |
| NRF_SQSPI_ERROR_INVALID_PARAM | At least one configuration option has invalid value |
| NRF_SQSPI_ERROR_UNSUPPORTED | At least one configuration option is not supported by this driver |