34.4.2.1 spi_m_sync_init
Initialize SPI HAL instance and hardware for polling mode.
int32_t spi_m_sync_init(
struct spi_m_sync_descriptor * spi,
void *const hw
)
Initialize SPI HAL with polling mode.
Parameters
- spi
-
Type: struct spi_m_sync_descriptor Struct *
Pointer to the HAL SPI instance.
- hw
-
Type: void *const
Pointer to the hardware base.
Returns
Type: int32_t
Operation status.
- ERR_NONE
-
Success.
- ERR_INVALID_DATA
-
Error, initialized.