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

This seems ok, but is there a tutorial on how to use them?

posted by Nick Oliver 01 Mar 2014