Clearing I2C ring buffer
Clearing I2C ring buffer
I am working with ESP-IDF with ESP32. I am having trouble clearing the ring buffer without running i2c disable() which deletes the driver and requires an install which takes some time. I had thought perhaps reset would handle this but it doesn't clear the ring buffer out. Is there anyway to clear the I2C ring buffer without using disable()?
Re: Clearing I2C ring buffer
I am running into the same problem. Did you find any solution?
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: Clearing I2C ring buffer
I see no reason behind, but well, you might do it by adding your own function in the i2c.c driver source, because there is no function for that by now and the buffers rx_ring_buf and tx_ring_buf are internal, declared inside the static structure p_i2c_obj.
Who is online
Users browsing this forum: No registered users and 92 guests