Initialize the SPI Slave HAL instance and hardware for callback mode.
int32_t spi_s_async_init( struct spi_s_async_descriptor * spi, void *const hw, uint8_t *const rxbuf, int16_t bufsize )
Initialize SPI Slave HAL with interrupt mode (uses callbacks).
Type: struct spi_s_async_descriptor Struct *
Pointer to the SPI Slave HAL instance.
Type: void *const
Pointer to the hardware base.
Type: uint8_t *const
Pointer to the buffer for receiving ring buffer.
Type: int16_t
The receiving ring buffer size.
Type: int32_t
Operation status.
Success.
Error.