fix(i2c_master): Fix that master multi-read failed,

Closes https://github.com/espressif/esp-idf/issues/16231
This commit is contained in:
C.S.M
2025-07-03 12:19:04 +08:00
parent 9820fd1d9f
commit 0e44dcf2ff
2 changed files with 69 additions and 15 deletions

View File

@@ -25,7 +25,8 @@ typedef int i2c_port_num_t;
* @brief Enumeration for I2C fsm status.
*/
typedef enum {
I2C_STATUS_READ, /*!< read status for current master command */
I2C_STATUS_READ, /*!< read status for current master command, but just partial read, not all data is read is this status */
I2C_STATUS_READ_ALL, /*!< read status for current master command, all data is read is this status */
I2C_STATUS_WRITE, /*!< write status for current master command */
I2C_STATUS_START, /*!< Start status for current master command */
I2C_STATUS_STOP, /*!< stop status for current master command */