MAX32665 SDK Documentation  0.2
Software Development Kit Overview and API Documentation
Spi_async

Callback function type used in asynchronous SPI Master communication requests. More...

Structure definition for an SPI Master Transaction request.

The function declaration for the SPI Master callback is:

void callback(spi17y_req_t * req, int error_code);
req Pointer to a spi_req object representing the active SPI Master active transaction.
error_code An error code if the active transaction had a failure or E_NO_ERROR if successful.
Note
Callback will execute in interrupt context
When using this structure for an asynchronous operation, the structure must remain allocated until the callback is completed.

The function declaration for the SPI Master callback is:

void callback(spi_req_t * req, int error_code);
req Pointer to a spi_req object representing the active SPI Master active transaction.
error_code An error code if the active transaction had a failure or E_NO_ERROR if successful.
Note
Callback will execute in interrupt context