![]() |
MT2523 API Reference
LinkIt SDK v4
|
This enum defines the transaction result event.
These result is passed through a callback function. For more details, please refer to hal_i2c_master_register_callback().
| enum hal_i2c_frequency_t |
This enum defines the I2C transaction speed.
| enum hal_i2c_port_t |
This enum defines the I2C port.
The platform supports 3 I2C masters. Two of them support polling mode and DMA mode, while the other one only supports polling mode. For more information about the polling mode, DMA mode, queue mode, please refer to Supported features. The details are shown below:
| I2C Master | Polling mode | DMA mode | Extended DMA mode |
|---|---|---|---|
| I2C0 | V | V | V |
| I2C1 | V | V | V |
| I2C2 | V | X | X |
| Enumerator | |
|---|---|
| HAL_I2C_MASTER_0 |
I2C master 0. |
| HAL_I2C_MASTER_1 |
I2C master 1. |
| HAL_I2C_MASTER_2 |
I2C master 2. |
| HAL_I2C_MASTER_MAX |
The total number of I2C masters (invalid I2C master number). |
| enum hal_i2c_status_t |
This enum defines the HAL interface return value.