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

◆ nrf_sqspi_dev_data_fmt_set()

nrfx_err_t nrf_sqspi_dev_data_fmt_set ( nrf_sqspi_t const * p_qspi,
nrf_sqspi_data_fmt_t * p_data_fmt )

#include <softperipheral/sQSPI/include/nrf_sqspi.h>

Configure the data format for the device.

This function configures the data format for the device. The data format is used to convert the memory layout to the serial protocol and vice versa.

If the data format is not configured, the driver uses the NRF_SQSPI_DATA_FMT_PAD_RAW data padding format by default, bits are in sent MSB first, no data units swapping is performed.

Parameters
[in]p_qspiIdentifier of the QSPI instance for which the data formatting is configured.
[in]p_data_fmtData format to set.
Return values
NRFX_SUCCESSData format configured successfully
NRFX_ERROR_INVALID_PARAMAt least one configuration option has invalid value