|
int | luat_i2c_exist (int id) |
| 检查i2c是否存在
|
|
int | luat_i2c_setup (int id, int speed) |
| 初始化i2c
|
|
int | luat_i2c_close (int id) |
| 关闭 i2c
|
|
int | luat_i2c_send (int id, int addr, void *buff, size_t len, uint8_t stop) |
| I2C 发送数据
|
|
int | luat_i2c_recv (int id, int addr, void *buff, size_t len) |
| I2C 接受数据
|
|
int | luat_i2c_write_reg (int id, int addr, int reg, void *buff, size_t len, uint8_t stop) |
| I2C 写寄存器
|
|
int | luat_i2c_read_reg (int id, int addr, int reg, void *buff, size_t len) |
| I2C 读寄存器
|
|
int | luat_i2c_transfer (int id, int addr, uint8_t *reg, size_t reg_len, uint8_t *buff, size_t len) |
| I2C 收发数据
|
|
int | luat_i2c_no_block_transfer (int id, int addr, uint8_t is_read, uint8_t *reg, size_t reg_len, uint8_t *buff, size_t len, uint16_t Toms, void *CB, void *pParam) |
| I2C 收发数据(异步)
|
|
int | luat_i2c_set_iomux (int id, uint8_t value) |
| 设置i2c复用
|
|
int | luat_i2c_set_polling_mode (int id, uint8_t on_off) |
|
void | i2c_soft_start (luat_ei2c_t *ei2c) |
|
char | i2c_soft_recv (luat_ei2c_t *ei2c, unsigned char addr, char *buff, size_t len) |
|
char | i2c_soft_send (luat_ei2c_t *ei2c, unsigned char addr, char *data, size_t len, uint8_t stop) |
|