![]() |
MT7697 API Reference
LinkIt SDK v4
|
Typedefs | |
| typedef void(* | hal_i2c_callback_t) (uint8_t slave_address, hal_i2c_callback_event_t event, void *user_data) |
| This defines the callback function prototype. More... | |
| typedef void(* hal_i2c_callback_t) (uint8_t slave_address, hal_i2c_callback_event_t event, void *user_data) |
This defines the callback function prototype.
User should register a callback function while using DMA mode. This function is called after the transaction finishes in the I2C ISR routine. For more details about the callback, please refer to hal_i2c_master_register_callback(). For more details about callback architecture, please refer to Software architecture of the I2C.
| [in] | slave_address | is a user defined slave address to send or receive data. |
| [in] | event | is the transaction event of current transaction. It also provides the transaction result. For more details about the event type, please refer to hal_i2c_callback_event_t. |
| [in] | user_data | is the user defined parameter obtained from hal_i2c_master_register_callback() function. |