spi_m_os_set_data_order

Set SPI transfer data order.

int32_t spi_m_os_set_data_order(
    struct spi_m_os_descriptor *const spi,
    const enum spi_data_order order
)

Parameters

spi

Type: struct spi_m_os_descriptor Struct *const

Pointer to the HAL SPI instance.

order

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.