Read and write over I2C: Meaning of the parameter "ticks_to_wait"
Posted: Thu Feb 22, 2018 9:57 am
Hello,
i use esp-idf to write and read data over the I2C bus. To send or read data I have to call the function below:
esp_err_t i2c_master_cmd_begin(i2c_port_t i2c_num, i2c_cmd_handle_t cmd_handle, TickType_t ticks_to_wait)
Can someone explain the meaning of the parameter "ticks_to_wait"? As far as I know this function sends or writes all data in the command queue. Maybe this is a timeout parameter?
In the documentation I could only find the following information:
Parameters
i use esp-idf to write and read data over the I2C bus. To send or read data I have to call the function below:
esp_err_t i2c_master_cmd_begin(i2c_port_t i2c_num, i2c_cmd_handle_t cmd_handle, TickType_t ticks_to_wait)
Can someone explain the meaning of the parameter "ticks_to_wait"? As far as I know this function sends or writes all data in the command queue. Maybe this is a timeout parameter?
In the documentation I could only find the following information:
Parameters
- i2c_num: I2C port number
- cmd_handle: I2C command handler
- ticks_to_wait: maximum wait ticks.