![]() |
nrfxlib API 3.3.99
|
| 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.
| [in] | p_qspi | Identifier of the QSPI instance for which the data formatting is configured. |
| [in] | p_data_fmt | Data format to set. |
| NRFX_SUCCESS | Data format configured successfully |
| NRFX_ERROR_INVALID_PARAM | At least one configuration option has invalid value |