![]() |
nrfxlib API 3.3.99
|
| nrfx_err_t nrf_sqspi_xfer_prepare | ( | nrf_sqspi_t const * | p_qspi, |
| nrf_sqspi_xfer_t const * | p_xfer, | ||
| size_t | xfer_count ) |
#include <softperipheral/sQSPI/include/nrf_sqspi.h>
Prepare the serial interface to transfer the data.
This function is an equivalent of nrf_sqspi_xfer with NRF_SQSPI_FLAG_HOLD_XFER flag set.
The start of the prepared transfer must be triggered outside of this function.
If the controller mode transfer is in progress, a new transfer can be requested. If the driver is capable of queueing the requested transfer, the function returns NRFX_SUCCESS. If not, it returns NRFX_ERROR_BUSY. If the target mode transfer is idle waiting for the remote controller, new transfer requests abort the idling transfer and the nrf_sqspi_callback_t is called to indicate aborted transfer. If the target mode transfer is activated by the remote controller, a new requested transfer can be queued by the driver. If the driver is capable of queuing the new transfer, the function returns NRFX_SUCCESS. Otherwise, it returns NRFX_ERROR_BUSY.
| [in] | p_qspi | Identifier of the QSPI instance transferring data. |
| [in] | p_xfer | Pointer to a structure describing the data transfer. |
| [in] | xfer_count | Number of transfers in the array pointed by p_xfer. |
| NRFX_SUCCESS | The transfer is prepared |
| NRFX_ERROR_BUSY | There is ongoing transfer |