![]() |
MT2523 API Reference
LinkIt SDK v4
|
Typedefs | |
| 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 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] | event | is 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_data | is a user-defined parameter provided by hal_spi_master_register_callback(). |