Register a function as SPI transfer completion callback.
void spi_m_async_register_callback( struct spi_m_async_descriptor * spi, const enum spi_m_async_cb_type type, FUNC_PTR func )
SPI_CB_COMPLETE: set the function that will be called on the SPI transfer completion including deactivating the CS.
SPI_CB_XFER: set the function that will be called on the SPI buffer transfer completion. Register NULL function to not use the callback.
Type: struct spi_m_async_descriptor Struct *
Pointer to the HAL SPI instance.
Type: const enum spi_m_async_cb_type Enum
Callback type (spi_m_async_cb_type Enum).
Type: FUNC_PTR typedef
Pointer to callback function.
Type: void