MT2523 API Reference  LinkIt SDK v4



typedef void(* hal_spi_master_callback_t) (hal_spi_master_callback_event_t event, void *user_data)
 This defines the callback function prototype. More...

Typedef Documentation

typedef void(* hal_spi_master_callback_t) (hal_spi_master_callback_event_t event, void *user_data)

This defines the callback function prototype.

User should register a callback function when using SPI DMA mode, this function will be called in SPI interrupt service routine after a transaction completes. More details about the callback architecture, please refer to Software architecture of the SPI.

[in]eventis the transaction event for the current transaction, user can get the transaction result from this parameter, please refer to hal_spi_master_callback_event_t for details about the event type.
[in]user_datais a user-defined parameter provided by hal_spi_master_register_callback().
See also