Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Revision:
13:4aa3e6eb0120
Parent:
10:2da03c92e87e
Child:
20:96280625532c
--- a/Structures/Structure.h	Fri Mar 06 18:03:55 2015 +0000
+++ b/Structures/Structure.h	Sat Mar 07 21:48:09 2015 +0000
@@ -1,21 +1,10 @@
 #pragma once
 
 typedef char GantsID;
-typedef char FlexID;
 typedef char GameID;
 typedef char PlayerID;
 typedef char SongID;
-
-typedef struct {
-    uint16_t x;
-    uint16_t y;
-    uint16_t z;
-} accel_t;
-
-typedef struct {
-    FlexID      flex;
-    bool        state;
-} Flexo;
+typedef char GameMode;
 
 typedef struct {
     GameID  game;
@@ -26,6 +15,12 @@
 } Game_Stats;
 
 typedef struct {
+    uint16_t     x;
+    uint16_t     y;
+    uint16_t     z;
+} Accel;
+
+typedef struct {
     GameID  game;
     PlayerID    players;
     SongID     track_played;
@@ -33,15 +28,13 @@
 
 typedef struct {
     GantsID     gants;
-    char     xyz[6];    // donnée accéléromètre.
-    char       majeur;  //Might actually be booleans (to discuss)
-    char       index;
-    char       annulaire;
+    Accel       accelData;    // donnée accéléromètre.
+    bool       majeur;
+    bool       index;
+    bool       annulaire;
 } Mobile_Vers_Fixe;
 
 // Mailbox data.
 struct Message {
     Mobile_Vers_Fixe donnees;
 };
-
-