Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Revision:
10:2da03c92e87e
Child:
13:4aa3e6eb0120
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Structures/Structure.h	Thu Mar 05 21:40:10 2015 +0000
@@ -0,0 +1,47 @@
+#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 struct {
+    GameID  game;
+    PlayerID     players[2];
+    PlayerID    winner;
+    int     score_winner;
+    int         score_looser;
+} Game_Stats;
+
+typedef struct {
+    GameID  game;
+    PlayerID    players;
+    SongID     track_played;
+} Game_Stats_AirGuitar;
+
+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;
+} Mobile_Vers_Fixe;
+
+// Mailbox data.
+struct Message {
+    Mobile_Vers_Fixe donnees;
+};
+
+