Programa mbed1 excelencia
Dependencies: mbed
RingBuffer/Buffering.h
- Committer:
- JuanManuelAmador
- Date:
- 2017-01-18
- Revision:
- 0:a5908bca4740
File content as of revision 0:a5908bca4740:
#ifndef BUFFERING_H #define BUFFERING_H #include "mbed.h" #define BUFFERSIZEBIG 300 // Buffering de datos tipo float class Buffering { private: unsigned char data[BUFFERSIZEBIG]; unsigned int windex; unsigned int rindex; bool full; bool empty; unsigned int bufSize; public: Buffering(); void put(unsigned char val); unsigned char get(); int getSize(); bool isFull(); bool isEmpty(); unsigned int getWritingIndex(); unsigned int getReadingIndex(); unsigned int getDif(); }; #endif // BUFFERING_H