spi_m_dma_set_data_order

Set SPI transfer data order.

int32_t spi_m_dma_set_data_order(
    struct spi_m_dma_descriptor * spi,
    const enum spi_data_order dord
)

Parameters

spi

Type: struct spi_m_dma_descriptor Struct *

Pointer to the HAL SPI instance.

dord

Type: const enum spi_data_order

The data order: send LSB/MSB first.

Returns

Type: int32_t

Operation status.

ERR_NONE

Success.

ERR_BUSY

Busy, CS activated.

ERR_INVALID

The data order is not supported.