|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|


宏定义 | |
| #define | I2C_BUS_MAX_NUM I2C_BUS_MAX_NUMBER |
| #define | I2C_0_SCL_PIN_CTRL_REG 0x4400D048 |
| #define | I2C_0_SDA_PIN_CTRL_REG 0x4400D044 |
| #define | I2C_1_SCL_PIN_CTRL_REG 0x4400D040 |
| #define | I2C_1_SDA_PIN_CTRL_REG 0x4400D03C |
| #define | PIN_CTRL_MODE_2 0x2 |
函数 | |
| uintptr_t | i2c_porting_base_addr_get (i2c_bus_t bus) |
| Get the base address of a specified I2C. | |
| void | i2c_port_set_clock_value (i2c_bus_t bus, uint32_t clock) |
| Set the bus clock of specified i2c. | |
| uint32_t | i2c_port_get_clock_value (i2c_bus_t bus) |
| Get the bus clock of specified i2c. | |
| void | i2c_port_register_irq (i2c_bus_t bus) |
| Register the interrupt of I2C. | |
| void | i2c_port_unregister_irq (i2c_bus_t bus) |
| Unregister the interrupt of I2C. | |
| uint32_t | i2c_porting_lock (i2c_bus_t bus) |
| I2C lock. | |
| void | i2c_porting_unlock (i2c_bus_t bus, uint32_t irq_sts) |
| I2C unlock. | |
| #define I2C_0_SCL_PIN_CTRL_REG 0x4400D048 |
| #define I2C_0_SDA_PIN_CTRL_REG 0x4400D044 |
| #define I2C_1_SCL_PIN_CTRL_REG 0x4400D040 |
| #define I2C_1_SDA_PIN_CTRL_REG 0x4400D03C |
| #define I2C_BUS_MAX_NUM I2C_BUS_MAX_NUMBER |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides i2c port template
History:
2022-08-15, Create file.
| #define PIN_CTRL_MODE_2 0x2 |
| uint32_t i2c_port_get_clock_value | ( | i2c_bus_t | bus | ) |
Get the bus clock of specified i2c.
| [in] | bus | The I2C bus. see i2c_bus_t |
| void i2c_port_register_irq | ( | i2c_bus_t | bus | ) |
Register the interrupt of I2C.
| void i2c_port_set_clock_value | ( | i2c_bus_t | bus, |
| uint32_t | clock | ||
| ) |
Set the bus clock of specified i2c.
| [in] | bus | The I2C bus. see i2c_bus_t |
| [in] | clock | The bus clock of specified I2C. |
| void i2c_port_unregister_irq | ( | i2c_bus_t | bus | ) |
Unregister the interrupt of I2C.
Get the base address of a specified I2C.
| [in] | bus | The bus index of I2C. |
| uint32_t i2c_porting_lock | ( | i2c_bus_t | bus | ) |
I2C lock.
| [in] | bus | The bus index of I2C. |
| void i2c_porting_unlock | ( | i2c_bus_t | bus, |
| uint32_t | irq_sts | ||
| ) |
I2C unlock.
| [in] | bus | The bus index of I2C. |
| [in] | irq_sts | The irq lock number of I2C. |