Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Structures/Structure.h

Committer:
Thierry19
Date:
2015-03-05
Revision:
10:2da03c92e87e
Child:
13:4aa3e6eb0120

File content as of revision 10:2da03c92e87e:

#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;
};