spi_m_async_init

Initialize the SPI HAL instance and hardware for callback mode.

int32_t spi_m_async_init(
    struct spi_m_async_descriptor * spi,
    void *const hw
)

Initialize SPI HAL with interrupt mode (uses callbacks).

Parameters

spi

Type: struct spi_m_async_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.