Is there a ring buffer library in IDF?

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Is there a ring buffer library in IDF?

Postby zliudr » Wed May 26, 2021 10:04 pm

I am writing a device driver for printers and need ring buffers for printer responses. I wonder if there is one that handles buffering read of UART etc or the buffer is built into the UART code. I've not read the code yet. I just read Arduino's HardwareSerial.cpp for an idea but their code has the ring buffer mixed with the hardware serial code so it's not independent nor is it reusable. A quick internet search turned up a few git repos and none of which has nearly long enough history and forks to give me confidence in.

Thanks!

tosemusername
Posts: 18
Joined: Tue Feb 05, 2019 5:28 pm
Location: Brazil

Re: Is there a ring buffer library in IDF?

Postby tosemusername » Wed May 26, 2021 10:22 pm


zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Is there a ring buffer library in IDF?

Postby zliudr » Wed May 26, 2021 10:43 pm

Great! Thank you! That was very speedy response. How do you read all the IDF references? It's so long I wish I could take a break and just read the references for a month :D

Who is online

Users browsing this forum: No registered users and 97 guests