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

Committer:
yangcq88517
Date:
Sat Nov 14 15:44:44 2015 +0000
Revision:
8:de7934ec7ea2
Parent:
3:b657bfcffc0a
change to unsigned char array

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 3:b657bfcffc0a 1 #ifndef UK_AC_HERTS_SMARTLAB_MGC3130_MakePersistent
yangcq88517 3:b657bfcffc0a 2 #define UK_AC_HERTS_SMARTLAB_MGC3130_MakePersistent
yangcq88517 3:b657bfcffc0a 3
yangcq88517 3:b657bfcffc0a 4 #include "Parameter.h"
yangcq88517 3:b657bfcffc0a 5
yangcq88517 3:b657bfcffc0a 6 /// Make the parameter set defined in Argument0 persistent (store to Flash memory).
yangcq88517 3:b657bfcffc0a 7 class MakePersistent: public Parameter
yangcq88517 3:b657bfcffc0a 8 {
yangcq88517 3:b657bfcffc0a 9 public:
yangcq88517 3:b657bfcffc0a 10 /// The default setting will be Store RTPs for AFE Category.
yangcq88517 3:b657bfcffc0a 11 MakePersistent() {
yangcq88517 3:b657bfcffc0a 12 setRuntimeParameterID(0xFF00);
yangcq88517 3:b657bfcffc0a 13 }
yangcq88517 3:b657bfcffc0a 14
yangcq88517 3:b657bfcffc0a 15 /// Store RTPs for AFE Category.
yangcq88517 3:b657bfcffc0a 16 void StoreRTPsAFECategory() {
yangcq88517 3:b657bfcffc0a 17 setArgument0(0x00000000);
yangcq88517 3:b657bfcffc0a 18 }
yangcq88517 3:b657bfcffc0a 19
yangcq88517 3:b657bfcffc0a 20 /// Store RTPs for DSP Category.
yangcq88517 3:b657bfcffc0a 21 void StoreRTPsDSPCategory() {
yangcq88517 3:b657bfcffc0a 22 setArgument0(0x00000001);
yangcq88517 3:b657bfcffc0a 23 }
yangcq88517 3:b657bfcffc0a 24
yangcq88517 3:b657bfcffc0a 25 /// Store RTPs for System Category.
yangcq88517 3:b657bfcffc0a 26 void StoreRTPsSystemCategory() {
yangcq88517 3:b657bfcffc0a 27 setArgument0(0x00000002);
yangcq88517 3:b657bfcffc0a 28 }
yangcq88517 3:b657bfcffc0a 29 };
yangcq88517 3:b657bfcffc0a 30
yangcq88517 3:b657bfcffc0a 31 #endif