Versión de Firmware con funciones de RAM incorporadas.
Dependencies: mbed
Fork of VmRecorderV1dot1 by
RingBuffer/Buffering.h
- Committer:
- JuanManuelAmador
- Date:
- 2015-07-14
- Revision:
- 2:e818c80e6d5c
- Parent:
- 0:3d456b8ce449
File content as of revision 2:e818c80e6d5c:
#ifndef BUFFERING_H #define BUFFERING_H #include "mbed.h" #define BUFFERSIZE 600 // Buffering de datos tipo float class Buffering { private: int16_t data[BUFFERSIZE]; unsigned int windex; unsigned int rindex; bool full; bool empty; unsigned int bufSize; public: Buffering(); void put(int16_t val); int16_t get(); int getSize(); bool isFull(); bool isEmpty(); unsigned int getWritingIndex(); unsigned int getReadingIndex(); unsigned int getDif(); }; #endif // BUFFERING_H