MT2523 API Reference  LinkIt SDK v4
Typedef

Overview

Typedefs

typedef void(* hal_spi_master_callback_t) (hal_spi_master_callback_event_t event, void *user_data)
 This define 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 define 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.

Parameters
[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 the parameter which is given by user via hal_spi_master_register_callback().
See also
hal_spi_master_register_callback()