Multi purpose buffer module.

Multipurpose ringbuffer

Since there weren't any ringbuffers available on the internet optimized for 32-Bit ARM operation without unix-calls and dynamic memory... I created one.

This module is a fixed ringbuffer, it does not allocate any memory, it can work as FIFO or LIFO or any other exotic mode depending on your imagination. With a fixed 32Bit element size it is optimized for 32 bit arm processors. Any smaller value will have overhead, any larger value will require a double entry. (not recommended)

I hope you can use it.

Information

This is not a C++ class, it is a C Module. It does work object oriented, however you cannot work on the object, you work with the object.

Import programxIFO_example

Small example for xIFO

Files at this revision

API Documentation at this revision

Comitter:
jeroen3
Date:
Mon Oct 28 19:20:00 2013 +0000
Parent:
0:a04dc0c57d20
Child:
2:6013f6d867e5
Commit message:
Fix case sensitive include

Changed in this revision

xIFO.c Show annotated file Show diff for this revision Revisions of this file
--- a/xIFO.c	Mon Oct 28 18:39:36 2013 +0000
+++ b/xIFO.c	Mon Oct 28 19:20:00 2013 +0000
@@ -11,7 +11,7 @@
  *
  * @{
  */
-#include "xifo.h"
+#include "xIFO.h"
 
 /**
  * @brief   Initialise buffer object structure.