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

◆ nrf_sqspi_xfer_prepare()

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.

See also
nrf_sqspi_start_task_address_get

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.

Parameters
[in]p_qspiIdentifier of the QSPI instance transferring data.
[in]p_xferPointer to a structure describing the data transfer.
[in]xfer_countNumber of transfers in the array pointed by p_xfer.
Return values
NRFX_SUCCESSThe transfer is prepared
NRFX_ERROR_BUSYThere is ongoing transfer