Small library for using circular buffers

Dependents:   CircularBufferExample

This library provides circular buffers. The main difference with other circular buffer libraries is that it does not use dynamic memory allocation for storing data. Instead, the buffer is allocated statically.

Three types of buffer exist by default :

  • SmallCircularBuffer (32 bytes)
  • MediumCircularBuffer (128 bytes)
  • BigCircularBuffer (512 bytes)

You can also define buffers with specific size :

CircularBuffer<4> buffer;    // 4 bytes buffer
CircularBuffer<102> buffer2; // 102 bytes buffer

Import programCircularBufferExample

This example shows how to use the CircularBuffer library.

History

fixed bug default tip

2014-03-17, by feb11 [Mon, 17 Mar 2014 17:30:25 +0000] rev 5

fixed bug


added comments

2013-09-20, by feb11 [Fri, 20 Sep 2013 10:32:30 +0000] rev 4

added comments


added functions

2013-09-20, by feb11 [Fri, 20 Sep 2013 10:04:23 +0000] rev 3

added functions


initial import

2013-09-20, by feb11 [Fri, 20 Sep 2013 09:16:45 +0000] rev 2

initial import


fixed bug

2013-09-16, by feb11 [Mon, 16 Sep 2013 14:54:26 +0000] rev 1

fixed bug


initial import

2013-09-16, by feb11 [Mon, 16 Sep 2013 14:35:39 +0000] rev 0

initial import