Clearing I2C ring buffer

kmcgrath
Posts: 1
Joined: Tue Dec 08, 2020 6:48 pm

Clearing I2C ring buffer

Postby kmcgrath » Tue Dec 08, 2020 7:44 pm

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()?

mabensur
Posts: 3
Joined: Wed Feb 24, 2021 9:00 pm

Re: Clearing I2C ring buffer

Postby mabensur » Wed Feb 24, 2021 9:02 pm

I am running into the same problem. Did you find any solution?

Victoria Nope
Posts: 75
Joined: Fri Dec 04, 2020 9:56 pm

Re: Clearing I2C ring buffer

Postby Victoria Nope » Thu Feb 25, 2021 12:45 pm

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: Bing [Bot], calebe_sucupira and 59 guests