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.

Changes

RevisionDateWhoCommit message
5:8204677dc3c4 2014-03-17 feb11 fixed bug default tip
4:e15dee1d59ee 2013-09-20 feb11 added comments
3:9a45d6675e65 2013-09-20 feb11 added functions
2:6f3630f5fa06 2013-09-20 feb11 initial import
1:9953890d59e2 2013-09-16 feb11 fixed bug
0:5d058c917599 2013-09-16 feb11 initial import