Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 2 months ago.
Creating your own buffer
Hi,
I am trying to make a buffer for a custom communication system, I want to pass strings into them and when certain conditions are met, send the data down a serial line.
My question: how would I go about making a buffer to store the data and get it when I want?
I was looking at using an array BUT I believe the indexing would cause an issue. Any Ideas?
Regards, Nick
1 Answer
10 years, 2 months ago.
Hello Nick Oliver,
what about circular buffer http://mbed.org/search/?type=&q=circular+buffer ? Does this meet your criteria ?
Regards,
0xc0170