34.6.2.9 spi_s_sync_transfer
Write/read at the same time.
int32_t spi_s_sync_transfer(
struct spi_s_sync_descriptor * spi,
const struct spi_xfer * xfer
)
Parameters
- spi
-
Type: struct spi_s_sync_descriptor Struct *
Pointer to the HAL SPI instance.
- xfer
-
Type: const struct spi_xfer *
Pointer to the transfer information (spi_xfer).
Returns
Type: int32_t
Operation result.
- <0
-
Error.
- >=0
-
Number of characters transferred.