kBuffer  1.1
kBuffer Documentation

Introduction

kBuffer is a universal library for a ring- / circular buffer.

Functions and Datatypes

buffer_t
bufferStatus_t

bufferInit()
bufferInitStatic()

bufferWrite()
bufferWriteOverwrite()
bufferRead()
bufferPeek()

bufferFill()
bufferIsFull()
bufferIsEmpty()

bufferWriteToIndex()
bufferReadFromIndex()

bufferAvailable()

bufferMean()
bufferMeanRMS()

Usage

Have a look Fundamental Usage for an explenation of the main kBuffer functions (with some examples)
If you want to take the mean of your buffer, have a look at Mean of buffer

Example code

An example code project is available under ../../test/x86. It isn't well documented, but you can compile it for your system.