You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
594 B
15 lines
594 B
/**
|
|
* TODO file description
|
|
*
|
|
* Created on 2021/12/12.
|
|
*/
|
|
|
|
#ifndef ESPNODE_I2C_UTILS_H
|
|
#define ESPNODE_I2C_UTILS_H
|
|
|
|
esp_err_t i2c_reg_read_byte(i2c_cmd_handle_t chain, uint8_t dev_addr, uint8_t reg_addr, uint8_t *dest);
|
|
esp_err_t i2c_reg_read(i2c_cmd_handle_t chain, uint8_t dev_addr, uint8_t reg_addr, uint8_t *dest, size_t count);
|
|
esp_err_t i2c_reg_write_byte(i2c_cmd_handle_t chain, uint8_t dev_addr, uint8_t reg_addr, uint8_t value);
|
|
esp_err_t i2c_reg_write(i2c_cmd_handle_t chain, uint8_t dev_addr, uint8_t reg_addr, const uint8_t *values, size_t count);
|
|
|
|
#endif //ESPNODE_I2C_UTILS_H
|
|
|