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:
- 22:cccb77300fd5
- Parent:
- 20:96280625532c
- Child:
- 23:5bb76b7c35da
--- a/Structures/Structure.h Sun Mar 22 17:32:47 2015 +0000 +++ b/Structures/Structure.h Sun Mar 22 19:57:40 2015 +0000 @@ -6,6 +6,8 @@ typedef char SongID; typedef char GameMode; +enum GameMode_e { GUNNER, RPS, AirGuitar}; + typedef struct { GameID game; PlayerID players[2]; @@ -18,7 +20,7 @@ uint16_t x; uint16_t y; uint16_t z; -} Accel; +} Accel_t; typedef struct { GameID game; @@ -27,19 +29,6 @@ } Game_Stats_AirGuitar; typedef struct { - GantsID gants; - 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; -}; - -typedef struct { bool index; bool majeur; bool annulaire; @@ -48,14 +37,13 @@ unsigned short annulaireU32; } flex_t; -typedef char GantsID; - typedef struct { - GantsID gants; - char xyz[6]; - flex_t flexSensors; + GantsID gants; + Accel_t accelData; // donnée accéléromètre. + flex_t flexSensor; } Mobile_Vers_Fixe; +// Mailbox data. struct message { Mobile_Vers_Fixe donnees; };