Azure Sphere MT3620 M4 API Reference Manual
|
This section introduces the enumerations that I2C should configure before performing transfer. More...
This section introduces the enumerations that I2C should configure before performing transfer.
Enumerations | |
enum | i2c_speed_kHz { I2C_SCL_50kHz = 1, I2C_SCL_100kHz = 2, I2C_SCL_200kHz = 3, I2C_SCL_400kHz = 4, I2C_SCL_1000kHz = 5 } |
I2C master's clock frequency definition. More... | |
enum | i2c_trans_op { I2C_MASTER_WR = 1, I2C_MASTER_RD = 2, I2C_SLAVE_RX = 3, I2C_SLAVE_TX = 4 } |
I2C controller operation mode definition. More... | |
enum | i2c_trans_mode { I2C_MASTER_MODE = 0, I2C_SLAVE_MODE = 1 } |
enum i2c_speed_kHz |
I2C master's clock frequency definition.
Before performing transfer, users should make sure that the speed_kHz parameter is defined in mtk_i2c_controller structure and configured through mtk_mhal_i2c_init_speed().
enum i2c_trans_op |
I2C controller operation mode definition.
Before performing transfer, users should make sure that the i2c_trans_op parameter is defined in mtk_i2c_controller structure and configured through mtk_mhal_i2c_trigger_transfer().
Enumerator | |
---|---|
I2C_MASTER_WR |
I2C master writes data to slave. |
I2C_MASTER_RD |
I2C master reads data from slave. |
I2C_SLAVE_RX |
I2C slave receives data from master. |
I2C_SLAVE_TX |
I2C slave sends data to master. |
enum i2c_trans_mode |