Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Repo_Noeud_Mobile by
Diff: Structures/Structure.h
- 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; }; - -