The MGC3130 is the world’s first electrical-field (E-field) based three-dimensional (3D) tracking and gesture controller

Dependencies:   BufferedArray

Dependents:   NucleoMGC3130 i2c_master

Revision:
6:b511421e7dc8
Parent:
2:c7d984193741
Child:
8:de7934ec7ea2
--- a/GestILibrarMessage/GestICMsg.cpp	Fri Oct 09 11:26:22 2015 +0000
+++ b/GestILibrarMessage/GestICMsg.cpp	Tue Oct 13 19:59:27 2015 +0000
@@ -1,45 +1,7 @@
 #include "GestICMsg.h"
 
-GestICMsg::GestICMsg() {}
-
-GestICMsg::GestICMsg(int size)
-{
-    data = new char[size];
-}
-
-GestICMsg::~GestICMsg()
-{
-    if (data != NULL)
-        delete[] data;
-}
-
-void GestICMsg::reset()
-{
-    position = 0;
-}
-
-void GestICMsg::set(char value)
-{
-    if (position >= 255)
-        return;
-
-    data[position++] = value;
-}
-
-char GestICMsg::get(int index)
-{
-    return data[index];
-}
-
-char * GestICMsg::gets(int index)
-{
-    return &data[index];
-}
-
-int GestICMsg::getPosition()
-{
-    return position;
-}
+GestICMsg::GestICMsg(): BufferedArray()
+{}
 
 int GestICMsg::getMsgSize()
 {