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:
2:c7d984193741
Parent:
1:621c4e9238ef
--- a/RuntimeParameter/OutputEnable.cpp	Wed Oct 07 20:43:39 2015 +0000
+++ b/RuntimeParameter/OutputEnable.cpp	Thu Oct 08 11:14:18 2015 +0000
@@ -10,7 +10,7 @@
     if (enable)
         value[4] |= 0x01;
     else value[4] &= 0xFE;
-    value[8] = value[4];
+    value[8] |= 0x01;
     return this;
 }
 
@@ -19,7 +19,7 @@
     if (enable)
         value[4] |= 0x02;
     else value[4] &= 0xFD;
-    value[8] = value[4];
+    value[8] |= 0x02;
     return this;
 }
 
@@ -28,7 +28,7 @@
     if (enable)
         value[4] |= 0x04;
     else value[4] &= 0xFB;
-    value[8] = value[4];
+    value[8] |= 0x04;
     return this;
 }
 
@@ -37,7 +37,7 @@
     if (enable)
         value[4] |= 0x08;
     else value[4] &= 0xF7;
-    value[8] = value[4];
+    value[8] |= 0x08;
     return this;
 }
 
@@ -46,7 +46,7 @@
     if (enable)
         value[4] |= 0x10;
     else value[4] &= 0xEF;
-    value[8] = value[4];
+    value[8] |= 0x10;
     return this;
 }
 
@@ -55,7 +55,7 @@
     if (enable)
         value[4] |= 0x20;
     else value[4] &= 0xDF;
-    value[8] = value[4];
+    value[8] |= 0x20;
     return this;
 }
 
@@ -64,7 +64,7 @@
     if (enable)
         value[5] |= 0x08;
     else value[5] &= 0xF7;
-    value[9] = value[5];
+    value[9] |= 0x08;
     return this;
 }
 
@@ -73,7 +73,7 @@
     if (enable)
         value[5] |= 0x10;
     else value[5] &= 0xEF;
-    value[9] = value[5];
+    value[9] |= 0x10;
     return this;
 }
 
@@ -82,7 +82,7 @@
     if (enable)
         value[6] |= 0x01;
     else value[6] &= 0xFE;
-    value[10] = value[6];
+    value[10] |= 0x01;
     return this;
 }
 
@@ -91,7 +91,7 @@
     if (enable)
         value[6] |= 0x02;
     else value[6] &= 0xFD;
-    value[10] = value[6];
+    value[10] |= 0x02;
     return this;
 }
 
@@ -100,7 +100,7 @@
     if (enable)
         value[6] |= 0x04;
     else value[6] &= 0xFB;
-    value[10] = value[6];
+    value[10] |= 0x04;
     return this;
 }
 
@@ -110,7 +110,7 @@
     if (enable)
         value[6] |= 0x08;
     else value[6] &= 0xF7;
-    value[10] = value[6];
+    value[10] |= 0x08;
     return this;
 }
 
@@ -120,7 +120,7 @@
     if (enable)
         value[6] |= 0x10;
     else value[6] &= 0xEF;
-    value[10] = value[6];
+    value[10] |= 0x10;
     return this;
 }
 
@@ -130,7 +130,7 @@
     if (enable)
         value[7] |= 0x08;
     else value[7] &= 0xF7;
-    value[11] = value[7];
+    value[11] |= 0x08;
     return this;
 }
 
@@ -140,7 +140,7 @@
     if (enable)
         value[7] |= 0x10;
     else value[7] &= 0xEF;
-    value[11] = value[7];
+    value[11] |= 0x10;
     return this;
 }
 
@@ -150,7 +150,7 @@
     if (enable)
         value[7] |= 0x20;
     else value[7] &= 0xDF;
-    value[11] = value[7];
+    value[11] |= 0x20;
     return this;
 }
 
@@ -159,6 +159,6 @@
     if (enable)
         value[7] |= 0x80;
     else value[7] &= 0x7F;
-    value[11] = value[7];
+    value[11] |= 0x80;
     return this;
 }
\ No newline at end of file