Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Revision:
23:5bb76b7c35da
Parent:
22:cccb77300fd5
Child:
24:1a16e7eabb0c
--- a/Structures/Structure.h	Sun Mar 22 19:57:40 2015 +0000
+++ b/Structures/Structure.h	Thu Mar 26 15:40:56 2015 +0000
@@ -1,4 +1,5 @@
 #pragma once
+#define VALEURFLEX 0
 
 typedef char GantsID;
 typedef char GameID;
@@ -32,12 +33,19 @@
     bool index;
     bool majeur;
     bool annulaire;
+#if VALEURFLEX
     unsigned short indexU32;
     unsigned short majeurU32;
     unsigned short annulaireU32;
+#endif
 } flex_t;
 
 typedef struct {
+    GameID game; 
+    bool etat; //Debut = 1, fin = 0;
+}
+
+typedef struct {
     GantsID     gants;
     Accel_t       accelData;    // donnée accéléromètre.
     flex_t      flexSensor;