spi_s_sync_init

Initialize the SPI Slave HAL instance and hardware.

int32_t spi_s_sync_init(
    struct spi_s_sync_descriptor * spi,
    void *const hw
)

Initialize SPI Slave HAL with polling mode.

Parameters

spi

Type: struct spi_s_sync_descriptor Struct *

Pointer to the SPI Slave HAL instance.

hw

Type: void *const

Pointer to the hardware base.

Returns

Type: int32_t

Operation status.

0

Success.

<0

Error.