34.6.2.7 spi_s_sync_set_data_order
Set SPI transfer data order.
int32_t spi_s_sync_set_data_order(
struct spi_s_sync_descriptor * spi,
const enum spi_data_order dord
)
Note that the SPI must be disabled to change data order.
Parameters
- spi
-
Type: struct spi_s_sync_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.
- 0
-
Success.
- <0
-
Error.