Perform the SPI data transfer (TX and RX) in polling way.
int32_t spi_m_sync_transfer( struct spi_m_sync_descriptor * spi, const struct spi_xfer * xfer )
Activate CS, do TX and RX and deactivate CS. It blocks.
Type: struct spi_m_sync_descriptor Struct *
Pointer to the HAL SPI instance.
Type: const struct spi_xfer *
Pointer to the transfer information (spi_xfer).
Type: int32_t
Success.
Timeout, with number of characters transferred.
SPI is busy