MT2523 API Reference  LinkIt SDK v4
Typedef

Overview

Typedefs

typedef void(* hal_spi_slave_callback_t) (hal_spi_slave_transaction_status_t status, void *user_data)
 This defines the callback function prototype. More...
 

Typedef Documentation

typedef void(* hal_spi_slave_callback_t) (hal_spi_slave_transaction_status_t status, void *user_data)

This defines the callback function prototype.

User should register a callback function to use the SPI slave. This function is called in the SPI slave ISR, if an interrupt is triggered. For more details about the callback function, please refer to hal_spi_slave_register_callback(). For more details about the callback architecture, please refer to Software architecture of the SPI slave.

Parameters
[in]statusis the transaction status for the current transaction, including state machine status and interrupt status. For details about the status type, please refer to hal_spi_slave_transaction_status_t.
[in]user_datais a user defined parameter obtained from hal_spi_slave_register_callback().
See also
hal_spi_slave_register_callback()