Programa mbed1 excelencia

Dependencies:   mbed

Revision:
0:a5908bca4740
diff -r 000000000000 -r a5908bca4740 RingBuffer/BufferBig.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RingBuffer/BufferBig.h	Wed Jan 18 12:58:15 2017 +0000
@@ -0,0 +1,30 @@
+#ifndef BUFFERBIG_H
+#define BUFFERBIG_H
+ 
+#include "mbed.h"
+
+#define BUFFERSIZE 100
+// Buffering de datos tipo float
+class BufferBig
+{
+private:
+    unsigned char data[BUFFERSIZE];
+    unsigned int windex;
+    unsigned int rindex;
+    bool full;
+    bool empty;
+    unsigned int bufSize;
+public:
+    BufferBig();
+    void put(unsigned char val);
+    unsigned char get();
+    int getSize();
+    bool isFull();
+    bool isEmpty();
+    unsigned int getWritingIndex();
+    unsigned int getReadingIndex();
+    unsigned int getDif();
+};
+ 
+#endif // BUFFERBIG_H
+