The MGC3130 is the world’s first electrical-field (E-field) based three-dimensional (3D) tracking and gesture controller
Dependents: NucleoMGC3130 i2c_master
Diff: GestILibrarMessage/BufferedArray.h
- Revision:
- 7:eacd776fce29
- Parent:
- 6:b511421e7dc8
--- a/GestILibrarMessage/BufferedArray.h Tue Oct 13 19:59:27 2015 +0000 +++ b/GestILibrarMessage/BufferedArray.h Thu Oct 15 16:10:55 2015 +0000 @@ -3,6 +3,9 @@ #include "mbed.h" +/** +* Represent a generic, dynamic-length raw binary data buffer. +*/ class BufferedArray { protected : @@ -22,6 +25,8 @@ public: BufferedArray(); + + BufferedArray(int size); BufferedArray(BufferedArray * bufferedArray); @@ -78,7 +83,7 @@ * @param offset start point of the data * @param length length to write */ - void sets(char * value, int offset, int length); + void sets(const char * value, int offset, int length); /** Write 8-bit data into specific posiston and deos not affect the current position. * @param position where to write @@ -92,7 +97,7 @@ * @param offset start point of the data * @param length length to write */ - void sets(int position, char * value, int offset, int length); + void sets(int position, const char * value, int offset, int length); }; #endif